Skip to content
Back to skills

Data Ai

ASecurity

Machine Learning skill - Algorithms, training, evaluation, deployment

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
devopspythongo

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add pluginagentmarketplace/custom-plugin-linux --skill data-ai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Ai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Ai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pluginagentmarketplace-data-ai-3010670a/badge)](https://www.skillsdirectory.com/skills/pluginagentmarketplace-data-ai-3010670a)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ml
description: Machine Learning skill - Algorithms, training, evaluation, deployment
version: "1.0.0"
sasmp_version: "1.3.0"

input_schema:
  type: object
  properties:
    task: { type: string, enum: [train, evaluate, deploy, optimize, debug] }
    problem_type: { type: string, enum: [classification, regression, clustering, nlp, cv] }
  required: [task]

output_schema:
  type: object
  properties:
    code: { type: string }
    metrics: { type: object }
    recommendations: { type: array }

retry_config:
  max_attempts: 3
  backoff: exponential

timeout_ms: 120000
---

# Machine Learning Skill

## PURPOSE
ML model development, training, and deployment.

## CORE COMPETENCIES
```
Algorithms:
├── Linear/Logistic Regression
├── Decision Trees, Random Forest
├── Gradient Boosting (XGBoost, LightGBM)
├── Neural Networks
└── Clustering (K-Means, DBSCAN)

Deep Learning:
├── CNNs (Computer Vision)
├── RNNs/LSTMs (Sequences)
├── Transformers (NLP)
├── Transfer Learning
└── Fine-tuning

MLOps:
├── Experiment tracking
├── Model registry
├── Feature stores
├── Model serving
└── Monitoring
```

## CODE PATTERNS

### Training Pipeline
```python
import mlflow
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score, f1_score

with mlflow.start_run():
    # Split data
    X_train, X_test, y_train, y_test = train_test_split(
        X, y, test_size=0.2, random_state=42
    )

    # Train
    model = RandomForestClassifier(n_estimators=100)
    model.fit(X_train, y_train)

    # Evaluate
    predictions = model.predict(X_test)
    accuracy = accuracy_score(y_test, predictions)
    f1 = f1_score(y_test, predictions, average='weighted')

    # Log
    mlflow.log_params({"n_estimators": 100})
    mlflow.log_metrics({"accuracy": accuracy, "f1": f1})
    mlflow.sklearn.log_model(model, "model")
```

### PyTorch Training Loop
```python
for epoch in range(epochs):
    model.train()
    for batch in train_loader:
        optimizer.zero_grad()
        outputs = model(batch['input'])
        loss = criterion(outputs, batch['target'])
        loss.backward()
        optimizer.step()

    # Validation
    model.eval()
    with torch.no_grad():
        val_loss = evaluate(model, val_loader)

    scheduler.step(val_loss)
```

## TROUBLESHOOTING

| Issue | Cause | Solution |
|-------|-------|----------|
| Overfitting | Model too complex | Regularization, more data |
| Underfitting | Model too simple | More features, complexity |
| Slow training | Large data | GPU, batch size, mixed precision |
| OOM | Batch too large | Reduce batch, gradient accumulation |

## METRICS
```
Classification: Accuracy, Precision, Recall, F1, AUC-ROC
Regression: MSE, RMSE, MAE, R²
Ranking: MRR, NDCG
NLP: BLEU, ROUGE, Perplexity
```

Files in this skill

  • SKILL.md731 B
  • ai-SKILL.md2.6 KB
  • assets/config.yaml690 B
  • assets/schema.json1.1 KB
  • data-SKILL.md2.4 KB
  • ml-SKILL.md2.9 KB
  • references/GUIDE.md1.8 KB
  • references/PATTERNS.md1.5 KB
  • scripts/validate.py3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…