Before you start
You need an account. Credentials work for both the console and the API. If you do not have one, request access. You also need your tenant’s addresses. Each customer has their own, issued when the tenant is created: the console athttps://<tenant>.mathfi.ai and the API at https://<tenant>-api.mathfi.ai.
Substitute yours wherever these pages write <tenant> or $BASE.
You need two CSVs:
Same columns, same order, in both. First column a unique ID, last column the target. Full rules in
Input data.
1. Log in
Open your tenant’s console athttps://<tenant>.mathfi.ai and sign in.

Over the API
Over the API
Exchange your credentials for a bearer token. Note the field is Send it as
username, and it holds your email.Authorization: Bearer <access_token> on every other call. See
Authentication.2. Refine your columns
Go to Feature Refinery and click Refine Features.

- The final top performance table. Compare it to the baseline. That gap is what refinement bought you.
- The target the run reached. You will need it in the next step. The console carries it across for you.
This is the slow part. Time scales with how wide your data is, not how long. A 21-column file at
4 buckets took 52 minutes in the run these screenshots come from. Leave it and come back.
3. Train a model
Go to Model Crucible → Datasets and click Create Dataset.
- Use Outputs of Refinery — pick the run you just finished. Nothing to upload.
- Upload files — drop in your own train and test CSVs, and pick a bucket count.

4. Pick the champion
Open the finished run.
5. Run a prediction
Go to Predictions, click New Prediction, choose your champion model, and upload a CSV of unlabelled rows: the same columns as your training file, minus the target.
Over the API
Over the API
_file, underscore included. Poll
GET /api/v1/predictions/{predictionKey} until status is COMPLETED, then follow
predictionResultDownloadUrl.applyColumnStatusFilter=true drops the columns the refinement removed, so you can send your
original file unchanged. It only works on a model whose dataset came from a refinement.Where to go next
German Credit walkthrough
The same path with real numbers at every step.
Input data
Get your CSVs right and most problems never happen.
Tuning
Buckets, scaling, target: what to change and when.
API and agents
Everything above, driven over REST.