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.12.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a896120a7bca6cc0e7a88dd5aa538d03c8f96b5c1128ca51a600e1d3125f8b29 |
|
MD5 | d02ce2932efa416e032a0c4484ec053a |
|
BLAKE2b-256 | 89943e065ee980e65928ddf164bbf22414faa61610b324c5f51850c59b8ee2f2 |
Close
Hashes for mindfoundry.client.horizon-2.12.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f95eb2bc8059113b7106a0369c6cbbc2c7cea82d151ef4bd2fa99120dfbcaf10 |
|
MD5 | 8c008163ee4b05aa56f8ec16226515c7 |
|
BLAKE2b-256 | 346c67d69e2d823baf2056e6f10a39174e76acc58f0969281a50a98e25b1e82a |