Skip to main content

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(
    name="My Forecaster",
    targets=["target1", "target2", ...],
    horizons=[1, 2, 3],

# Train a model on some training data (a pandas dataframe)

# Make a prediction on new data
prediction = model.predict(new_data)

# Save the model for later use"/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
new_prediction = model.predict()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mindfoundry.client.horizon, version 2.12.5
Filename, size File type Python version Upload date Hashes
Filename, size mindfoundry.client.horizon-2.12.5-py3-none-any.whl (202.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mindfoundry.client.horizon-2.12.5.tar.gz (74.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page