Automated Interactive Development Framework
Human-in-the-Loop Scorecard Orchestration for Regulated ML
Built over 15 years of credit scoring, fintech R&D, and regulatory practice.
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.selection.champion_predictor)
prod.export_all('./production')
# → self-contained scoring module
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
- Python 3.12+
- Dependencies
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
Built for practitioners who build models that must survive a regulatory audit.
Metadata
Release files for aidflow 3.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aidflow-3.0.9.tar.gz | 20.3 MB | With provenance | Details for aidflow-3.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aidflow-3.0.9-py3-none-any.whl | Python 3 | none | any | Details for aidflow-3.0.9-py3-none-any.whl |
Total release size: 21.6 MB
Release files / aidflow-3.0.9.tar.gz
| Download URL | aidflow-3.0.9.tar.gz |
|---|---|
| Size | 20.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc88996703806d91d22d53beb180627bba51258a2054c6c2ed1b84e1f3c82c28
|
|
BLAKE2b-256 checksum How to use checksums |
408440e6367703e513899b9e2e44b889d78d4b3d491469313d54622d99e03690
|
| 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 5, 2026.
Transparency logRelease files / aidflow-3.0.9-py3-none-any.whl
| Download URL | aidflow-3.0.9-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af39f6a8b6b09d9774b372fb0e6e6d32a0aaae5284f2f5d09f2afcf56c9f4e6f
|
|
BLAKE2b-256 checksum How to use checksums |
250e2422671f3022b88c129c71db1f93293e041793d7fd4850d6186774e0b79c
|
| 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 5, 2026.
Transparency logSecurity for aidflow 3.0.9
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.
Attestation for aidflow-3.0.9.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 5, 2026.
Transparency logA 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.