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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d867ec1a439ee99fbaeaa8b5ee64adb28e11f4ef22f7636b5274d6bd1779e8fc |
|
MD5 | 5932d6744b4ed0893b00870a5200f6b9 |
|
BLAKE2b-256 | 32c126ae6bbe8ca8ad0daaa0ffe2c24eb5c3256132fab32e37ef808720601238 |
Close
Hashes for mindfoundry.client.horizon-2.13.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1028e1ba6d22671d1c48dd3485f85b5d3c1d632df98b9d4e724a491ab13a1a80 |
|
MD5 | 814b63cb327f083a828b8d2958e64f74 |
|
BLAKE2b-256 | 9d6bd573372c5a15b896f89c48a6a0b0144dc3c4d928c24500e909f2d048b85a |