Mind Foundry Horizon Client
This package contains a python client that can be used to interact with an instance of Mind Foundry Horizon. The client exposes a familiar interface that allows you to tackle forecasting problems with ease.
from mindfoundry.client.horizon.client import Connection
from mindfoundry.client.horizon.models import HorizonForecaster
# Generate an API key in the Horizon dashboard
connection = Connection(
base_url="your Horizon instance",
api_key="your api key",
)
# Create a new forecasting model. See the complete documentation
# for a more in-depth explanation of each argument.
model = HorizonForecaster(
connection=connection,
name="My Forecaster",
targets=["target1", "target2", ...],
horizons=[1, 2, 3],
refinement=False,
)
# Train a model on some training data (a pandas dataframe)
model.fit(training_data)
# Make a prediction on new data
prediction = model.predict(new_data)
print(prediction.as_df().head())
# Save the model for later use
model.save("/path/to/model/file")
# Re-load the model
model = HorizonForecaster.load("/path/to/model/file", connection=connection)
# The model can be updated with new data in the same format
model.update(new_data_2)
new_prediction = model.predict()
Metadata
Release files for mindfoundry.client.horizon 2.13.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mindfoundry.client.horizon-2.13.12.tar.gz | 75.2 kB | Without provenance | Details for mindfoundry.client.horizon-2.13.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mindfoundry.client.horizon-2.13.12-py3-none-any.whl | Python 3 | none | any | Details for mindfoundry.client.horizon-2.13.12-py3-none-any.whl |
Total release size: 278.7 kB
Release files / mindfoundry.client.horizon-2.13.12.tar.gz
| Download URL | mindfoundry.client.horizon-2.13.12.tar.gz |
|---|---|
| Size | 75.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a8f16f1d2587ae7e0364e195b54c7760dc44f5d2d937fea3dd1b3f13c486fa8
|
|
BLAKE2b-256 checksum How to use checksums |
2dcd39a71965acc42850bc918d654743a5924abbe01f8b90098d8d3d0ebec794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/5.0.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.8.6
|
Release files / mindfoundry.client.horizon-2.13.12-py3-none-any.whl
| Download URL | mindfoundry.client.horizon-2.13.12-py3-none-any.whl |
|---|---|
| Size | 203.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b87cd3147e7671fe2621bab9deb36ab87574f7cbf0f645a26a70e81f6b6b695
|
|
BLAKE2b-256 checksum How to use checksums |
494696314a3cfa232e95c1a367dd3180fe946d4a584678977d2be4fc0ae9a3fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/5.0.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.8.6
|
Security for mindfoundry.client.horizon 2.13.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.