# faizansk25/fiae architecture

> Architecture diagram of the GitHub repository faizansk25/fiae, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/faizansk25/fiae
- Repository: https://github.com/faizansk25/fiae

## Overview

FIAE is a safety-focused automated feature-engineering and model-selection product. Users provide a dataset and target through the CLI, API, or library; FIAE adapts and profiles the data, infers the task, proposes and screens features, selects a portfolio, trains and evaluates models, and can export a verified fitted pipeline. The graph also preserves documented experience memory, runtime security, and API/dashboard capabilities. Some subsystem links are documented in the README rather than evidenced by sampled call sites; those are marked accordingly.

Main entry points: [`src/fiae/learn.py`](https://github.com/faizansk25/fiae/blob/main/src/fiae/learn.py) (Learning workflow), [`src/fiae/codegen/pipeline_ir.py`](https://github.com/faizansk25/fiae/blob/main/src/fiae/codegen/pipeline_ir.py) (Pipeline representation), [`src/fiae/fitted_pipeline.py`](https://github.com/faizansk25/fiae/blob/main/src/fiae/fitted_pipeline.py) (Fitted transforms), [`src/fiae/cli.py`](https://github.com/faizansk25/fiae/blob/main/src/fiae/cli.py) (CLI commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry points"]
  node_cli["CLI commands<br/>[cli.py]"]
  node_api["REST dashboard<br/>[server.py]"]
  node_learn["Learning workflow<br/>[learn.py]"]
end

subgraph group_data["Data understanding"]
  node_intake["Source adapters<br/>[adapter_factory.py]"]
  node_profile["Data profiling<br/>[profiler.py]"]
  node_typing["Type inference<br/>[typing_engine.py]"]
  node_task["Task inference<br/>[task.py]"]
end

subgraph group_engineering["Feature engineering safety"]
  node_proposals["Feature proposals<br/>[triggers.py]"]
  node_operators["Operator registry<br/>[registry.py]"]
  node_leakage["Leakage screening<br/>[leakage.py]"]
  node_funnel["Feature quality funnel<br/>[funnel.py]"]
  node_fitted["Fitted transforms<br/>[fitted_pipeline.py]"]
end

subgraph group_modeling["Model selection"]
  node_models["Model training<br/>[model_training.py]"]
  node_registry["Model registry<br/>[model_registry.py]"]
  node_evaluation["Evaluation and report<br/>[evaluate.py]"]
end

subgraph group_platform["Memory and delivery"]
  node_experience["Experience retrieval<br/>[retrieval.py]"]
  node_experience_store[("Experience store<br/>[store.py]")]
  node_security["Security enforcement<br/>[enforcement.py]"]
  node_ir["Pipeline representation<br/>[pipeline_ir.py]"]
  node_compiler["Export compiler<br/>[compiler.py]"]
  node_contracts["Typed contracts<br/>[contracts.py]"]
  node_ids["Stable identities<br/>[ids.py]"]
end

node_user(("Data scientist"))

node_user -->|"invokes"| node_cli
node_user -->|"submits jobs"| node_api
node_cli -->|"runs learning"| node_learn
node_api -->|"runs pipeline"| node_learn
node_learn -->|"opens source"| node_intake
node_intake -->|"profiles source"| node_profile
node_profile -->|"infers types"| node_typing
node_learn -->|"infers task"| node_task
node_learn -->|"creates proposals"| node_proposals
node_proposals -->|"selects operators"| node_operators
node_learn -->|"screens features"| node_leakage
node_learn -->|"filters proposals"| node_funnel
node_learn -->|"fits portfolio"| node_fitted
node_learn -->|"uses memory"| node_experience_store
node_experience -->|"retrieves cases"| node_experience_store
node_learn -->|"evaluates results"| node_evaluation
node_learn -.->|"trains models"| node_models
node_models -->|"uses families"| node_registry
node_learn -.->|"exports pipeline"| node_ir
node_ir -->|"generates code"| node_compiler
node_fitted -->|"builds representation"| node_ir
node_ir -->|"derives identifiers"| node_ids
node_learn -->|"uses schemas"| node_contracts
node_fitted -->|"uses schemas"| node_contracts
node_learn -.->|"enforces policies"| node_security

click node_cli "https://github.com/faizansk25/fiae/blob/main/src/fiae/cli.py"
click node_api "https://github.com/faizansk25/fiae/blob/main/src/fiae/server.py"
click node_learn "https://github.com/faizansk25/fiae/blob/main/src/fiae/learn.py"
click node_intake "https://github.com/faizansk25/fiae/blob/main/src/fiae/intake/adapter_factory.py"
click node_profile "https://github.com/faizansk25/fiae/blob/main/src/fiae/intake/profiler.py"
click node_typing "https://github.com/faizansk25/fiae/blob/main/src/fiae/intake/typing_engine.py"
click node_task "https://github.com/faizansk25/fiae/blob/main/src/fiae/problem/task.py"
click node_proposals "https://github.com/faizansk25/fiae/blob/main/src/fiae/search/triggers.py"
click node_operators "https://github.com/faizansk25/fiae/blob/main/src/fiae/features/registry.py"
click node_leakage "https://github.com/faizansk25/fiae/blob/main/src/fiae/problem/leakage.py"
click node_funnel "https://github.com/faizansk25/fiae/blob/main/src/fiae/funnel.py"
click node_fitted "https://github.com/faizansk25/fiae/blob/main/src/fiae/fitted_pipeline.py"
click node_models "https://github.com/faizansk25/fiae/blob/main/src/fiae/orchestration/model_training.py"
click node_registry "https://github.com/faizansk25/fiae/blob/main/src/fiae/model_registry.py"
click node_evaluation "https://github.com/faizansk25/fiae/blob/main/src/fiae/evaluate.py"
click node_experience "https://github.com/faizansk25/fiae/blob/main/src/fiae/experience/retrieval.py"
click node_experience_store "https://github.com/faizansk25/fiae/blob/main/src/fiae/experience/store.py"
click node_security "https://github.com/faizansk25/fiae/blob/main/src/fiae/security/enforcement.py"
click node_ir "https://github.com/faizansk25/fiae/blob/main/src/fiae/codegen/pipeline_ir.py"
click node_compiler "https://github.com/faizansk25/fiae/blob/main/src/fiae/codegen/compiler.py"
click node_contracts "https://github.com/faizansk25/fiae/blob/main/src/fiae/contracts.py"
click node_ids "https://github.com/faizansk25/fiae/blob/main/src/fiae/ids.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_api,node_learn toneBlue
class node_intake,node_profile,node_typing,node_task toneAmber
class node_proposals,node_operators,node_leakage,node_funnel,node_fitted toneMint
class node_models,node_registry,node_evaluation toneRose
class node_experience,node_experience_store,node_security,node_ir,node_compiler,node_contracts,node_ids,node_user toneIndigo
```

## Components

### User entry points

- [CLI commands](https://github.com/faizansk25/fiae/blob/main/src/fiae/cli.py): `src/fiae/cli.py`
- [REST dashboard](https://github.com/faizansk25/fiae/blob/main/src/fiae/server.py): `src/fiae/server.py`
- [Learning workflow](https://github.com/faizansk25/fiae/blob/main/src/fiae/learn.py): `src/fiae/learn.py`

### Data understanding

- [Source adapters](https://github.com/faizansk25/fiae/blob/main/src/fiae/intake/adapter_factory.py): `src/fiae/intake/adapter_factory.py`
- [Data profiling](https://github.com/faizansk25/fiae/blob/main/src/fiae/intake/profiler.py): `src/fiae/intake/profiler.py`
- [Type inference](https://github.com/faizansk25/fiae/blob/main/src/fiae/intake/typing_engine.py): `src/fiae/intake/typing_engine.py`
- [Task inference](https://github.com/faizansk25/fiae/blob/main/src/fiae/problem/task.py): `src/fiae/problem/task.py`

### Feature engineering safety

- [Feature proposals](https://github.com/faizansk25/fiae/blob/main/src/fiae/search/triggers.py): `src/fiae/search/triggers.py`
- [Operator registry](https://github.com/faizansk25/fiae/blob/main/src/fiae/features/registry.py): `src/fiae/features/registry.py`
- [Leakage screening](https://github.com/faizansk25/fiae/blob/main/src/fiae/problem/leakage.py): `src/fiae/problem/leakage.py`
- [Feature quality funnel](https://github.com/faizansk25/fiae/blob/main/src/fiae/funnel.py): `src/fiae/funnel.py`
- [Fitted transforms](https://github.com/faizansk25/fiae/blob/main/src/fiae/fitted_pipeline.py): `src/fiae/fitted_pipeline.py`

### Model selection

- [Model training](https://github.com/faizansk25/fiae/blob/main/src/fiae/orchestration/model_training.py): `src/fiae/orchestration/model_training.py`
- [Model registry](https://github.com/faizansk25/fiae/blob/main/src/fiae/model_registry.py): `src/fiae/model_registry.py`
- [Evaluation and report](https://github.com/faizansk25/fiae/blob/main/src/fiae/evaluate.py): `src/fiae/evaluate.py`

### Memory and delivery

- [Experience retrieval](https://github.com/faizansk25/fiae/blob/main/src/fiae/experience/retrieval.py): `src/fiae/experience/retrieval.py`
- [Experience store](https://github.com/faizansk25/fiae/blob/main/src/fiae/experience/store.py): `src/fiae/experience/store.py`
- [Security enforcement](https://github.com/faizansk25/fiae/blob/main/src/fiae/security/enforcement.py): `src/fiae/security/enforcement.py`
- [Pipeline representation](https://github.com/faizansk25/fiae/blob/main/src/fiae/codegen/pipeline_ir.py): `src/fiae/codegen/pipeline_ir.py`
- [Export compiler](https://github.com/faizansk25/fiae/blob/main/src/fiae/codegen/compiler.py): `src/fiae/codegen/compiler.py`
- [Typed contracts](https://github.com/faizansk25/fiae/blob/main/src/fiae/contracts.py): `src/fiae/contracts.py`
- [Stable identities](https://github.com/faizansk25/fiae/blob/main/src/fiae/ids.py): `src/fiae/ids.py`

### Other components

- **Data scientist**

## Connections

- Data scientist → CLI commands: invokes (evidence: `README.md`)
- Data scientist → REST dashboard: submits jobs (evidence: `src/fiae/server.py`)
- CLI commands → Learning workflow: runs learning
- REST dashboard → Learning workflow: runs pipeline (evidence: `src/fiae/server.py`)
- Learning workflow → Source adapters: opens source (evidence: `src/fiae/learn.py`)
- Source adapters → Data profiling: profiles source (evidence: `src/fiae/intake/__init__.py`)
- Data profiling → Type inference: infers types (evidence: `src/fiae/intake/profiler.py`)
- Learning workflow → Task inference: infers task (evidence: `src/fiae/learn.py`)
- Learning workflow → Feature proposals: creates proposals (evidence: `src/fiae/search/triggers.py`)
- Feature proposals → Operator registry: selects operators
- Learning workflow → Leakage screening: screens features (evidence: `src/fiae/learn.py`)
- Learning workflow → Feature quality funnel: filters proposals (evidence: `src/fiae/learn.py`)
- Learning workflow → Fitted transforms: fits portfolio (evidence: `src/fiae/learn.py`)
- Learning workflow → Experience store: uses memory (evidence: `src/fiae/learn.py`)
- Experience retrieval → Experience store: retrieves cases (evidence: `src/fiae/experience/retrieval.py`)
- Learning workflow → Evaluation and report: evaluates results (evidence: `src/fiae/learn.py`)
- Learning workflow → Model training: trains models
- Model training → Model registry: uses families
- Learning workflow → Pipeline representation: exports pipeline
- Pipeline representation → Export compiler: generates code (evidence: `src/fiae/codegen/compiler.py`)
- Fitted transforms → Pipeline representation: builds representation (evidence: `src/fiae/codegen/pipeline_ir.py`)
- Pipeline representation → Stable identities: derives identifiers (evidence: `src/fiae/codegen/pipeline_ir.py`)
- Learning workflow → Typed contracts: uses schemas (evidence: `src/fiae/learn.py`)
- Fitted transforms → Typed contracts: uses schemas (evidence: `src/fiae/fitted_pipeline.py`)
- Learning workflow → Security enforcement: enforces policies
