Prerequisites
- Python 3.11 or 3.12
- A Hollerith account
- An API key — see Get your API key
Install the SDK
Hollerith is a private SDK, install with this command:Set your API key.Confirm the install:
Make your first prediction
This example uses the hotel booking sample from the console: 19 952 reservations,
one labeled
booking column reading cancelled or kept.fit uploads the table and returns a context to predict against. predict reads it.Measure the accuracy
Pass One metric comes back: accuracy for classification, RMSE for regression.
Evaluating accuracy covers which one you get and how the
method behind it is chosen.
evaluate=True to fit and Hollerith scores itself on held-out rows.evaluate=True runs a second job and bills it separately.Predict a number
Same shape, numeric target. Hollerith reads the task from the target column. This example uses the concrete-strength sample: 1 030 mixes, eight numeric columns, onestrength_mpa
value from 2.3 to 82.6.
task="regression" when that is wrong.
Next steps
Evaluating accuracy
Learn how Hollerith scores itself
Python SDK
Complete API reference for the Hollerith SDK