From abcb07cb9c2585ab4f3fd3a11930d0befc57ffa1 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 09:08:32 +0000 Subject: automatic import of python-auto-ts --- .gitignore | 1 + python-auto-ts.spec | 649 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 651 insertions(+) create mode 100644 python-auto-ts.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..db7d730 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/auto_ts-0.0.70.tar.gz diff --git a/python-auto-ts.spec b/python-auto-ts.spec new file mode 100644 index 0000000..2c55950 --- /dev/null +++ b/python-auto-ts.spec @@ -0,0 +1,649 @@ +%global _empty_manifest_terminate_build 0 +Name: python-auto-ts +Version: 0.0.70 +Release: 1 +Summary: Automatically Build Multiple Time Series models fast - now with Facebook Prophet! +License: Apache License 2.0 +URL: https://github.com/AutoViML/Auto_TS +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/26/05/93284c1b2fe581bc9541a3bebea524712c10957e77afcca8b9258577b79f/auto_ts-0.0.70.tar.gz +BuildArch: noarch + +Requires: python3-prettytable +Requires: python3-dask +Requires: python3-distributed +Requires: python3-ipython +Requires: python3-jupyter +Requires: python3-matplotlib +Requires: python3-numpy +Requires: python3-pandas +Requires: python3-pmdarima +Requires: python3-prophet +Requires: python3-pyyaml +Requires: python3-scikit-learn +Requires: python3-seaborn +Requires: python3-statsmodels +Requires: python3-xgboost +Requires: python3-xlrd + +%description + + + + + + +![auto-ts](logo.png) + +

March 2023 Update:

+

We have now upgraded FB Prophet to the latest version which is simply called prophet.
+If you are using Colab or Kaggle kernel and want to install auto_ts, please use the following steps (otherwise error!): + +``` +!pip install auto-ts --no-deps --ignore-installed +!pip install 'fsspec>=0.3.3' +!pip install statsmodels --upgrade +!pip install pmdarima +``` + +

Aug 2022 Update:

+

You can now add FB Prophet arguments directly into Auto_TimeSeries using the kwargs argument. See example below: + +![fb-prophet](add_fb_prophet.png) + +

Auto_TS: Auto_TimeSeries

+

Automatically build multiple Time Series models using a Single Line of Code. Now updated with Dask.

+

Auto_timeseries is a complex model building utility for time series data. Since it automates many +Tasks involved in a complex endeavor, it assumes many intelligent defaults. But you can change them. +Auto_Timeseries will rapidly build predictive models based on Statsmodels ARIMA, Seasonal ARIMA, Prophet +and Scikit-Learn ML. It will automatically select the best model which gives best score specified. +

+

New version 0.0.35 onwards has major updates: You can now load your file into Dask dataframes. Just provide the name of your file and if it is too large to fit into a pandas dataframe, Auto_TS will automatically detect and load it into a Dask dataframe.

+

Also, new since version 0.0.25 is the syntax of Auto_TimeSerie: It is now more like scikit-learn (with fit and predict). You will have to initialize an object and then call fit with your data and then predict again with data. Hope this makes it easier to remember and use.

+

Introduction

+

Auto_TimeSeries enables you to build and select multiple time series models using techniques such as ARIMA, SARIMAX, VAR, decomposable (trend+seasonality+holidays) models, and ensemble machine learning models.

+

Auto_TimeSeries is an Automated ML library for time series data. Auto_TimeSeries was initially conceived and developed by Ram Seshadri and was significantly expanded in functionality and scope and upgraded to its present status by Nikhil Gupta.

+

auto-ts.Auto_TimeSeries is the main function that you will call with your train data. You can then choose what kind of models you want: stats, ml or Prophet based model. You can also tell it to automatically select the best model based on the scoring parameter you want it to be based on. It will return the best model and a dictionary containing predictions for the number of forecast_periods you mentioned (default=2).

+

INSTALLATION INSTRUCTIONS

+
    +
  1. Use “pip install auto-ts”
  2. +
  3. Use “pip3 install auto-ts” if the above doesn’t work
  4. +
  5. pip install git+git://github.com/AutoViML/Auto_TS
  6. +
+

Note for Windows Users

+

Windows users may experience difficulties with the Prophet and pystan dependency installations. Because of this, we recommend installing Prophet using instructions from the Prophet documentation page prior to installing auto-ts. For Anaconda users, this can be accomplished via: +

    +
  1. conda install -c conda-forge prophet

  2. +
  3. pip install auto-ts

  4. +
+ +

RUN

+

First you need to import auto_timeseries from auto_ts library:
+ +from auto_ts import auto_timeseries + +

+

+Second, Initialize an auto_timeseries model object which will hold all your parameters:

+

+model = auto_timeseries( + score_type='rmse', + time_interval='Month', + non_seasonal_pdq=None, seasonality=False, + seasonal_period=12, + model_type=['Prophet'], + verbose=2) +

+Here are how the input parameters defined:
+
    +
  1. score_type (default='rmse'): The metric used for scoring the models. Type is string. +Currently only the following two types are supported: +(1) "rmse": Root Mean Squared Error (RMSE) +(2) "normalized_rmse": Ratio of RMSE to the standard deviation of actuals
  2. +
  3. time_interval (default is None): Used to indicate the frequency at which the data is collected. +This is used for two purposes (1) in building the Prophet model and (2) used to impute the seasonal period for SARIMAX in case it is not provided by the user (None). Type is String. +We use the following pandas date range frequency aliases that Prophet uses to make the prediction dataframe.

    Hence, please note that these are the list of allowed aliases for frequency: + ['B','C','D','W','M','SM','BM','CBM', + 'MS','SMS','BMS','CBMS','Q','BQ','QS','BQS', + 'A,Y','BA,BY','AS,YS','BAS,BYS','BH', + 'H','T,min','S','L,ms','U,us','N'] + +For a start, you can test the following codes for your data and see how the results are: +

      +
    • 'MS', 'M', 'SM', 'BM', 'CBM', 'SMS', 'BMS' for monthly frequency data
    • +
    • 'D', 'B', 'C' for daily frequency data
    • +
    • 'W' for weekly frequency data
    • +
    • 'Q', 'BQ', 'QS', 'BQS' for quarterly frequency data
    • +
    • 'A,Y', 'BA,BY', 'AS,YS', 'BAS,YAS' for yearly frequency data
    • +
    • 'BH', 'H', 'h' for hourly frequency data
    • +
    • 'T,min' for minute frequency data
    • +
    • 'S', 'L,milliseconds', 'U,microseconds', 'N,nanoseconds' for second frequency data
    • +
    +Or you can leave it as None and auto_timeseries will try and impute it. +
  4. +
  5. non_seasonal_pdq (default = (3,1,3)): Indicates the maximum value of (p, d, q) to be used in the search for statistical ARIMA models. +If None, then the following values are assumed max_p = 3, max_d = 1, max_q = 3. Type is Tuple.
  6. +
  7. seasonality (default=False): Used in the building of the SARIMAX model only at this time. True or False. Type is bool.
  8. +
  9. seasonal_period (default is None): Indicates the seasonal period in your data. This depends on the peak (or valley) period that occurs regularly in your data. +Used in the building of the SARIMAX model only at this time. +There is no impact of this argument if seasonality is set to False +If None, the program will try to infer this from the time_interval (frequency) of the data +We assume the following as defaults but feel free to change them. +(1) If frequency is Monthly, then seasonal_period is assumed to be 12 +(1) If frequency is Daily, then seasonal_period is assumed to be 30 (but it could be 7) +(1) If frequency is Weekly, then seasonal_period is assumed to be 52 +(1) If frequency is Quarterly, then seasonal_period is assumed to be 4 +(1) If frequency is Yearly, then seasonal_period is assumed to be 1 +(1) If frequency is Hourly, then seasonal_period is assumed to be 24 +(1) If frequency is Minutes, then seasonal_period is assumed to be 60 +(1) If frequency is Seconds, then seasonal_period is assumed to be 60 +Type is integer
  10. +
  11. conf_int (default=0.95): Confidence Interval for building the Prophet model. Default: 0.95. Type is float.
  12. +
  13. model_type (default: 'stats': The type(s) of model to build. Default to building only statistical models +Can be a string or a list of models. Allowed values are: +'best', 'prophet', 'stats', 'ARIMA', 'SARIMAX', 'VAR', 'ML'. +"prophet" will build a model using Prophet -> this means you must have Prophet installed +"stats" will build statsmodels based ARIMA, SARIMAX and VAR models +"ML" will build a machine learning model using Random Forests provided explanatory vars are given +'best' will try to build all models and pick the best one +If a list is provided, then only those models will be built +WARNING: "best" might take some time for large data sets. We recommend that you +choose a small sample from your data set before attempting to run entire data. +Type can be either: [string, list] +
  14. +
  15. verbose (default=0): Indicates the verbosity of printing (Default = 0). Type is integer.
  16. +
+The next step after defining the model object is to fit it with some real data: +


+model.fit( + traindata=train_data, + ts_column=ts_column, + target=target, + cv=5, + sep="," + ) +

+
Here are how the parameters defined: + +The next step after training the model object is to make some predictions with test data:
+


+predictions = model.predict( + testdata = can be either a dataframe or an integer standing for the forecast_period, + model = 'best' or any other string that stands for the trained model + ) +

+Here are how the parameters are defined. You can choose to send either testdata in the form of a dataframe or send in an integer to decide how many periods you want to forecast. You need only + +

Requirements

+

dask

+

scikit-learn

+

Prophet

+

statsmodels

+

pmdarima

+

XGBoost

+

License:

+

Apache License 2.0

+

Recommendations

+ +

DISCLAIMER:

+

This is not an Officially supported Google project.

+ +

© Google

+ + + + + + +%package -n python3-auto-ts +Summary: Automatically Build Multiple Time Series models fast - now with Facebook Prophet! +Provides: python-auto-ts +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-auto-ts + + + + + + +![auto-ts](logo.png) + +

March 2023 Update:

+

We have now upgraded FB Prophet to the latest version which is simply called prophet.
+If you are using Colab or Kaggle kernel and want to install auto_ts, please use the following steps (otherwise error!): + +``` +!pip install auto-ts --no-deps --ignore-installed +!pip install 'fsspec>=0.3.3' +!pip install statsmodels --upgrade +!pip install pmdarima +``` + +

Aug 2022 Update:

+

You can now add FB Prophet arguments directly into Auto_TimeSeries using the kwargs argument. See example below: + +![fb-prophet](add_fb_prophet.png) + +

Auto_TS: Auto_TimeSeries

+

Automatically build multiple Time Series models using a Single Line of Code. Now updated with Dask.

+

Auto_timeseries is a complex model building utility for time series data. Since it automates many +Tasks involved in a complex endeavor, it assumes many intelligent defaults. But you can change them. +Auto_Timeseries will rapidly build predictive models based on Statsmodels ARIMA, Seasonal ARIMA, Prophet +and Scikit-Learn ML. It will automatically select the best model which gives best score specified. +

+

New version 0.0.35 onwards has major updates: You can now load your file into Dask dataframes. Just provide the name of your file and if it is too large to fit into a pandas dataframe, Auto_TS will automatically detect and load it into a Dask dataframe.

+

Also, new since version 0.0.25 is the syntax of Auto_TimeSerie: It is now more like scikit-learn (with fit and predict). You will have to initialize an object and then call fit with your data and then predict again with data. Hope this makes it easier to remember and use.

+

Introduction

+

Auto_TimeSeries enables you to build and select multiple time series models using techniques such as ARIMA, SARIMAX, VAR, decomposable (trend+seasonality+holidays) models, and ensemble machine learning models.

+

Auto_TimeSeries is an Automated ML library for time series data. Auto_TimeSeries was initially conceived and developed by Ram Seshadri and was significantly expanded in functionality and scope and upgraded to its present status by Nikhil Gupta.

+

auto-ts.Auto_TimeSeries is the main function that you will call with your train data. You can then choose what kind of models you want: stats, ml or Prophet based model. You can also tell it to automatically select the best model based on the scoring parameter you want it to be based on. It will return the best model and a dictionary containing predictions for the number of forecast_periods you mentioned (default=2).

+

INSTALLATION INSTRUCTIONS

+
    +
  1. Use “pip install auto-ts”
  2. +
  3. Use “pip3 install auto-ts” if the above doesn’t work
  4. +
  5. pip install git+git://github.com/AutoViML/Auto_TS
  6. +
+

Note for Windows Users

+

Windows users may experience difficulties with the Prophet and pystan dependency installations. Because of this, we recommend installing Prophet using instructions from the Prophet documentation page prior to installing auto-ts. For Anaconda users, this can be accomplished via: +

    +
  1. conda install -c conda-forge prophet

  2. +
  3. pip install auto-ts

  4. +
+ +

RUN

+

First you need to import auto_timeseries from auto_ts library:
+ +from auto_ts import auto_timeseries + +

+

+Second, Initialize an auto_timeseries model object which will hold all your parameters:

+

+model = auto_timeseries( + score_type='rmse', + time_interval='Month', + non_seasonal_pdq=None, seasonality=False, + seasonal_period=12, + model_type=['Prophet'], + verbose=2) +

+Here are how the input parameters defined:
+
    +
  1. score_type (default='rmse'): The metric used for scoring the models. Type is string. +Currently only the following two types are supported: +(1) "rmse": Root Mean Squared Error (RMSE) +(2) "normalized_rmse": Ratio of RMSE to the standard deviation of actuals
  2. +
  3. time_interval (default is None): Used to indicate the frequency at which the data is collected. +This is used for two purposes (1) in building the Prophet model and (2) used to impute the seasonal period for SARIMAX in case it is not provided by the user (None). Type is String. +We use the following pandas date range frequency aliases that Prophet uses to make the prediction dataframe.

    Hence, please note that these are the list of allowed aliases for frequency: + ['B','C','D','W','M','SM','BM','CBM', + 'MS','SMS','BMS','CBMS','Q','BQ','QS','BQS', + 'A,Y','BA,BY','AS,YS','BAS,BYS','BH', + 'H','T,min','S','L,ms','U,us','N'] + +For a start, you can test the following codes for your data and see how the results are: +

      +
    • 'MS', 'M', 'SM', 'BM', 'CBM', 'SMS', 'BMS' for monthly frequency data
    • +
    • 'D', 'B', 'C' for daily frequency data
    • +
    • 'W' for weekly frequency data
    • +
    • 'Q', 'BQ', 'QS', 'BQS' for quarterly frequency data
    • +
    • 'A,Y', 'BA,BY', 'AS,YS', 'BAS,YAS' for yearly frequency data
    • +
    • 'BH', 'H', 'h' for hourly frequency data
    • +
    • 'T,min' for minute frequency data
    • +
    • 'S', 'L,milliseconds', 'U,microseconds', 'N,nanoseconds' for second frequency data
    • +
    +Or you can leave it as None and auto_timeseries will try and impute it. +
  4. +
  5. non_seasonal_pdq (default = (3,1,3)): Indicates the maximum value of (p, d, q) to be used in the search for statistical ARIMA models. +If None, then the following values are assumed max_p = 3, max_d = 1, max_q = 3. Type is Tuple.
  6. +
  7. seasonality (default=False): Used in the building of the SARIMAX model only at this time. True or False. Type is bool.
  8. +
  9. seasonal_period (default is None): Indicates the seasonal period in your data. This depends on the peak (or valley) period that occurs regularly in your data. +Used in the building of the SARIMAX model only at this time. +There is no impact of this argument if seasonality is set to False +If None, the program will try to infer this from the time_interval (frequency) of the data +We assume the following as defaults but feel free to change them. +(1) If frequency is Monthly, then seasonal_period is assumed to be 12 +(1) If frequency is Daily, then seasonal_period is assumed to be 30 (but it could be 7) +(1) If frequency is Weekly, then seasonal_period is assumed to be 52 +(1) If frequency is Quarterly, then seasonal_period is assumed to be 4 +(1) If frequency is Yearly, then seasonal_period is assumed to be 1 +(1) If frequency is Hourly, then seasonal_period is assumed to be 24 +(1) If frequency is Minutes, then seasonal_period is assumed to be 60 +(1) If frequency is Seconds, then seasonal_period is assumed to be 60 +Type is integer
  10. +
  11. conf_int (default=0.95): Confidence Interval for building the Prophet model. Default: 0.95. Type is float.
  12. +
  13. model_type (default: 'stats': The type(s) of model to build. Default to building only statistical models +Can be a string or a list of models. Allowed values are: +'best', 'prophet', 'stats', 'ARIMA', 'SARIMAX', 'VAR', 'ML'. +"prophet" will build a model using Prophet -> this means you must have Prophet installed +"stats" will build statsmodels based ARIMA, SARIMAX and VAR models +"ML" will build a machine learning model using Random Forests provided explanatory vars are given +'best' will try to build all models and pick the best one +If a list is provided, then only those models will be built +WARNING: "best" might take some time for large data sets. We recommend that you +choose a small sample from your data set before attempting to run entire data. +Type can be either: [string, list] +
  14. +
  15. verbose (default=0): Indicates the verbosity of printing (Default = 0). Type is integer.
  16. +
+The next step after defining the model object is to fit it with some real data: +


+model.fit( + traindata=train_data, + ts_column=ts_column, + target=target, + cv=5, + sep="," + ) +

+
Here are how the parameters defined: + +The next step after training the model object is to make some predictions with test data:
+


+predictions = model.predict( + testdata = can be either a dataframe or an integer standing for the forecast_period, + model = 'best' or any other string that stands for the trained model + ) +

+Here are how the parameters are defined. You can choose to send either testdata in the form of a dataframe or send in an integer to decide how many periods you want to forecast. You need only + +

Requirements

+

dask

+

scikit-learn

+

Prophet

+

statsmodels

+

pmdarima

+

XGBoost

+

License:

+

Apache License 2.0

+

Recommendations

+ +

DISCLAIMER:

+

This is not an Officially supported Google project.

+ +

© Google

+ + + + + + +%package help +Summary: Development documents and examples for auto-ts +Provides: python3-auto-ts-doc +%description help + + + + + + +![auto-ts](logo.png) + +

March 2023 Update:

+

We have now upgraded FB Prophet to the latest version which is simply called prophet.
+If you are using Colab or Kaggle kernel and want to install auto_ts, please use the following steps (otherwise error!): + +``` +!pip install auto-ts --no-deps --ignore-installed +!pip install 'fsspec>=0.3.3' +!pip install statsmodels --upgrade +!pip install pmdarima +``` + +

Aug 2022 Update:

+

You can now add FB Prophet arguments directly into Auto_TimeSeries using the kwargs argument. See example below: + +![fb-prophet](add_fb_prophet.png) + +

Auto_TS: Auto_TimeSeries

+

Automatically build multiple Time Series models using a Single Line of Code. Now updated with Dask.

+

Auto_timeseries is a complex model building utility for time series data. Since it automates many +Tasks involved in a complex endeavor, it assumes many intelligent defaults. But you can change them. +Auto_Timeseries will rapidly build predictive models based on Statsmodels ARIMA, Seasonal ARIMA, Prophet +and Scikit-Learn ML. It will automatically select the best model which gives best score specified. +

+

New version 0.0.35 onwards has major updates: You can now load your file into Dask dataframes. Just provide the name of your file and if it is too large to fit into a pandas dataframe, Auto_TS will automatically detect and load it into a Dask dataframe.

+

Also, new since version 0.0.25 is the syntax of Auto_TimeSerie: It is now more like scikit-learn (with fit and predict). You will have to initialize an object and then call fit with your data and then predict again with data. Hope this makes it easier to remember and use.

+

Introduction

+

Auto_TimeSeries enables you to build and select multiple time series models using techniques such as ARIMA, SARIMAX, VAR, decomposable (trend+seasonality+holidays) models, and ensemble machine learning models.

+

Auto_TimeSeries is an Automated ML library for time series data. Auto_TimeSeries was initially conceived and developed by Ram Seshadri and was significantly expanded in functionality and scope and upgraded to its present status by Nikhil Gupta.

+

auto-ts.Auto_TimeSeries is the main function that you will call with your train data. You can then choose what kind of models you want: stats, ml or Prophet based model. You can also tell it to automatically select the best model based on the scoring parameter you want it to be based on. It will return the best model and a dictionary containing predictions for the number of forecast_periods you mentioned (default=2).

+

INSTALLATION INSTRUCTIONS

+
    +
  1. Use “pip install auto-ts”
  2. +
  3. Use “pip3 install auto-ts” if the above doesn’t work
  4. +
  5. pip install git+git://github.com/AutoViML/Auto_TS
  6. +
+

Note for Windows Users

+

Windows users may experience difficulties with the Prophet and pystan dependency installations. Because of this, we recommend installing Prophet using instructions from the Prophet documentation page prior to installing auto-ts. For Anaconda users, this can be accomplished via: +

    +
  1. conda install -c conda-forge prophet

  2. +
  3. pip install auto-ts

  4. +
+ +

RUN

+

First you need to import auto_timeseries from auto_ts library:
+ +from auto_ts import auto_timeseries + +

+

+Second, Initialize an auto_timeseries model object which will hold all your parameters:

+

+model = auto_timeseries( + score_type='rmse', + time_interval='Month', + non_seasonal_pdq=None, seasonality=False, + seasonal_period=12, + model_type=['Prophet'], + verbose=2) +

+Here are how the input parameters defined:
+
    +
  1. score_type (default='rmse'): The metric used for scoring the models. Type is string. +Currently only the following two types are supported: +(1) "rmse": Root Mean Squared Error (RMSE) +(2) "normalized_rmse": Ratio of RMSE to the standard deviation of actuals
  2. +
  3. time_interval (default is None): Used to indicate the frequency at which the data is collected. +This is used for two purposes (1) in building the Prophet model and (2) used to impute the seasonal period for SARIMAX in case it is not provided by the user (None). Type is String. +We use the following pandas date range frequency aliases that Prophet uses to make the prediction dataframe.

    Hence, please note that these are the list of allowed aliases for frequency: + ['B','C','D','W','M','SM','BM','CBM', + 'MS','SMS','BMS','CBMS','Q','BQ','QS','BQS', + 'A,Y','BA,BY','AS,YS','BAS,BYS','BH', + 'H','T,min','S','L,ms','U,us','N'] + +For a start, you can test the following codes for your data and see how the results are: +

      +
    • 'MS', 'M', 'SM', 'BM', 'CBM', 'SMS', 'BMS' for monthly frequency data
    • +
    • 'D', 'B', 'C' for daily frequency data
    • +
    • 'W' for weekly frequency data
    • +
    • 'Q', 'BQ', 'QS', 'BQS' for quarterly frequency data
    • +
    • 'A,Y', 'BA,BY', 'AS,YS', 'BAS,YAS' for yearly frequency data
    • +
    • 'BH', 'H', 'h' for hourly frequency data
    • +
    • 'T,min' for minute frequency data
    • +
    • 'S', 'L,milliseconds', 'U,microseconds', 'N,nanoseconds' for second frequency data
    • +
    +Or you can leave it as None and auto_timeseries will try and impute it. +
  4. +
  5. non_seasonal_pdq (default = (3,1,3)): Indicates the maximum value of (p, d, q) to be used in the search for statistical ARIMA models. +If None, then the following values are assumed max_p = 3, max_d = 1, max_q = 3. Type is Tuple.
  6. +
  7. seasonality (default=False): Used in the building of the SARIMAX model only at this time. True or False. Type is bool.
  8. +
  9. seasonal_period (default is None): Indicates the seasonal period in your data. This depends on the peak (or valley) period that occurs regularly in your data. +Used in the building of the SARIMAX model only at this time. +There is no impact of this argument if seasonality is set to False +If None, the program will try to infer this from the time_interval (frequency) of the data +We assume the following as defaults but feel free to change them. +(1) If frequency is Monthly, then seasonal_period is assumed to be 12 +(1) If frequency is Daily, then seasonal_period is assumed to be 30 (but it could be 7) +(1) If frequency is Weekly, then seasonal_period is assumed to be 52 +(1) If frequency is Quarterly, then seasonal_period is assumed to be 4 +(1) If frequency is Yearly, then seasonal_period is assumed to be 1 +(1) If frequency is Hourly, then seasonal_period is assumed to be 24 +(1) If frequency is Minutes, then seasonal_period is assumed to be 60 +(1) If frequency is Seconds, then seasonal_period is assumed to be 60 +Type is integer
  10. +
  11. conf_int (default=0.95): Confidence Interval for building the Prophet model. Default: 0.95. Type is float.
  12. +
  13. model_type (default: 'stats': The type(s) of model to build. Default to building only statistical models +Can be a string or a list of models. Allowed values are: +'best', 'prophet', 'stats', 'ARIMA', 'SARIMAX', 'VAR', 'ML'. +"prophet" will build a model using Prophet -> this means you must have Prophet installed +"stats" will build statsmodels based ARIMA, SARIMAX and VAR models +"ML" will build a machine learning model using Random Forests provided explanatory vars are given +'best' will try to build all models and pick the best one +If a list is provided, then only those models will be built +WARNING: "best" might take some time for large data sets. We recommend that you +choose a small sample from your data set before attempting to run entire data. +Type can be either: [string, list] +
  14. +
  15. verbose (default=0): Indicates the verbosity of printing (Default = 0). Type is integer.
  16. +
+The next step after defining the model object is to fit it with some real data: +


+model.fit( + traindata=train_data, + ts_column=ts_column, + target=target, + cv=5, + sep="," + ) +

+
Here are how the parameters defined: + +The next step after training the model object is to make some predictions with test data:
+


+predictions = model.predict( + testdata = can be either a dataframe or an integer standing for the forecast_period, + model = 'best' or any other string that stands for the trained model + ) +

+Here are how the parameters are defined. You can choose to send either testdata in the form of a dataframe or send in an integer to decide how many periods you want to forecast. You need only + +

Requirements

+

dask

+

scikit-learn

+

Prophet

+

statsmodels

+

pmdarima

+

XGBoost

+

License:

+

Apache License 2.0

+

Recommendations

+ +

DISCLAIMER:

+

This is not an Officially supported Google project.

+ +

© Google

+ + + + + + +%prep +%autosetup -n auto-ts-0.0.70 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-auto-ts -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot - 0.0.70-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..a95cb6b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +9d5711cd1410dbad230f8e324de69e39 auto_ts-0.0.70.tar.gz -- cgit v1.2.3