AutoDS Copilot
🤖 A GenAI-powered agent-based tool for automated data science workflows
AutoDS Copilot is an intelligent Python package that automates exploratory data analysis, feature engineering, and machine learning model development through natural language prompts. Simply describe what you want to achieve, and let the AI agent handle the implementation details.
🚀 Key Features
- Natural Language Interface: Interact with your data using simple prompts like "Build a regression model with target = price"
- Automated EDA: Comprehensive exploratory data analysis with visualizations and insights
- Smart Feature Engineering: Automatic categorical encoding (OneHot, Ordinal, Target, etc.)
- ML Model Selection: Dynamically selects and trains suitable models for classification or regression
- Safe Code Execution: Internal Python interpreter with security safeguards
- Modular Architecture: Clean, extensible design for easy customization
- Multiple Data Sources: Support for CSV files and pandas DataFrames
- Rich Outputs: Evaluation metrics, visualizations, and model interpretability
📦 Installation
pip install autods-copilot
🔧 Quick Start
from autods_copilot import AutoDSCopilotAgent
# Initialize the agent
agent = AutoDSCopilotAgent()
# Load your dataset
agent.load_csv("data/house_prices.csv")
# Let the AI handle the rest!
result = agent.run("Perform EDA and build a regression model to predict house prices")
# Get insights and visualizations
print(result.summary)
result.show_plots()
Advanced Usage
# More specific prompts
agent.run("Create correlation heatmap and identify top 5 features for price prediction")
agent.run("Apply one-hot encoding to categorical variables and train Random Forest")
agent.run("Compare performance of Linear Regression vs XGBoost vs Neural Network")
# Direct data loading
import pandas as pd
df = pd.read_csv("your_data.csv")
agent.load_dataframe(df)
agent.run("Build classification model for target column 'category'")
With OpenAI Integration (Enhanced)
import os
from autods_copilot import AutoDSCopilotAgent
# Set your OpenAI API key
agent = AutoDSCopilotAgent(
openai_api_key=os.getenv('OPENAI_API_KEY'),
llm_model="gpt-4o" # or "gpt-4o-mini" for cost-effective option
)
# Load data
agent.load_csv("titanic.csv")
# Ask sophisticated natural language questions
result = agent.run("""
Analyze the Titanic dataset to understand survival patterns.
Focus on how passenger class, age, and gender influenced survival rates.
Create visualizations and build a predictive model.
""")
## 📁 Package Structure
autods_copilot/ ├── init.py # Package initialization ├── agent/ │ ├── init.py │ ├── copilot_agent.py # Main agent orchestrator │ └── response_handler.py # Response processing ├── interpreter/ │ ├── init.py │ ├── python_executor.py # Safe code execution engine │ └── security.py # Security validators ├── modules/ │ ├── init.py │ ├── eda/ │ │ ├── init.py │ │ ├── analyzer.py # EDA analysis │ │ └── visualizer.py # Plot generation │ ├── encoding/ │ │ ├── init.py │ │ ├── categorical.py # Encoding strategies │ │ └── numerical.py # Numerical preprocessing │ └── modeling/ │ ├── init.py │ ├── classifier.py # Classification models │ ├── regressor.py # Regression models │ └── evaluator.py # Model evaluation ├── prompts/ │ ├── init.py │ ├── templates/ │ │ ├── eda_prompts.py # EDA prompt templates │ │ ├── encoding_prompts.py # Encoding prompts │ │ └── modeling_prompts.py # ML prompts │ └── prompt_manager.py # Prompt orchestration ├── utils/ │ ├── init.py │ ├── config.py # Configuration management │ ├── logger.py # Logging utilities │ └── validators.py # Input validation └── config/ ├── default_config.yaml # Default settings └── model_configs.yaml # ML model parameters
## 🎯 Use Cases
- **Data Scientists**: Rapid prototyping and baseline model development
- **Business Analysts**: Quick insights from data without coding
- **ML Engineers**: Automated feature engineering pipelines
- **Students**: Learning data science through AI guidance
- **Researchers**: Fast experimental setup and comparison
## 🛣️ Roadmap
### Phase 1: Core Foundation ✅
- [x] Basic agent architecture
- [x] Safe code execution engine
- [x] Modular EDA capabilities
- [x] Simple encoding strategies
### Phase 2: Enhanced Intelligence 🚧
- [ ] Advanced prompt engineering
- [ ] Context-aware model selection
- [ ] Automated hyperparameter tuning
- [ ] Multi-step workflow planning
### Phase 3: LLM Integration 📋
- [ ] OpenAI GPT-4 adapter
- [ ] Anthropic Claude support
- [ ] Local LLM compatibility (Ollama)
- [ ] Custom fine-tuned models
### Phase 4: Advanced Features 📋
- [ ] Time series analysis
- [ ] Deep learning models
- [ ] AutoML integration
- [ ] Model deployment helpers
- [ ] Interactive dashboards
## 🤝 Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
```bash
# Development setup
git clone https://github.com/your-org/autods-copilot.git
cd autods-copilot
pip install -e ".[dev]"
pytest tests/
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Built with ❤️ for the data science community
- Inspired by the need for accessible AI-powered analytics
- Special thanks to all contributors and beta testers
Ready to revolutionize your data science workflow? Install AutoDS Copilot today!
Metadata
Release files for autods-copilot 0.1.0
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 | |
|---|---|---|---|---|
| autods_copilot-0.1.0.tar.gz | 50.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autods_copilot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 113.6 kB
Release files / autods_copilot-0.1.0.tar.gz
| Download URL | autods_copilot-0.1.0.tar.gz |
|---|---|
| Size | 50.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
027deadd86d7f7a1fd68f3477afa1182bf5c167b38725b49c5674c14d8c04d97
|
|
BLAKE2b-256 checksum How to use checksums |
4145fda69cbfa0ff9c3705016231f20133b74c11ea7caf8452e0cffc96c67575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Release files / autods_copilot-0.1.0-py3-none-any.whl
| Download URL | autods_copilot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 62.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c08e416742faffa3384b797c589e43ab34863715563673632c98334e7d4919d
|
|
BLAKE2b-256 checksum How to use checksums |
cef812f211c8f240bd5a2b8d27ca8cc281044fd720e8e290627e32e7f4d8cf86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Security for autods-copilot 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.