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.13.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b65b9c0f5a6b9ab191cb732133200248a16c2d96ca68038541adf371c2c8d0 |
|
MD5 | 8b36e8d2492beeea3ad673c24568da2b |
|
BLAKE2b-256 | 4cb0728dcd70b31b6e24c8e2d9484384fc94410636a91dc151a812b78e129aab |
Close
Hashes for mindfoundry.client.horizon-2.13.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583845a2675c6d9c40dcaaf4a08aa42e016867f1e8ce001613cbb90a596b6d03 |
|
MD5 | 6f93955b73278806d4c3a90a9425de02 |
|
BLAKE2b-256 | 130ac8a804511f5fde70f731a7d8f6012d4aa79df5992d8c1c515372ec39eac3 |