Skip to content

Commit 34a2886

Browse files
authored
Devops/add back tests to package (#2875)
* add back tests to darts package source for conda build * update docs * update changelog * remove examples diff
1 parent e7308ff commit 34a2886

21 files changed

+152
-68
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
**/__pycache__
44

55
# Test files
6-
darts/tests/
76
darts/examples/static
87
**/darts_logs

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ but cannot always guarantee backwards compatibility. Changes that may **break co
1111

1212
**Improved**
1313

14+
- Improved the documentation regarding the new classification models from version 0.37.0. [#2875](https://github.com/unit8co/darts/pull/2875) by [Dennis Bader](https://github.com/dennisbader).
15+
1416
**Fixed**
1517

18+
- Added back the unit tests into the source code for our conda package. [#2875](https://github.com/unit8co/darts/pull/2875) by [Dennis Bader](https://github.com/dennisbader).
19+
1620
**Dependencies**
1721

1822
### For developers of the library:

README.md

Lines changed: 17 additions & 5 deletions
Large diffs are not rendered by default.

darts/models/forecasting/__init__.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""
22
Forecasting Models
3-
------------------
3+
==================
4+
5+
Regression Models
6+
-----------------
47
58
Baseline Models (`LocalForecastingModel <https://unit8co.github.io/darts/userguide/covariates.html#local-forecasting-models-lfms>`_)
69
- :class:`~darts.models.forecasting.baselines.NaiveMean`
@@ -29,13 +32,13 @@
2932
- :class:`~darts.models.forecasting.fft.FFT`
3033
- :class:`~darts.models.forecasting.kalman_forecaster.KalmanForecaster`
3134
- :class:`~darts.models.forecasting.sf_croston.Croston`
32-
Regression Models (`GlobalForecastingModel <https://unit8co.github.io/darts/userguide/covariates.html#global-forecasting-models-gfms>`_)
35+
SKLearn-Like Models (`GlobalForecastingModel <https://unit8co.github.io/darts/userguide/covariates.html#global-forecasting-models-gfms>`_)
3336
- :class:`~darts.models.forecasting.sklearn_model.SKLearnModel`
3437
- :class:`~darts.models.forecasting.linear_regression_model.LinearRegressionModel`
3538
- :class:`~darts.models.forecasting.random_forest.RandomForestModel`
39+
- :class:`~darts.models.forecasting.catboost_model.CatBoostModel`
3640
- :class:`~darts.models.forecasting.lgbm.LightGBMModel`
3741
- :class:`~darts.models.forecasting.xgboost.XGBModel`
38-
- :class:`~darts.models.forecasting.catboost_model.CatBoostModel`
3942
PyTorch (Lightning)-based Models (`GlobalForecastingModel <https://unit8co.github.io/darts/userguide/covariates.html#global-forecasting-models-gfms>`_)
4043
- :class:`~darts.models.forecasting.rnn_model.RNNModel`
4144
- :class:`~darts.models.forecasting.block_rnn_model.BlockRNNModel`
@@ -54,4 +57,13 @@
5457
Conformal Models (`GlobalForecastingModel <https://unit8co.github.io/darts/userguide/covariates.html#global-forecasting-models-gfms>`_)
5558
- :class:`~darts.models.forecasting.conformal_models.ConformalNaiveModel`
5659
- :class:`~darts.models.forecasting.conformal_models.ConformalQRModel`
60+
61+
Classification Models
62+
---------------------
63+
64+
SKLearn-Like Models (`GlobalForecastingModel <https://unit8co.github.io/darts/userguide/covariates.html#global-forecasting-models-gfms>`_)
65+
- :class:`~darts.models.forecasting.sklearn_model.SKLearnClassifierModel`
66+
- :class:`~darts.models.forecasting.catboost_model.CatBoostClassifierModel`
67+
- :class:`~darts.models.forecasting.lgbm.LightGBMClassifierModel`
68+
- :class:`~darts.models.forecasting.xgboost.XGBClassifierModel`
5769
"""

darts/models/forecasting/catboost_model.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
"""
2-
CatBoost model
3-
--------------
2+
CatBoost Models
3+
---------------
44
5-
CatBoost based regression model.
5+
This module offers wrappers around CatBoost's Gradient Boosted Trees algorithms.
66
7-
This implementation comes with the ability to produce probabilistic forecasts.
7+
* :class:`~darts.models.forecasting.catboost_model.CatBoostModel` - Wrapper around CatBoost's `CatBoostRegressor`
8+
* :class:`~darts.models.forecasting.catboost_model.CatBoostClassifierModel` - Wrapper around CatBoost's
9+
`CatBoostClassifier`
10+
11+
The wrappers come with all capabilities of Darts' `SKLearn*Model`.
12+
13+
For detailed examples and tutorials, see:
14+
15+
* `SKLearn-Like Regression Model Examples
16+
<https://unit8co.github.io/darts/examples/20-SKLearnModel-examples.html>`_
17+
* `SKLearn-Like Classification Model Examples
18+
<https://unit8co.github.io/darts/examples/24-SKLearnClassifierModel-examples.html>`_
19+
20+
To enable CatBoost support in Darts, follow the detailed install instructions for CatBoost in the INSTALL:
21+
https://github.com/unit8co/darts/blob/master/INSTALL.md
822
"""
923

1024
from collections.abc import Sequence

darts/models/forecasting/conformal_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Conformal Models
3-
---------------
3+
----------------
44
55
A collection of conformal prediction models for pre-trained global forecasting models.
66
"""

darts/models/forecasting/lgbm.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
"""
2-
LightGBM Model
3-
--------------
2+
LightGBM Models
3+
---------------
44
5-
This is a LightGBM implementation of Gradient Boosted Trees algorithm.
5+
This module offers wrappers around LightGBM's Gradient Boosted Trees algorithms.
66
7-
This implementation comes with the ability to produce probabilistic forecasts.
7+
* :class:`~darts.models.forecasting.lgbm.LightGBMModel` - Wrapper around LightGBM's `LGBMRegressor`
8+
* :class:`~darts.models.forecasting.lgbm.LightGBMClassifierModel` - Wrapper around LightGBM's `LGBMClassifier`
9+
10+
The wrappers come with all capabilities of Darts' `SKLearn*Model`.
11+
12+
For detailed examples and tutorials, see:
13+
14+
* `SKLearn-Like Regression Model Examples <https://unit8co.github.io/darts/examples/20-SKLearnModel-examples.html>`_
15+
* `SKLearn-Like Classification Model Examples <https://unit8co.github.io/darts/examples/24-SKLearnClassifierModel-examples.html>`_
816
917
To enable LightGBM support in Darts, follow the detailed install instructions for LightGBM in the INSTALL:
1018
https://github.com/unit8co/darts/blob/master/INSTALL.md

darts/models/forecasting/linear_regression_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Linear Regression model
2+
Linear Regression Model
33
-----------------------
44
55
A forecasting model using a linear regression of some of the target series' lags, as well as optionally some

darts/models/forecasting/nlinear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
N-Linear
3-
------
3+
--------
44
"""
55

66
import torch

darts/models/forecasting/regression_ensemble_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Regression ensemble model
2+
Regression Ensemble Model
33
-------------------------
44
55
An ensemble model which uses a regression model to compute the ensemble forecast.

0 commit comments

Comments
 (0)