Hyperparameter tuning approach question [R]

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics, Life Sciences & Biology · Depth: Advanced, short

Summary

A researcher is tackling cell type classification using a large dataset of 4.3 million cells with 512 features, aiming to address class imbalance and poor rare cell type classification. Initial attempts with logistic regression showed limitations, prompting exploration of models like LightGBM, XGBoost, and SVM. A significant bottleneck is hyperparameter tuning, which is time-consuming even on an H100 GPU with an 80/10/10 train/validate/test split. Subsampling 15% of the training data for Optuna trials was attempted, but its robustness is questioned. Experts advise against tuning on small subsets due to overfitting risks and non-transferability of parameters, suggesting it only for narrowing search spaces. Alternative strategies include reducing prevalent cell types, leveraging existing single-cell transcriptomics model hyperparameters, or exploring Bayesian workflows like Gaussian processes and BART for regularization and more robust optimization.

Key takeaway

For Machine Learning Engineers optimizing models on large, imbalanced biological datasets, avoid naive subsampling for hyperparameter tuning. Tuning on small subsets risks overfitting and non-transferable parameters. Instead, consider strategies like reducing prevalent classes or leveraging existing model hyperparameters as starting points. Explore Bayesian workflows, such as BART with variational Bayes, for more robust optimization and regularization, especially when black-box methods struggle with numerical stability or interpretability.

Key insights

Hyperparameter tuning for large, imbalanced datasets requires careful strategies to avoid overfitting and ensure robust model performance.

Principles

Method

Consider Bayesian workflows with regularization priors, such as Gaussian processes or BART, for robust optimization, especially with complex, high-dimensional biological data.

In practice

Topics

Best for: Machine Learning Engineer, Data Scientist, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.