Skip to content
Back to skills

572 Usage Guide Fcc82e24

ASecurity

Build classification models for biomarker discovery and diagnostics using RandomForest, XGBoost, and logistic regression with sklearn-compatible APIs.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
testingbashexpressapi

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 572-usage-guide_fcc82e24 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 572 Usage Guide Fcc82e24?

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

Security grade badge for 572 Usage Guide Fcc82e24
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-572-usage-guide-fcc82e24/badge)](https://www.skillsdirectory.com/skills/tools-only-572-usage-guide-fcc82e24)

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

SKILL.md
# Classification Models Usage Guide

## Overview

Build classification models for biomarker discovery and diagnostics using RandomForest, XGBoost, and logistic regression with sklearn-compatible APIs.

## Prerequisites

```bash
pip install scikit-learn xgboost pandas matplotlib
```

## Quick Start

Tell your AI agent what you want to do:
- "Build a random forest classifier on my expression data"
- "Train an XGBoost model to predict disease status from my omics data"
- "Use logistic regression with L1 penalty to find sparse biomarkers"
- "Evaluate my classifier with ROC curves and AUC"

## Example Prompts

### Basic Classification

> "Train a random forest classifier on my gene expression matrix (expression.csv) with labels in metadata.csv. Show me the ROC curve and top 20 important features."

> "Build an XGBoost classifier to predict tumor vs normal from my RNA-seq counts."

### Biomarker Selection

> "Use L1-regularized logistic regression to find a sparse set of genes that classify my samples. Which genes have non-zero coefficients?"

### Multi-class

> "I have expression data with 4 cancer subtypes. Train a classifier and show the confusion matrix."

### Model Comparison

> "Compare RandomForest, XGBoost, and logistic regression on my dataset. Which has the best AUC?"

## What the Agent Will Do

1. Load expression matrix and sample labels
2. Split data into train/test sets (stratified)
3. Build preprocessing pipeline with scaling
4. Train classifier and generate predictions
5. Report metrics (accuracy, AUC, classification report)
6. Visualize ROC curve and feature importances

## Tips

- Always use stratified splits for imbalanced classes
- StandardScaler is essential for logistic regression; optional for tree models
- Use class_weight='balanced' when classes are imbalanced
- XGBoost parameters: use random_state not seed, n_jobs not nthread
- L1 penalty gives sparse solutions; L2 handles correlated features better
- For small datasets, consider nested cross-validation instead of train/test split

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.