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.client 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.13.12.tar.gz (75.2 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: mindfoundry.client.horizon-2.13.12.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/5.0.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.8.6

File hashes

Hashes for mindfoundry.client.horizon-2.13.12.tar.gz
Algorithm Hash digest
SHA256 3a8f16f1d2587ae7e0364e195b54c7760dc44f5d2d937fea3dd1b3f13c486fa8
MD5 309b6e3af3da17472ba021d3e98b0d8a
BLAKE2b-256 2dcd39a71965acc42850bc918d654743a5924abbe01f8b90098d8d3d0ebec794

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindfoundry.client.horizon-2.13.12-py3-none-any.whl
  • Upload date:
  • Size: 203.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/5.0.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.8.6

File hashes

Hashes for mindfoundry.client.horizon-2.13.12-py3-none-any.whl
Algorithm Hash digest
SHA256 8b87cd3147e7671fe2621bab9deb36ab87574f7cbf0f645a26a70e81f6b6b695
MD5 328ebb943cc1bd9ed4e60a65fa2afe3a
BLAKE2b-256 494696314a3cfa232e95c1a367dd3180fe946d4a584678977d2be4fc0ae9a3fc

See more details on using hashes here.

Supported by

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