Skip to main content

Comparative model evaluation

Evaluate candidate models with the same immutable dataset and policy.

Import this workflow from AkôFlow Hub

Open the public README and measured execution results. The Hub includes the execution capture, activity metrics, logs and version history. Reading public results does not require an account.

In Desktop, choose Create workflow → Import from Hub and paste this version-specific URI:

akoflow://hub/publications/b27171db-6488-4913-813a-3d93e305e6e7/versions/1

Download the exact workflow YAML (v1). Configure the runtime prerequisites below before planning and executing it.

Run this example locally

Evaluate an ordinary-least-squares model, a mean baseline, and a limited-budget gradient-descent model on the same held-out rows, rank their errors, and approve only a candidate that passes the declared accuracy threshold.

Install Go and Python 3.12 or newer.

git clone https://github.com/UFFeScience/akoflow-examples.git &&
cd akoflow-examples &&
git checkout --detach d890c3171e3661890305b763b8fc3ede48bb61b4 &&
cd machine-learning/model-comparison &&
./prepare.sh &&
./run.sh

Run the block from the directory where you keep your repositories. If you already cloned the repository, enter this example's directory and run ./prepare.sh && ./run.sh.

Preparation downloads the Go module and any declared Python packages once. The workload then runs locally with offline input data. Every meaningful step is a separate process; independent activities run in parallel after their dependencies complete.

Read outputs/manifest.json for the generated artifacts, outputs/dag-validation.json for dependency waves, and outputs/stage-<activity>.json for each activity's observed result. A failed stage stops the run and prevents a successful final manifest.

Expected outputs: comparison.csv, report.html.

Run the same activities in Desktop

Start your local AkôFlow daemon with Docker available and configure AKOFLOW_API_TOKEN in your shell. From this example's directory, run:

go run ../../tools/daemon-local -root ../.. -example machine-learning/model-comparison

This command validates the daemon connection, builds the declared image, registers the local environment and workflow, and submits a real run. The daemon owns execution and file transfers. Open the printed run ID in Desktop to inspect each activity.

Comparative model evaluation. Nodes in the same column can run in parallel once their dependencies complete.

Activity responsibilities

ActivityResponsibility
freeze-evaluation-setExecute the freeze-evaluation-set stage and publish its declared outputs for downstream activities.
evaluate-aExecute the evaluate-a stage and publish its declared outputs for downstream activities.
evaluate-bExecute the evaluate-b stage and publish its declared outputs for downstream activities.
evaluate-cExecute the evaluate-c stage and publish its declared outputs for downstream activities.
compare-metricsExecute the compare-metrics stage and publish its declared outputs for downstream activities.
approve-candidateExecute the approve-candidate stage and publish its declared outputs for downstream activities.

Inputs

  • Candidate models
  • Evaluation set
  • Acceptance policy

Outputs

  • comparison.csv
  • report.html

Provenance to preserve

  • Model versions
  • Evaluation runtime
  • Approval rationale

Source bundle

The executable workflow and its implementation files are maintained in the separate AkôFlow examples repository. The documentation intentionally keeps code, container recipes, generators, and validation scripts out of the narrative page.

Open the complete source bundle ↗

Execution evidence

Verified on local Docker: 6/6 activities completed. These captures belong to run showcase-model-comparison-local-8c91f9619e-run-20261020t191035.554879000.

Read the daemon execution record · Local output manifest

Open full resolution ↗Comparative model evaluation: observed activity DAG
The observed activity graph. Click to see the complete capture.

Each stage also ran through the standalone local command. Read the dependency and artifact validation.

freeze-evaluation-set

After: workflow start.

Open full resolution ↗Execution record for activity freeze-evaluation-set

Read the measured local activity result

evaluate-a

After: freeze-evaluation-set.

Open full resolution ↗Execution record for activity evaluate-a

Read the measured local activity result

evaluate-b

After: freeze-evaluation-set.

Open full resolution ↗Execution record for activity evaluate-b

Read the measured local activity result

evaluate-c

After: freeze-evaluation-set.

Open full resolution ↗Execution record for activity evaluate-c

Read the measured local activity result

compare-metrics

After: evaluate-a, evaluate-b, evaluate-c.

Open full resolution ↗Execution record for activity compare-metrics

Read the measured local activity result

approve-candidate

After: compare-metrics.

Open full resolution ↗Execution record for activity approve-candidate

Read the measured local activity result

Execution considerations

Use comparable resources when latency is part of the decision. Keep quality and execution performance as separate measurements.

AkôFlow boundary: the engine schedules, deploys, executes, transfers data, and records evidence. The ML or agent framework remains an implementation choice inside each activity.