agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extr…
维护者 FreedomIntelligence · 最近更新 2026年4月1日
Cross-validation, AUC-ROC, calibration, and permutation testing.
原始来源
https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-machine-learning-model-validation
技能摘要
原始文档
Simple train/test splits overestimate performance on small omics datasets. Nested CV provides unbiased estimates by separating hyperparameter tuning from performance evaluation.
from sklearn.model_selection import cross_val_score, StratifiedKFold, GridSearchCV
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import Pipeline
import numpy as np
pipe = Pipeline([
('scaler', StandardScaler()),
('clf', RandomForestClassifier(random_state=42))
])
param_grid = {
'clf__n_estimators': [50, 100, 200],
'clf__max_depth': [5, 10, None]
}
## Stratified K-Fold
```python
from sklearn.model_selection import StratifiedKFold, cross_val_score
相关技能
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extr…
Access 20+ years of global financial data: equities, options, forex, crypto, commodities, economic indicators, and 50+ t…
Filter alignments by flag, quality, region, or paired status.
Index BAM/CRAM files with samtools index for random access.