How makarand-kulkarni1/autonomous-data-scientist-agent works
This is an autonomous data-science application: a user submits a CSV and prediction goal, then receives a trained model, evaluation outputs, and run reports. The main runtime path profiles the dataset, creates a validated plan, generates and sandbox-executes code, reviews each successful step, and retries rejected work before advancing. The README documents tracking, resumable runs, benchmarking, and both API and Streamlit interfaces. Some of those implementations were not excerpted, so their connections are shown only where documented.
Main entry points: orchestrator.py Pipeline orchestrator · main.py Run API · llm.py LLM client · planner.py Plan generation
Components 18
User interfaces
- Streamlit UI
app/streamlit_app.py - Run API
api/main.py
Run orchestration
- Pipeline orchestrator
src/orchestrator.py - Dataset profiler
src/profiler.py
Agent execution
- Plan generation
src/agents/planner.py - Plan validation
src/schemas.py - Code generation
src/agents/coder.py - Code sandbox
src/sandbox.py - Step review
src/agents/reviewer.py - LLM client
src/llm.py
Evaluation and records
- Metric contract
src/metrics_contract.py - Run tracking
src/tracking.py - Benchmark evaluation
src/evaluation.py - Report generation
src/report.py
Other components
- Dataset user
- LLM provider
- Docker runtime
- MLflow service
Connections 21
- Dataset user → Streamlit UI: submits CSV
README.md - Streamlit UI → Run API: starts run
README.md - Dataset user → Run API: uploads CSV
README.md - Run API → Pipeline orchestrator: runs pipeline
api/main.py - Run API → Report generation: generates reports
api/main.py - Pipeline orchestrator → Dataset profiler: profiles data
src/orchestrator.py - Pipeline orchestrator → Plan generation: requests plan
src/orchestrator.py - Plan generation → Plan validation: validates plan
src/agents/planner.py - Plan generation → LLM client: requests plan
src/agents/planner.py - Pipeline orchestrator → Code generation: solves steps
src/orchestrator.py - Code generation → LLM client: generates code
src/agents/coder.py - Code generation → Code sandbox: executes code
src/agents/coder.py - Code sandbox → Docker runtime: runs container
src/sandbox.py - Pipeline orchestrator → Step review: reviews output
src/orchestrator.py - Step review → LLM client: judges step
src/agents/reviewer.py - LLM client → LLM provider: sends prompts
src/llm.py - Pipeline orchestrator → Metric contract: validates metric
src/orchestrator.py - Pipeline orchestrator → Run tracking: records run
README.md - Run tracking → MLflow service: logs run
README.md - Dataset user → Benchmark evaluation: requests benchmark
README.md - Report generation → Pipeline orchestrator: reads run result
src/report.py