Same lightweight preprocessing pattern as Simple PLS, with LightGBM and RandomForest sweeps.
unvalidatedSame lightweight preprocessing pattern as Simple PLS, with LightGBM and RandomForest sweeps.
Imported unchanged from the Studio classification preset. Complexity: 3/10.
This recipe has not been evaluated by the repository.
{
"pipeline": [
{
"_or_": [
"nirs4all.operators.transforms.scalers.StandardNormalVariate",
"nirs4all.operators.transforms.nirs.MultiplicativeScatterCorrection",
{
"class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
"params": {
"window_length": 15,
"polyorder": 2,
"deriv": 1
}
}
]
},
{
"class": "sklearn.model_selection._split.StratifiedKFold",
"params": {
"shuffle": true,
"random_state": 42
}
},
{
"model": {
"class": "lightgbm.LGBMClassifier",
"params": {
"random_state": 42,
"verbose": -1
}
},
"name": "LightGBM-Sweep",
"finetune_params": {
"n_trials": 6,
"sampler": "grid",
"approach": "single",
"eval_mode": "best",
"verbose": 0,
"model_params": {
"n_estimators": [
100,
200,
400
],
"max_depth": [
6,
10
],
"learning_rate": [
0.05
]
}
}
},
{
"model": {
"class": "sklearn.ensemble._forest.RandomForestClassifier",
"params": {
"random_state": 42
}
},
"name": "RandomForest-Sweep",
"finetune_params": {
"n_trials": 6,
"sampler": "grid",
"approach": "single",
"eval_mode": "best",
"verbose": 0,
"model_params": {
"n_estimators": [
200,
400,
800
],
"max_depth": [
8,
16
]
}
}
}
]
}
# Python
import nirs4all_repository as n4r
pipe = n4r.get("studio_simple_trees_boosting_classification")
config = pipe.to_nirs4all() # ready for nirs4all.run() / predict()# any language: read the index, fetch + verify
curl https://repository.nirs4all.org/data/index.json
curl https://repository.nirs4all.org/data/pipelines/studio_simple_trees_boosting_classification/pipeline.json