Skip to content

Practical guides ​

These guides show Fione at work on business problems: which data you start from, how you train on it in Fione, what the model tells you, and how you run it as a prediction API from a Docker image. Each guide takes one use case from the download of an open dataset to a curl call of the served model.

Every step, label, command and output in the guides comes from a run of the published snapshot images, ghcr.io/codelibs/fione:snapshot and ghcr.io/codelibs/fione-serving:snapshot. Scores are what that run produced; your run can differ a little.

This page covers what all guides share: starting Fione from the published images, the steps every guide follows, serving a model, and the rules for the data.

Start Fione from the published images ​

You need Docker with Compose v2, git, openssl, unzip and curl. The images are published for amd64 and arm64 (Apple silicon), so nothing is built on your machine.

Get the Compose file and set the secrets as in the quick start, then choose the snapshot images:

sh
git clone https://github.com/codelibs/fione.git
cd fione
printf 'FIONE_S3_ACCESS_KEY=%s\nFIONE_S3_SECRET_KEY=%s\n' "$(openssl rand -hex 16)" "$(openssl rand -hex 32)" > docker/.env
echo 'FIONE_IMAGE_TAG=snapshot' >> docker/.env

Download the images and start Fione:

sh
docker compose -f docker/compose.yaml --env-file docker/.env pull
docker compose -f docker/compose.yaml --env-file docker/.env up -d --wait

pull downloads ghcr.io/codelibs/fione:snapshot and the storage image. With the image already there, up starts it without building anything; --wait returns when the containers are healthy. Fione is then at http://127.0.0.1:8080/. Create the administrator with the setup token as in step 3 of the quick start.

Also download the serving image, which runs a model as a prediction API:

sh
docker pull ghcr.io/codelibs/fione-serving:snapshot

A model loads only in the serving image with the same tag as the Fione image that trained it, so both are snapshot here (see Known limitations).

The steps every guide follows ​

The guides use the EasyML wizard. Its steps are described in detail in EasyML wizard; in short:

  1. Download the dataset from its original source and, where needed, turn it into a CSV with a header row. Each guide gives the commands.
  2. On Projects, type a name under New project and press Create project, then open the project.
  3. Press Upload training data, choose the CSV and press Upload and analyze.
  4. On Data analysis, set What do you want to predict?, review Which columns should the model learn from?, check Prediction type (Classification or Regression), choose a Maximum run time and press Run.
  5. Training your model shows the progress. When training ends, the page opens the Prediction summary by itself; the finished run's page also has See the prediction summary.
  6. The Prediction summary shows the Rating, what the score means, About this model and Most useful inputs.
  7. Make predictions takes a CSV with the same input columns and returns the predictions as a file.
  8. Under Serve it from your own system, press Download the serving bundle and run the model as an API, as below.

A guide that needs a setting the wizard does not show, such as Order of the rows in time, uses Training settings: choose Detailed under View in the account menu (your name, top right), then follow Advanced settings: every training parameter on Data analysis and press Start training there. The guide says so where it applies.

Serve the model and call the API ​

The Serve it from your own system card shows the command to run. For a model trained by the snapshot image it reads:

sh
docker run --rm -p 8081:8080 -v "$PWD/model:/model:ro" ghcr.io/codelibs/fione-serving:snapshot

The bundle is named fione-serving-<model name>-<model number>.zip and holds a model/ directory with manifest.json and model.joblib. In the directory where you downloaded it, unpack it into a directory of its own, so that the bundles of several guides stay apart, and run that command there. Use the name of your file; for the model our run trained on iris.csv from the quick start:

sh
unzip fione-serving-species-model-2026-11-28-05-57-5.zip -d fione-serving-species-model-2026-11-28-05-57-5
cd fione-serving-species-model-2026-11-28-05-57-5
docker run --rm -p 8081:8080 -v "$PWD/model:/model:ro" ghcr.io/codelibs/fione-serving:snapshot

In another terminal, check that the server is up, ask which columns the model expects, and send rows to predict. For that iris model:

sh
curl -s -o /dev/null -w '%{http_code}\n' localhost:8081/ping
text
200
sh
curl -s localhost:8081/model
json
{"names":["sepal length (cm)","sepal width (cm)","petal length (cm)","petal width (cm)","species"],
 "domains":[null,null,null,null,["setosa","versicolor","virginica"]],
 "responseColumn":"species","category":"Multinomial","nclasses":3,"nfeatures":4, ...}
sh
curl -s -X POST localhost:8081/invocations -H 'Content-Type: application/json' -d '{"instances":[{"sepal length (cm)":5.1,"sepal width (cm)":3.5,"petal length (cm)":1.4,"petal width (cm)":0.2},{"sepal length (cm)":6.3,"sepal width (cm)":3.3,"petal length (cm)":6.0,"petal width (cm)":2.5}]}'
json
{"predictions":[
  {"label":"setosa","index":0,"class_probabilities":[0.9994453764261167,0.0005546235738832667,1.4460925166096807e-18]},
  {"label":"virginica","index":2,"class_probabilities":[1.3214517158026447e-11,3.7432707265099512e-06,0.9999962567160591]}]}

GET /model lists the input columns (names, the column to predict last) and the classes; instance in its full answer is a template row. POST /invocations returns one prediction per row, in order: for classification the label, its index and the class_probabilities, for regression a value. Press Ctrl+C to stop the server.

The API has no authentication, and -p 8081:8080 opens it on every network interface of this machine; use -p 127.0.0.1:8081:8080 to keep it on this machine. For every endpoint, the error answers, per-column contributions and the limits, see Fione Serving.

The data and its licences ​

  • The guides use datasets published under open licences. You download each dataset from its original source; these pages do not copy the data files.
  • Each guide names the source, the licence and the attribution, and says what was changed (a format conversion or columns left out, for example). The pages show column names, a few rows, screenshots and the results of our run.
  • Licence terms can change. Check the licence on the source page before you use the data, especially for commercial use. The guides are not legal advice.

The use cases ​

From simple to advanced:

Use caseDataPrediction typeWhat it shows
EC purchase predictionUCI Online Shoppers Purchasing IntentionClassificationThe whole flow, step by step
Telecom churn predictionUCI Iranian ChurnClassificationA small dataset with repeated rows
Late payment riskUCI Default of Credit Card ClientsClassificationTurning an Excel file into a CSV; an ID column
Sales call list priorityUCI Bank MarketingClassificationLeaving out a column known only after the call (duration)
Equipment failureUCI AI4I 2020 Predictive MaintenanceClassificationColumns that give the answer away; rare failures
Card fraudULB Credit Card FraudClassificationVery rare positives; choosing the threshold by cost
Rental demandUCI Bike SharingRegressionRows in time order; columns that add up to the answer
Appliance energy (advanced)UCI Appliances Energy PredictionRegressionValidation in time order; random columns
Property priceMLIT 不動産情報ライブラリ, transaction pricesRegressionA Japanese Shift_JIS CSV; one extreme price; the price learned as a logarithm
Area marketingNSTAC SSDSE-A (municipalities)RegressionA header of three rows; a per-person target; leaving out counts that include the answer
Message routing and spamUCI SMS Spam CollectionClassificationA text column; quotation marks in a TAB-separated file; repeated messages

To let AI tools such as Claude and Codex train and predict with the same Fione, see Run the AutoML loop from an AI tool with MCP.