-
sklearn.pipeline.make_pipeline(*steps)
[source] -
Construct a Pipeline from the given estimators.
This is a shorthand for the Pipeline constructor; it does not require, and does not permit, naming the estimators. Instead, their names will be set to the lowercase of their types automatically.
Returns: p : Pipeline Examples
1234567>>>
from
sklearn.naive_bayes
import
GaussianNB
>>>
from
sklearn.preprocessing
import
StandardScaler
>>> make_pipeline(StandardScaler(), GaussianNB(priors
=
None
))
...
Pipeline(steps
=
[(
'standardscaler'
,
StandardScaler(copy
=
True
, with_mean
=
True
, with_std
=
True
)),
(
'gaussiannb'
, GaussianNB(priors
=
None
))])
sklearn.pipeline.make_pipeline()
Examples using

2025-01-10 15:47:30
Please login to continue.