Mind Foundry Horizon Client
Project description
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 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()
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
Close
Hashes for mindfoundry.client.horizon-2.13.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38e3531f72e89a8af061fb9daaae48d90530b58ec32bc9ed32fc6e236c653639 |
|
MD5 | f63bb8a554f7252cb8f03ec854501f42 |
|
BLAKE2b-256 | 42725933eec6e510d328467e2fd06068f20bdcef4988150795e34c66c6a90837 |
Close
Hashes for mindfoundry.client.horizon-2.13.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408ba47a7f737facea58695fe202081ad586927084b92b9b660dddf8599600c6 |
|
MD5 | 8d8a529723a0089063cf829c0e2d06c3 |
|
BLAKE2b-256 | da8cff1940b69c5edb46128215866afc857470946b3d8719b6ab3dc01ad5d7a6 |