spectrochempy.Pipeline๏
- class Pipeline(steps)[source]๏
Linear composition of allowlisted SpectroChemPy preprocessing and estimators.
The supplied steps are templates. Calling
fitclones those templates, fits the clones, and exposes fitted runtime state throughfitted_steps_andfitted_named_steps_.Attributes Summary
Return a read-only mapping of fitted step names to fitted steps.
Return ordered fitted
(name, step)pairs.Return a read-only mapping of template step names to steps.
Return ordered template
(name, step)pairs.Methods Summary
fit(X[,ย y])Fit the pipeline on X and optional supervised target y.
fit_transform(X[,ย y])Fit the pipeline and transform X with the fitted pipeline.
get_params([deep])Return template configuration parameters.
predict(X)Predict from X with an estimator-final fitted pipeline.
score(X[,ย y])Score predictions from X against y with a fitted final estimator.
set_params(**params)Transactionally update template steps or nested template parameters.
transform(X)Transform X with a transformer-final fitted pipeline.
Attributes Documentation
- fitted_named_steps_๏
Return a read-only mapping of fitted step names to fitted steps.
- fitted_steps_๏
Return ordered fitted
(name, step)pairs.
- named_steps๏
Return a read-only mapping of template step names to steps.
- steps๏
Return ordered template
(name, step)pairs.
Methods Documentation
- fit(X, y=None)[source]๏
Fit the pipeline on X and optional supervised target y.
Intermediate preprocessing transformers receive only the current dataset. A supervised final estimator receives the transformed dataset and y.
- get_params(deep=True)[source]๏
Return template configuration parameters.
With
deep=True, each template is exposed under its step name and its constructor parameters understep__parameterkeys.
Examples using spectrochempy.Pipeline