repository
catalogue / studio_nonlinear_exploration_regression

Non-Linear Exploration (Regression)

Cartesian preprocessing with LightGBM, XGBoost, NICON, and TabPFN for broad non-linear screening.

unvalidated

Overview

Non-Linear Exploration

Cartesian preprocessing with LightGBM, XGBoost, NICON, and TabPFN for broad non-linear screening.

Imported unchanged from the Studio regression preset. Complexity: 6/10.

This recipe has not been evaluated by the repository.

Recipe

{
  "pipeline": [
    {
      "_cartesian_": [
        {
          "_or_": [
            null,
            "nirs4all.operators.transforms.scalers.StandardNormalVariate",
            "nirs4all.operators.transforms.nirs.MultiplicativeScatterCorrection",
            {
              "class": "nirs4all.operators.transforms.nirs.ExtendedMultiplicativeScatterCorrection",
              "params": {
                "degree": 1
              }
            },
            "nirs4all.operators.transforms.nirs.ExtendedMultiplicativeScatterCorrection"
          ]
        },
        {
          "_or_": [
            null,
            {
              "class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
              "params": {
                "polyorder": 2,
                "deriv": 1
              }
            },
            {
              "class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
              "params": {
                "window_length": 15,
                "polyorder": 2,
                "deriv": 1
              }
            },
            {
              "class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
              "params": {
                "window_length": 21,
                "polyorder": 2,
                "deriv": 1
              }
            },
            {
              "class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
              "params": {
                "window_length": 31,
                "polyorder": 2,
                "deriv": 1
              }
            },
            {
              "class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
              "params": {
                "window_length": 15,
                "deriv": 2
              }
            },
            {
              "class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
              "params": {
                "window_length": 21,
                "deriv": 2
              }
            },
            {
              "class": "nirs4all.operators.transforms.nirs.SavitzkyGolay",
              "params": {
                "window_length": 31,
                "deriv": 2
              }
            },
            {
              "class": "nirs4all.operators.transforms.signal.Gaussian",
              "params": {
                "order": 0
              }
            },
            {
              "class": "nirs4all.operators.transforms.signal.Gaussian",
              "params": {
                "order": 0,
                "sigma": 2
              }
            }
          ]
        },
        {
          "_or_": [
            null,
            "nirs4all.operators.transforms.nirs.ASLSBaseline",
            "nirs4all.operators.transforms.signal.Detrend"
          ]
        },
        {
          "_or_": [
            null,
            "nirs4all.operators.transforms.orthogonalization.OSC",
            {
              "class": "nirs4all.operators.transforms.orthogonalization.OSC",
              "params": {
                "n_components": 2
              }
            },
            {
              "class": "nirs4all.operators.transforms.orthogonalization.OSC",
              "params": {
                "n_components": 3
              }
            }
          ]
        }
      ],
      "count": 40
    },
    {
      "class": "nirs4all.operators.splitters.splitters.SPXYFold",
      "params": {
        "n_splits": 3,
        "random_state": 42
      }
    },
    "sklearn.preprocessing._data.StandardScaler",
    {
      "model": {
        "class": "lightgbm.LGBMRegressor",
        "params": {
          "random_state": 42,
          "verbose": -1
        }
      },
      "name": "LightGBM-Sweep",
      "finetune_params": {
        "n_trials": 12,
        "sampler": "grid",
        "approach": "single",
        "eval_mode": "best",
        "verbose": 0,
        "model_params": {
          "n_estimators": [
            150,
            300,
            600
          ],
          "max_depth": [
            6,
            10
          ],
          "learning_rate": [
            0.03,
            0.05
          ]
        }
      }
    },
    {
      "model": {
        "class": "xgboost.XGBRegressor",
        "params": {
          "random_state": 42,
          "verbosity": 0
        }
      },
      "name": "XGBoost-Sweep",
      "finetune_params": {
        "n_trials": 18,
        "sampler": "grid",
        "approach": "single",
        "eval_mode": "best",
        "verbose": 0,
        "model_params": {
          "n_estimators": [
            150,
            300,
            600
          ],
          "max_depth": [
            4,
            6,
            8
          ],
          "learning_rate": [
            0.03,
            0.05
          ]
        }
      }
    },
    {
      "model": {
        "function": "nirs4all.operators.models.pytorch.nicon.customizable_nicon",
        "framework": "pytorch"
      },
      "name": "NICON-CNN",
      "train_params": {
        "epochs": 250,
        "patience": 60,
        "cyclic_lr": true,
        "cyclic_lr_mode": "triangular2",
        "base_lr": 0.0005,
        "max_lr": 0.01,
        "step_size": 120
      }
    },
    {
      "model": {
        "class": "tabpfn.TabPFNRegressor",
        "params": {
          "ignore_pretraining_limits": true
        }
      },
      "name": "TabPFN"
    }
  ]
}

Use it

# Python
import nirs4all_repository as n4r
pipe = n4r.get("studio_nonlinear_exploration_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_nonlinear_exploration_regression/pipeline.json

Metadata

framework
nirs4all
kind
recipe
task
regression
version
1.0.0
license
CeCILL-2.1 OR AGPL-3.0-or-later
trust
community
tags
studio_preset, nonlinear_exploration, regression
authors
Gregory Beurier
reference
—

Expected metrics

no expected metrics

Provenance

—

Download

recipe
pipeline.json
descriptor
descriptor.yaml