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-0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9b37a88969bc059cffeed91ec04cba3b21b37f80068a0a97b8d3929f26b3c06 |
|
MD5 | 3dbcb25dff6da9374169442c53d545c9 |
|
BLAKE2b-256 | 759584ee39a30b76e061fb552762a6333cb69e63603fdb04e49fb87e50b2162a |
Close
Hashes for mindfoundry.client.horizon-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6473120d8b1c07c5c2496568b2aa6ba80ef176810ad80e7cded64245b52011a |
|
MD5 | 0664ce8e5862c41029dde7900d055a03 |
|
BLAKE2b-256 | c7d5a96ced310f7c7e36dfc5e2572d4f45a4ee3ba8a881c2a8df6d5d0a124bbf |