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(
    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


Download files

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

Source Distribution

mindfoundry.client.horizon-2.12.1.tar.gz (74.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mindfoundry.client.horizon-2.12.1-py3-none-any.whl (202.5 kB view details)

Uploaded Python 3

File details

Details for the file mindfoundry.client.horizon-2.12.1.tar.gz.

File metadata

  • Download URL: mindfoundry.client.horizon-2.12.1.tar.gz
  • Upload date:
  • Size: 74.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6

File hashes

Hashes for mindfoundry.client.horizon-2.12.1.tar.gz
Algorithm Hash digest
SHA256 35fe4b1e82ceb8ac5a0afab75b700fe80caa8fead3a832a813dc0514e1694a4e
MD5 f70ba137f8e277bc516f7ecd28ca6841
BLAKE2b-256 3cdf666040a3a24cba46b587f8f63f9ac3857a635359b925e37f6242b8b89ea0

See more details on using hashes here.

File details

Details for the file mindfoundry.client.horizon-2.12.1-py3-none-any.whl.

File metadata

  • Download URL: mindfoundry.client.horizon-2.12.1-py3-none-any.whl
  • Upload date:
  • Size: 202.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6

File hashes

Hashes for mindfoundry.client.horizon-2.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64792ab68a168a1410c27254128a20c5e305d940e61eb21ac23977c19dd05e2e
MD5 37096f85e43e7364d171a2d6a74c0fd3
BLAKE2b-256 b79040ff7b4396fa01590951456663191d875fb85158d5c30185e4e9d4df5cc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page