learn
Syntax
Description
evaluates all the nodes in the pipeline or component learnedPipe = learn(pipe,input1,...,inputN)pipe by passing
the inputs through pipe in the specified order. The function learns, or
initializes, any data-dependent parameters (learnables) in the components of
pipe. For components in pipe without
data-dependent parameters, or for components already learned, using
learn is equivalent to using the run object
function.
You can use the returned pipeline or component learnedPipe for
inference with new data by using run.
___ = learn(___,
specifies optional learn parameters in addition to any of the input or output argument
combinations in previous syntaxes. The software forwards the learn parameter values to
individual components during the execution of Name,Value)pipe.
If
pipeis aLearningPipelineobject, then specifyNameas the component name with/as a prefix to the parameter name, to disambiguate between components that have the same parameter name. For example, specifylearn(pipe,X,Y,"ClassificationSVM/Standardize",true).If
pipeis a learning component object, then specifyNameas the parameter name. In this case, you can use theName=Valuesyntax. For example, specifylearn(pipe,X,Y,Standardize=true). Usehelp(pipe)to see the available learn parameters.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026a
See Also
LearningPipeline | run | reset