zoo.zouwu.autots package¶
Submodules¶
zoo.zouwu.autots.forecast module¶
-
class
zoo.zouwu.autots.forecast.AutoTSTrainer(horizon=1, dt_col='datetime', target_col='value', extra_features_col=None)[source]¶ Bases:
objectThe Automated Time Series Forecast Trainer
-
fit(train_df, validation_df=None, metric='mse', recipe: zoo.automl.config.recipe.Recipe = <zoo.automl.config.recipe.SmokeRecipe object>, uncertainty: bool = False, distributed: bool = False, hdfs_url=None)[source]¶ Fit a time series forecasting pipeline w/ automl :param train_df: the input dataframe (as pandas.dataframe) :param validation_df: the validation dataframe (as pandas.dataframe) :param recipe: the configuration of searching :param metric: the evaluation metric to optimize :param uncertainty: whether to enable uncertainty calculation (will output an uncertainty sigma) :param hdfs_url: the hdfs_url to use for storing trail and intermediate results :param distributed: whether to enable distributed training :return a TSPipeline
-
-
class
zoo.zouwu.autots.forecast.TSPipeline[source]¶ Bases:
objectA pipeline for time series forecasting.
-
evaluate(input_df, metrics=['mse'], multioutput='raw_values')[source]¶ evaluate the results :param input_df: the input dataframe :param metrics: the evaluation metrics :param multioutput: output mode of multiple output, whether to aggregate :return: the evaluation results
-
fit(input_df, validation_df=None, uncertainty: bool = False, epochs=1, **user_config)[source]¶ Incremental Fitting
Parameters: - input_df – the input dataframe
- validation_df – the validation dataframe
- uncertainty – whether to calculate uncertainty
- epochs – number of epochs to train
- user_config – user configurations
Returns:
-
static
load(pipeline_file)[source]¶ load pipeline from a file :param pipeline_file: the pipeline file :return: a TSPipeline object
-