← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-machine-learning-omics-classifiers / references / usage-guide.md

Classification Models for Omics Data Usage Guide

Overview

Build diagnostic and prognostic classifiers on omics feature matrices with regularized logistic regression, random forest, and gradient-boosted trees. The discipline this skill enforces is that in the p>>n regime a regularized linear model is often the strongest baseline, the probability (not the label) is usually the product so calibration matters more than accuracy, and a suspiciously perfect AUC is most often a batch artifact rather than biology.

Prerequisites

pip install scikit-learn xgboost imbalanced-learn pandas

Conceptual prerequisites: know whether the deliverable is a probability or a hard label, whether batch is confounded with the outcome, and whether feature selection and scaling are inside the cross-validation loop (machine-learning/model-validation).

Quick Start

Tell your AI agent what you want to do: - "Build an elastic-net logistic classifier as a baseline on my expression data" - "Train XGBoost with early stopping and check whether it beats the linear model" - "Is my high AUC real, or is it learning the batch?" - "My classes are imbalanced -- should I use SMOTE?"

Example Prompts

Algorithm choice

"Build a classifier from my RNA-seq matrix. Start with regularized logistic regression and only escalate to trees if there is interaction signal it misses."

"Train an XGBoost classifier with a low learning rate, shallow depth, and early stopping; the dataset is small."

Batch shortcuts

"My cross-validated AUC is 0.97. Check whether the model is learning batch instead of biology by predicting the batch from the features and using a batch-aware split."

Imbalance and calibration

"My positive class is 8%. Handle the imbalance without destroying calibration, and tell me whether SMOTE is appropriate."

"Check whether my random forest probabilities are calibrated and recalibrate them if not."

Mixed features and missing data

"My features mix continuous expression and categorical genotype with missing values. Set up the preprocessing and a model that handles NaN natively."

What the Agent Will Do

  1. Start with a regularized linear baseline (often the ceiling in p>>n)
  2. Escalate to RF/XGBoost only when nonlinear or interaction signal is present, with early stopping
  3. Run the batch-shortcut checks (predict the batch; leave-one-batch-out) before trusting any AUC
  4. Handle imbalance by class weighting or threshold tuning, not resampling, for risk models
  5. Check and recalibrate probabilities; report AUPRC and MCC under imbalance
  6. Keep all preprocessing inside the CV fold and defer unbiased evaluation to model-validation

Tips