Skip to main content

AIDflow

Automated Interactive Development Framework
Human-in-the-Loop Scorecard Orchestration for Regulated ML

PyPI Python License Code Style

Built over 15 years of credit scoring, fintech R&D, and regulatory practice.

AIDflow

A human directs. An AI agent executes. The output survives committee review.


Why AIDflow?

Automated ML tools optimize metrics in isolation and hand you a black box. In regulated environments — Fintech, Banking, Insurance — that's a liability, not an asset.

AIDflow treats every model as an auditable legal artifact. It automates the pipeline mechanics while keeping a human in control of every decision: feature selection, binning strategy, model choice, champion deployment. Full transparency, full traceability, full reproducibility.

It is also an AI-orchestrable endpoint — an endpoint that lets LLM agents drive the full pipeline (genesis → training → champion) and return a deployable, regulatory-grade scorecard without human intervention.

If your scoring model must survive a committee review, AIDflow is your development environment.


Quick Start

Install & Run Demo

# Pure CLI
pip install aidflow
aidflow run demo/

# Interactive UI 
pip install aidflow[notebook]
aidflow notebook ui_demo/

Define & Run Your Project in CLI / Notebook

import aidflow as aid

# Project Context
ctx = aid.ProjectContext()

ctx.genesis(
    project      = 'my_scorecard',
    input_data   = 'data/train.csv',
    target       = 'is_churn',
    yy_mm        = 'decision_date',
    yy_mm_format = '%Y-%m-%d',
)
ctx.params(save=1, logging=1, verbose=1)

# Execute Full Pipeline
ctx.flow.process('all')

# Or Run Phase-by-Phase
ctx.flow.process('data')
ctx.flow.process('encoding')
ctx.flow.process('training')
ctx.flow.process('selection')

Inference Tests

pred = aid.Predictor(project='my_scorecard')
score = pred.champion_predict(new_data, preprocess=True)

Export Production Artifact

prod = aid.ProductionExporter(ctx.workers.champion_predictor)
prod.export_all('./production')
# → self-contained scoring module

AIDflow


Documentation

📚 View Full Documentation → aidflow.aigensys.com


Capabilities

  • Human-in-the-Loop — Every phase is a decision point. Pause, inspect, re-configure, re-run — without losing state.
  • Ensemble + Selection — Four orthogonal agents compete. An objective scoring system promotes the champion.
  • Audit-Ready — Per-step standardized artifacts: stability indices (PSI/CSI), lift tables, calibration, feature lineage, SHAP vectors.
  • Self-Contained Scoring — The exported artifact encapsulates all encoding and model state. Inference requires no training data or prior pipeline state.
  • Memory-Aware Relay — Offloads intermediate state to disk via Arrow. Run pipelines on a 16GB machine. ctx.params(offload=1).
  • Distributed Compute — Swap from local multiprocessing to Ray cluster for multi-node scaling. pip install aidflow[ray]. No pipeline changes.

Architecture

AIDflow decouples user intent from mathematical execution via a three-layer stack. Swap algorithms without touching the API.

Layer Role Responsibility
Worker Interface User-facing API. Validation, state, registration, UI.
Model Adapter Parameter resolution. Algorithm switching. Fit options.
Fitter Engine Pure computation. No UI, no context. Data in → model out.

Practical effect: switch from Lasso to ElasticNet by passing one parameter. The worker API, the state schema, and the reporting pipeline remain unchanged.


Traditional ML vs AIDflow

Dimension Traditional AIDflow
Data flow Variable passing (df1 → df2 → ... → dfN) Context registration (semantic lineage)
Architecture Monolithic script Worker → Model → Fitter (swappable layers)
Extension Rewrite the function Define a new Fitter, register it. Done.
Stability Manual checks, date slicing Built-in temporal phases (pre-training)
Memory RAM-bound. Sample or add hardware. Arrow offload. Runs on any machine.
Compute multiprocessing or manual joblib Local multiprocessing (default) → Ray cluster (one param)
Reproducibility "Works on my machine" Context-locked. Run-to-run identical.
AI Manual step-by-step orchestration Single-call pipeline → production DAG. Stateless, idempotent, AI-friendly.

Execution Pipeline

GENESIS → DATA → ENCODING → TRAINING → SELECTION → INFERENCE

📊 Data — Loader, Fe Cleaner, Fe Stabilizer, Obs Stabilizer
🔢 Encoding — Num Encoder, Cat Encoder, Ixn Encoder, WOE Encoder, WOE Stabilizer, Data Encoder
🤖 Training — Agent 1 (GLM), Agent 2 (L1/L2), Agent 3 (PLS), Agent 4 (GBM)
🏆 Selection — Agents Predictor, Comparator, Transition, Selector, Champion
🎯 Inference — Production Predictor, Production Export

Human-in-the-Loop: Interactive adjustments, pause, inspect, re-configure at every boundary


Requirements


Licensing

Functional Source License (FSL 1.1) with automatic Apache 2.0 grant after 2 years.

  • Permitted: Internal use, non-commercial education/research, professional services delivery.
  • Restricted: Building a competing commercial product on top of AIDflow's core engine.
  • After 2 years: Automatically converts to Apache 2.0 (full open source, no restrictions).

Full license → LICENSE | Learn more → fsl.software


Citation

@software{AIDflow,
  author = {Michal Ricar, PhD},
  year = {2026},
  publisher = {AIGENSYS s.r.o.},
  title = {AIDflow: Automated Interactive Development Framework for Regulated Scorecard Orchestration},
  url = {https://github.com/aigensys-labs/aidflow}
}

Built for practitioners who build models that must survive a regulatory audit.

Metadata

Release files for aidflow 3.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aidflow 3.0.12
File Size Uploaded Provenance Actions
aidflow-3.0.12.tar.gz 16.4 MB With provenance Details for aidflow-3.0.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aidflow 3.0.12
File Interpreter ABI Platform Actions
aidflow-3.0.12-py3-none-any.whl Python 3 none any Details for aidflow-3.0.12-py3-none-any.whl

Total release size: 17.7 MB

Release files / aidflow-3.0.12.tar.gz

Download URL aidflow-3.0.12.tar.gz
Size 16.4 MB
Tags Source
SHA-256 checksum
How to use checksums
76fe87450630ac5244d3a01dfa49ac80cd76cf419854c27b9dc569b49e9b9836
BLAKE2b-256 checksum
How to use checksums
21d6dce9c7f7bf2ef3358599865c6e3436bb1258e314cd03c44cdedecb2507c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / aidflow-3.0.12-py3-none-any.whl

Download URL aidflow-3.0.12-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1072e7b98351761fa7b4ddf5aad7d394a29bd24bb64959adb61114fadb8ffab7
BLAKE2b-256 checksum
How to use checksums
4406fdd012b6a7f0959669176744dba4579ac18716b86779053e6ac1a2e11680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for aidflow 3.0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aidflow-3.0.12.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.12 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page