
Lightgbm Analysis
Use when training a LightGBM model on tabular data in R and returning model metrics...
Install
npx skills add aipoch/medical-research-skills --skill lightgbm-analysis -g -a claude-code -y- Repository
- aipoch/medical-research-skills2k
- Category
- Engineering
- Updated
- 2mo ago
- License
- MIT
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- No, instructions only
What it does
Use when training a LightGBM model on tabular data in R and returning model metrics, feature importance ranking tables, and feature importance plots.
LightGBM Analysis
Use this skill to build a LightGBM model on tabular data and export feature importance ranking results as both a table and a figure.
Use This Skill When
- You need a command-line LightGBM workflow written in R.
- You need classification or regression on structured tabular data.
- You need ranked feature importance outputs for reporting or interpretation.
- You need standardized outputs under
table/,figure/, anddata/.
Primary Command
Rscript scripts/main.R \
--data_file <input_file> \
--target_var <target_column> \
--output_dir <output_dir>
Prerequisites
Rscriptis available in the shell.- Required R packages:
optparse,data.table,lightgbm. - Install basic dependencies with
Rscript -e 'install.packages(c("optparse", "data.table"), repos="https://cloud.r-project.org")'. - Install the R
lightgbmpackage from the LightGBM project because it is usually not available from CRAN.
