Skip to content

Commit

Permalink
Chronos: Fix readthedocs.io build error (#4720)
Browse files Browse the repository at this point in the history
* add pickle5 version

* fix doc issue

* fix import bigdl.nano in doc

* renamed basepytorchmodel to baseautomodel

* renamed again
  • Loading branch information
liangs6212 authored May 30, 2022
1 parent 367702e commit ebba044
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 4 additions & 2 deletions docs/readthedocs/requirements-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ commonmark==0.8.1
recommonmark==0.5.0
readthedocs-sphinx-ext<2.2
sphinx_rtd_theme==0.5.2
scikit-learn==0.22.2.post1
scikit-learn==1.0.2
pystan==2.19.1.1
prophet
pmdarima
sphinx_markdown_tables
numpy==1.21.2
xgboost
torchmetrics
torchmetrics
pickle5==0.0.12
protobuf~=3.19.0
10 changes: 5 additions & 5 deletions docs/readthedocs/source/doc/PythonAPI/Chronos/automodels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AutoTCN
-------------------------------------------

AutoTCN is a TCN forecasting model with Auto tuning.
Other API follows its base class(BasePytorchAutomodel).
Other API follows its base class(BaseAutomodel).

.. automodule:: bigdl.chronos.autots.model.auto_tcn
:members:
Expand All @@ -17,7 +17,7 @@ AutoLSTM
----------------------------------------

AutoLSTM is an LSTM forecasting model with Auto tuning.
Other API follows its base class(BasePytorchAutomodel).
Other API follows its base class(BaseAutomodel).

.. automodule:: bigdl.chronos.autots.model.auto_lstm
:members:
Expand All @@ -28,7 +28,7 @@ AutoSeq2Seq
----------------------------------------

AutoSeq2Seq is an Seq2Seq forecasting model with Auto tuning.
Other API follows its base class(BasePytorchAutomodel).
Other API follows its base class(BaseAutomodel).

.. automodule:: bigdl.chronos.autots.model.auto_seq2seq
:members:
Expand All @@ -55,10 +55,10 @@ AutoProphet is a Prophet forecasting model with Auto tuning.
:undoc-members:
:show-inheritance:

BasePytorchAutomodel
BaseAutomodel
------------------------------------------------------------
AutoLSTM, AutoSeq2Seq and AutoTCN all follow the same API as stated below.

.. autoclass:: bigdl.chronos.autots.model.base_automodel.BasePytorchAutomodel
.. autoclass:: bigdl.chronos.autots.model.base_automodel.BaseAutomodel
:members:
:show-inheritance:
1 change: 0 additions & 1 deletion python/chronos/src/bigdl/chronos/autots/tspipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

from bigdl.chronos.data import TSDataset
from bigdl.chronos.metric.forecast_metrics import Evaluator
from bigdl.chronos.pytorch.utils import _pytorch_fashion_inference

DEFAULT_MODEL_INIT_DIR = "model_init.ckpt"
DEFAULT_BEST_MODEL_DIR = "best_model.ckpt"
Expand Down

0 comments on commit ebba044

Please sign in to comment.