Skip to main content

Prerequisites

1

Install the SDK

Hollerith is a private SDK, install with this command:
Set your API key.
Confirm the install:
2

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.
3

Measure the accuracy

Pass evaluate=True to fit and Hollerith scores itself on held-out rows.
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 runs a second job and bills it separately.
The context is reusable. Predict against it as many times as you need without fitting again.
4

Swap in your own table

Point read_csv at your file and hold out your own test rows:

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, one strength_mpa value from 2.3 to 82.6.
RMSE is in the target’s own units, so 3.2 is 3.2 MPa against mixes spanning 2.3 to 82.6. A target of small whole numbers is read as classification unless you say otherwise. Pass task="regression" when that is wrong.

Next steps

Evaluating accuracy

Learn how Hollerith scores itself

Python SDK

Complete API reference for the Hollerith SDK