Machine learning

From aiskillstore/marketplace · View interactive version

Machine learning is an AI agent skill from the GitHub repository aiskillstore/marketplace. Machine learning development patterns, model training, evaluation, and deployment. Use when building ML pipelines, training models, feature engineering, model evaluation, or deploying ML systems to production.

How to use this skill

Skill file

Machine Learning

Comprehensive machine learning skill covering the full ML lifecycle from experimentation to production deployment.

When to Use This Skill

ML Development Lifecycle

1. Problem Definition

Classification Types:

Success Metrics by Problem Type:

| Problem Type | Primary Metrics | Secondary Metrics |

|--------------|-----------------|-------------------|

| Binary Classification | AUC-ROC, F1 | Precision, Recall, PR-AUC |

| Multi-class | Macro F1, Accuracy | Per-class metrics |

| Regression | RMSE, MAE | R², MAPE |

| Ranking | NDCG, MAP | MRR |

| Clustering | Silhouette, Calinski-Harabasz | Davies-Bouldin |

2. Data Preparation

Data Quality Checks:

Feature Engineering Patterns:

Train/Test Split Strategies:

3. Model Selection

Algorithm Selection Guide:

| Data Size | Problem | Recommended Models |

|-----------|---------|-------------------|

| Small (<10K) | Classification | Logistic Regression, SVM, Random Forest |

| Small (<10K) | Regression | Linear Regression, Ridge, SVR |

| Medium (10K-1M) | Classification | XGBoost, LightGBM, Neural Networks |

| Medium (10K-1M) | Regression | XGBoost, LightGBM, Neural Networks |

| Large (>1M) | Any | Deep Learning, Distributed training |

| Tabular | Any | Gradient Boosting (XGBoost, LightGBM, CatBoost) |

| Images | Classification | CNN, ResNet, EfficientNet, Vision Transformers |

| Text | NLP | Transformers (BERT, RoBERTa, GPT) |

| Sequential | Time Series | LSTM, Transformer, Prophet |

4. Model Training

Hyperparameter Tuning:

Common Hyperparameters:

| Model | Key Parameters |

|-------|---------------|

| XGBoost | learning_rate, max_depth, n_estimators, subsample |

| LightGBM | num_leaves, learning_rate, n_estimators, feature_fraction |

| Random Forest | n_estimators, max_depth, min_samples_split |

| Neural Networks | learning_rate, batch_size, layers, dropout |

5. Model Evaluation

Evaluation Best Practices:

Handling Imbalanced Data:

6. Production Deployment

Model Serving Patterns:

Production Considerations:

7. Monitoring & Maintenance

What to Monitor:

Retraining Triggers:

MLOps Best Practices

Experiment Tracking

Track for every experiment:

Model Versioning

models/
├── model_v1.0.0/
│   ├── model.pkl
│   ├── metadata.json
│   ├── requirements.txt
│   └── metrics.json
├── model_v1.1.0/
└── model_v2.0.0/

CI/CD for ML

  1. Continuous Integration:
  1. Continuous Deployment:

Reference Files

For detailed patterns and code examples, load reference files as needed:

Integration with Other Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.