How kartik00052/phronesisml works
PhronesisML is an offline-first, SDK- and CLI-first machine-learning lifecycle tool, with a web application for managing runs and inspecting results. The main workflow accepts a dataset, prepares and validates it, profiles it, detects a target, engineers features, trains and evaluates models, then produces explanations and artifacts. The README documents the cooperating-agent lifecycle; source excerpts establish only selected implementation links, so unsampled wiring is omitted or marked unverified.
Main entry points: graph.py Agent Workflow · pipeline_service.py Pipeline Progress · __init__.py Python SDK · agent.py Reports and Artifacts
Components 25
User Interfaces
- Python SDK
phronesisml/__init__.py - CLI
phronesisml/interfaces/cli/app.py
Workflow and Data
- Agent Workflow
phronesisml/workflow/graph.py - Engine Selection
phronesisml/engines/engine_selector.py - Data Engines
phronesisml/engines/base_engine.py - ETL and Cleaning
phronesisml/data/etl.py - Data Validation
phronesisml/data/validation.py - Dataset Profiling
phronesisml/data/eda.py
Modeling and Results
- Target Detection
phronesisml/agents/target_detection/agent.py - Feature Engineering
phronesisml/agents/feature_engineering/agent.py - Model Selection
phronesisml/agents/model_selection/agent.py - AutoML Training
phronesisml/ml/automl/trainer.py - Specialized ML
phronesisml/ml/clustering/algorithms.py - Model Evaluation
phronesisml/agents/evaluation/agent.py - Explainability
phronesisml/agents/explainability/agent.py - Reports and Artifacts
phronesisml/agents/reporting/agent.py - Artifact Storage
phronesisml/services/storage.py
Web Run Management
- Run Management UI
frontend/src/pages/runs/index.tsx - Backend API
backend/app/main.py - Pipeline Routes
backend/app/api/v1/pipeline.py - Pipeline Progress
backend/app/services/pipeline_service.py - Run Persistence
backend/app/db/repositories.py - Run Worker
backend/app/workers/runner.py
Other components
- Data Scientist
- Web User
Connections 26
- Data Scientist → Python SDK: uses
README.md - Data Scientist → CLI: invokes
phronesisml/interfaces/cli/app.py - CLI → Python SDK: calls pipeline
phronesisml/interfaces/cli/app.py - Python SDK → Agent Workflow: starts workflow
- Agent Workflow → ETL and Cleaning: dispatches stage
README.md - Agent Workflow → Data Validation: dispatches stage
README.md - Agent Workflow → Dataset Profiling: dispatches stage
README.md - Agent Workflow → Target Detection: dispatches stage
README.md - Agent Workflow → Feature Engineering: dispatches stage
README.md - Agent Workflow → Model Selection: dispatches stage
README.md - Agent Workflow → Model Evaluation: dispatches stage
README.md - Agent Workflow → Explainability: dispatches stage
README.md - Agent Workflow → Reports and Artifacts: dispatches stage
README.md - Agent Workflow → Engine Selection: selects engine
README.md - Engine Selection → Data Engines: chooses backend
README.md - Feature Engineering → Data Engines: uses engine
- Model Selection → AutoML Training: trains candidates
README.md - Agent Workflow → Specialized ML: offers capability
README.md - Reports and Artifacts → Artifact Storage: persists artifacts
- Artifact Storage → Reports and Artifacts: uses report builder
phronesisml/services/storage.py - Web User → Run Management UI: manages runs
- Run Management UI → Backend API: requests data
- Backend API → Pipeline Routes: mounts routes
backend/app/main.py - Pipeline Routes → Pipeline Progress: queries progress
backend/app/api/v1/pipeline.py - Pipeline Progress → Run Persistence: reads run state
backend/app/services/pipeline_service.py - Pipeline Progress → Run Worker: references runner
backend/app/services/pipeline_service.py