You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
df (pandas, polars or spark DataFrame, or a list of parquet files containing the series, optional): DataFrame with columns [`unique_id`, `ds`, `y`] and exogenous variables.
482
483
If None, a previously stored dataset is required.
483
484
static_df (pandas, polars or spark DataFrame, optional): DataFrame with columns [`unique_id`] and static exogenous.
484
-
val_size (int, optional): Size of validation set.
485
+
val_size (int, optional): Size of validation set. Cannot be used together with `val_df`.
486
+
val_df (pandas or polars DataFrame, optional): Explicit validation DataFrame with columns [`unique_id`, `ds`, `y`] and exogenous variables.
487
+
`val_df` can be temporally independent (no requirement that it starts immediately after `df`).
488
+
Cannot be used together with `val_size`. Only supported when `df` is a pandas or polars DataFrame.
489
+
All series in `val_df` must have the same length.
485
490
use_init_models (bool, optional): Use initial model passed when NeuralForecast object was instantiated.
486
491
verbose (bool): Print processing steps.
487
492
id_col (str): Column that identifies each serie.
@@ -496,12 +501,22 @@ def fit(
496
501
if (dfisNone) andnot (hasattr(self, "dataset")):
497
502
raiseException("You must pass a DataFrame or have one stored.")
0 commit comments