A Darts Time Series client for facilitating model development and data exploration.
Project description
Praxis Time Series Client
Current version: 0.0.4 Python version: >= 3.7
A package for quick visualization of a target Darts time series objects alongside covariates and discrete data.
Usage
The main component of this package is the DartsInterface class found in praxis_timeseries_client.darts. This synthesizes together your Time Series objects under the same hood, so you can interact with them together in a single graph and run models in a plug-and-play manner with your covariates.
from praxis_timeseries_client.darts import DartsInterface
from darts import TimeSeries
interface = DartsInterface(
target_ts=TimeSeries.from_dataframe(...),
past_covariates=TimeSeries.from_dataframe(...),
future_covariates=TimeSeries.from_dataframe(...),
discrete_vars={...})
Now, you can plot with the interface:
interface.plot(components=[...]).show() # Plot all components, or an ordered subset
And run forecasts and backtests with a model pre-trained on the covariates:
# make sure ts_train == target_ts from above
model = LinearRegressionModel(lags=50, lags_future_covariates=(100, 50), output_chunk_length=30)
model.fit(series=ts_train, future_covariates=ts_future_covs)
# run a backtest and plot it
backtest = interface.backtest(
model,
start=pd.Timestamp(startDate),
forecast_horizon=int(forecastHorizon),
stride=int(stride))
backtest.run(past_covariates=None)
backtest.plot().show()
# or run a forecast and plot it
forecast = interface.forecast(model, n=50)
forecast.run(past_covariates=None)
forecast.plot().show()
Hopefully this is enough to get you started using the interfaces!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file praxis-timeseries-client-0.0.4.tar.gz.
File metadata
- Download URL: praxis-timeseries-client-0.0.4.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ec73de463db716b993486865525337844fc26f81ebc65545c8839151b78fd5
|
|
| MD5 |
8565325a6e3a1a7f32c2d07254e3d823
|
|
| BLAKE2b-256 |
fd23e713ffd0d72e79aa8bb6ad393c825b1697b93be35b19b885fbdeeac3bccc
|
File details
Details for the file praxis_timeseries_client-0.0.4-py3-none-any.whl.
File metadata
- Download URL: praxis_timeseries_client-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc2cd7c9ed8b13f3b5e1ee6a4f42388cb6e80bb2d4cdfc471d57028dd34f622c
|
|
| MD5 |
7413c31b0b6a0deb87b92e8074766ee2
|
|
| BLAKE2b-256 |
5c0d206da8e1aba3dd120352ff58a33391544428460dee4e2329a4f4191660a6
|