Skip to main content

AIDflow

Human-in-the-Loop Scorecard Orchestration for Regulated ML

PyPI version Python Version License Code Style


Most automated machine learning tools act as black-box wrappers—they optimize metrics in isolation while hiding the underlying logic, producing models that risk failure during regulatory scrutiny. AIDflow is built differently.

Designed specifically for high-stakes, highly regulated industries (Fintech, Banking, Insurance), AIDflow treats machine learning models not as opaque binary artifacts, but as auditable, legal assets. It provides a comprehensive ecosystem for scorecard development built around Human-in-the-Loop Governance.


🏛️ Core Pillars

🎯 Absolute Micromanagement

Automation should never mean a loss of control. While AIDflow automates repetitive pipeline mechanics, every layer remains fully transparent and configurable. Practitioners can pause execution, inspect intermediate states, and fine-tune parameters—from raw feature ingestion and binning to final champion model selection.

📋 Audit-Ready Reporting

Every execution phase generates comprehensive, standardized documentation out of the box. AIDflow goes beyond traditional accuracy metrics ($AUC$, $Gini$) to produce full validation artifacts required by internal risk committees and external financial regulators.

🛡️ Production Scorecard Readiness

Outputs extend far beyond standard estimator binaries (.pkl / .joblib). AIDflow generates fully engineered production scorecards complete with Population Stability Index ($PSI$), Characteristic Stability Index ($CSI$), score transformations, and feature explainability vectors that satisfy international credit risk standards (e.g., Basel II/III, IFRS 9).

⚡ Bridging the Governance Gap

AIDflow eliminates the friction between rapid experimental prototyping and enterprise compliance—ensuring models that perform in a Jupyter notebook transition seamlessly into compliant production environments.


🚀 Quick Start

Installation

pip install aidflow

Basic Usage

Defining the Project Context (Control Plane) & Project Scope:

import aidflow as aid

ctx = aid.ProjectContext()

ctx.genesis(
project      = 'test',
input_data   = 'test.csv',
target       = 'target',
yy_mm        = 'decision_date',
yy_mm_format = '%d%b%y'
)
ctx.params()

Worker → Model

Accessing worker's inputs schema → parameters & types:

ctx.workers.data_loader.inputs

Accessing worker's fitter options and schema → parameters & types:

ctx.workers.data_loader.fitters

Executing worker with defaults → auto provided by the context:

ctx.workers.data_loader()

Once worker has been executed, thus its main model has been built,
we have access to all populated attributes.

ctx.workers.data_loader.inputs.inputs
ctx.workers.data_loader.result
ctx.workers.data_loader.state
ctx.workers.data_loader.features
ctx.workers.data_loader.stats
ctx.workers.data_loader.params
ctx.workers.data_loader.fitter  # jump to chosen internal fitter
...

View to model report of executed worker:

ctx.workers.data_loader.report.show()

Model → Fitter

Once worker has been executed, we obtain internal fitter state
and its parametrization:

ctx.workers.data_loader.fitter

The fitted fitter provides all populated attributes.

ctx.workers.data_loader.fitter.stats
ctx.workers.data_loader.fitter.params

Direct choice and parametrization of internal fitter:

fx  = ctx.registry.data_loader[0]
prm = dict(
flow_vars = ['target1', 'target2'],
columns_subset = ['fe1', 'fe2']
)
loader = ctx.workers.data_loader(fx_choice = fx, fx_params = prm)

In the experimenting phase when various targets might be under testing
(note that target2 must be present in the data):

cfg = dict(
target = 'target2',
)
woe =  ctx.workers.data_loader(fx_config = cfg)

Pipeline Architecture

[ Raw Data Ingestion ] │ ▼ [ Feature Binning & WOE Transformation ] ──► (Human-in-the-Loop Adjustments) │ ▼ [ Multi-Constraint Feature Selection ] ──► (PSI / Monotonicity Filtering) │ ▼ [ Scorecard Scaling & Alignment ] ──► (Points to Double Odds Setup) │ ▼ [ Audit Report & Model Artifacts ] ──► (Compliance PDF & Production Rules)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aidflow-3.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aidflow-3.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file aidflow-3.0.1.tar.gz.

File metadata

  • Download URL: aidflow-3.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for aidflow-3.0.1.tar.gz
Algorithm Hash digest
SHA256 5300402e0d856fc5373b8f8ea988429573231825a49462712aaba812ca929326
MD5 f34544fa521cb3e06b737bc809ee52e4
BLAKE2b-256 3bd90e04efb8b0aa360adda616d97127c1db5e20e543b0c3ba064f0f7a12907e

See more details on using hashes here.

File details

Details for the file aidflow-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: aidflow-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for aidflow-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44ac9abfe4c1d7829f763f265d4f2eaa0af3a88e7da78bcc8f862e408e7d94a3
MD5 6a0615606ee3efb7f466d7c18d8a221d
BLAKE2b-256 2a9e9d1739920c382925e83ce8093adffd529e26fde211f4c17460dfa0554397

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.8

2 files

3.0.7

2 files

3.0.6

2 files

3.0.5

2 files

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

This release

3.0.1 This release

2 files

3.0.0

2 files

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