Chronos: change import path of get_public_dataset (#6075)
* first commit * fix
This commit is contained in:
parent
4d56ece258
commit
bde2f0930a
2 changed files with 4 additions and 4 deletions
|
|
@ -256,7 +256,7 @@ About `TSDataset`, more details, please refer to [here](../../PythonAPI/Chronos/
|
|||
|
||||
```python
|
||||
# load built-in dataset
|
||||
from bigdl.chronos.data.repo_dataset import get_public_dataset
|
||||
from bigdl.chronos.data import get_public_dataset
|
||||
from sklearn.preprocessing import StandardScaler
|
||||
tsdata_train, tsdata_val, \
|
||||
tsdata_test = get_public_dataset(name='nyc_taxi',
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ To import a specific forecaster, you may use {algorithm name} + "Forecaster", an
|
|||
.. code-block:: python
|
||||
|
||||
from bigdl.chronos.forecaster import TCNForecaster # TCN is algorithm name
|
||||
from bigdl.chronos.data.repo_dataset import get_public_dataset
|
||||
from bigdl.chronos.data import get_public_dataset
|
||||
|
||||
if __name__ == "__main__":
|
||||
# use nyc_taxi public dataset
|
||||
|
|
@ -159,7 +159,7 @@ For time series forecasting, we also provide an ``AutoTSEstimator`` for distribu
|
|||
.. code-block:: python
|
||||
|
||||
from bigdl.orca.automl import hp
|
||||
from bigdl.chronos.data.repo_dataset import get_public_dataset
|
||||
from bigdl.chronos.data import get_public_dataset
|
||||
from bigdl.chronos.autots import AutoTSEstimator
|
||||
from bigdl.orca import init_orca_context, stop_orca_context
|
||||
from sklearn.preprocessing import StandardScaler
|
||||
|
|
@ -230,7 +230,7 @@ To import a specific detector, you may use {algorithm name} + "Detector", and ca
|
|||
.. code-block:: python
|
||||
|
||||
from bigdl.chronos.detector.anomaly import DBScanDetector # DBScan is algorithm name
|
||||
from bigdl.chronos.data.repo_dataset import get_public_dataset
|
||||
from bigdl.chronos.data import get_public_dataset
|
||||
|
||||
if __name__ == "__main__":
|
||||
# use nyc_taxi public dataset
|
||||
|
|
|
|||
Loading…
Reference in a new issue