Closed forecastingEDs closed 2 years ago
This is due to the update to workflows, which now requires you to specify the mode = "regression"
Models like:
Allow both regression & classification.
Solution is to change their mode = "regression"
This is due to the update to workflows, which now requires you to specify the
mode = "regression"
Models like:
- svm_rbf()
- boost_tree()
Allow both regression & classification.
Solution is to change their
mode = "regression"
Dear @mdancho84
You solved my problem. Thank you very much for the information!
Hello @mdancho84
The modeltime package is showing a new error. Follows the script executed is the same execution with the example of walmart [h](https://business-science.github.io/modeltime.resample/articles/panel-data.html sales data, however with my data. Please can you help?
Enter one or more numbers, or an empty line to skip updates: 2: CRAN packages only
Load the following R packages
Full = Training + Forecast Datasets
Apply Group-wise Time Series Manipulations
Consolidate IDs
Training Data
Forecast Data
Data Splitting ----
Now we set aside the future data (we would only need that later when we make forecast)
And focus on training data
* 4.1 Panel Data Splitting ----
Split the dataset into analyis/assessment set
Until this step pre-processing datethe script runs normally, but when I go to train the machine learning models it reports the following error:
Radial Basis Function Support Vector Machine Model 1: SVM_rbf ----
Error in
add_model()
: !spec
must have a known mode. ℹ Set the mode ofspec
by usingparsnip::set_mode()
or by setting the mode directly in the parsnip specification function. Runrlang::last_error()
to see where the error occurred.The same error does not occur for the other models, that is, this error is only occurring for ML models: Random Forest, Xgboost, SVM_linear, svm_rbf.
until a few days ago, ML algorithms were working normally with this code:
Model 2: Xgboost ----
Statistical models run normally:
Model 10: ets ----
---- NAIVE ----
Model 11: Naive ----
Model 12: sNaive ----