Three classic preprocessing choices, KFold, and a single n_components sweep for PLS.
unvalidatedThree classic preprocessing choices, KFold, and a single n_components sweep for PLS.
Imported unchanged from the Studio regression preset. Complexity: 1/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.KFold",
"params": {
"shuffle": true,
"random_state": 42
}
},
{
"model": "sklearn.cross_decomposition._pls.PLSRegression",
"name": "PLS-Sweep",
"_range_": [
2,
30,
4
],
"param": "n_components"
}
]
}
# Python
import nirs4all_repository as n4r
pipe = n4r.get("studio_simple_pls_regression")
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_pls_regression/pipeline.json