PipelineSteps
Class: PipelineSteps
Defined in: pipeline.ts:450
Factory methods for creating dataset, selection, transformation, training and prediction step descriptors.
Constructors
Constructor
new PipelineSteps():
PipelineSteps
Returns
PipelineSteps
Methods
datasetExisting()
staticdatasetExisting(blobId,callbacks?):IPipelineStep
Defined in: pipeline.ts:495
Creates a step that reuses an existing dataset blob without uploading it again.
Parameters
blobId
string | PipelineDatasetReference
UUID of the stored blob.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
datasetGenerate()
staticdatasetGenerate<T>(packageType,algorithmType,algorithmParams,callbacks?,targetColumn?,dataKind?,artifactPath?):IPipelineStep
Defined in: pipeline.ts:464
Creates a dataset generation step from a package, algorithm and parameter object.
Type Parameters
T
T
Type of the dataset algorithm parameters.
Parameters
packageType
string
Dataset provider package identifier.
algorithmType
string
Dataset algorithm identifier.
algorithmParams
T
Parameters supplied to the dataset algorithm.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
targetColumn?
string
Name of the target or label column.
dataKind?
Classification of the dataset's feature data.
artifactPath?
string
Path of a file within the job artifact.
Returns
A step descriptor to supply to pipeline.configure().
datasetGenerateRequest()
staticdatasetGenerateRequest<T>(algorithmType,factory,callbacks?,targetColumn?,dataKind?,artifactPath?):IPipelineStep
Defined in: pipeline.ts:477
Creates a dataset generation step using a caller-provided request factory.
Type Parameters
T
T
Type of the dataset algorithm parameters.
Parameters
algorithmType
string
Dataset algorithm identifier.
factory
(name) => ParallelModelDatasetSendRequestModel<T>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
targetColumn?
string
Name of the target or label column.
dataKind?
Classification of the dataset's feature data.
artifactPath?
string
Path of a file within the job artifact.
Returns
A step descriptor to supply to pipeline.configure().
datasetUpload()
staticdatasetUpload(source,targetColumn?,callbacks?,dataKind?):IPipelineStep
Defined in: pipeline.ts:487
Creates a step that uploads a dataset before downloading and inspecting it.
Parameters
source
Upload source: Node.js file path, Blob, or named byte array.
targetColumn?
string
Name of the target or label column.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
dataKind?
Classification of the dataset's feature data.
Returns
A step descriptor to supply to pipeline.configure().
decomposition()
staticdecomposition(factory,outputArtifact,resolveSchema,callbacks?):IPipelineStep
Defined in: pipeline.ts:587
Creates a decomposition transformation step using the supplied request factory.
Parameters
factory
Factory<PipelineArtifactReference, IParallelModelDecompositionSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
outputArtifact
string
Expected output artifact file name or path used for selection.
resolveSchema
SchemaResolver
Callback that resolves the feature schema from a transformation job result.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
ensemble()
staticensemble(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:627
Creates a ensemble training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelEnsembleSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
featureExtraction()
staticfeatureExtraction(factory,outputArtifact,resolveSchema,callbacks?):IPipelineStep
Defined in: pipeline.ts:557
Creates a feature extraction transformation step using the supplied request factory.
Parameters
factory
Factory<PipelineArtifactReference, IParallelModelFeatureExtractionSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
outputArtifact
string
Expected output artifact file name or path used for selection.
resolveSchema
SchemaResolver
Callback that resolves the feature schema from a transformation job result.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
featureSelection()
staticfeatureSelection(factory,outputArtifact,resolveSchema,callbacks?):IPipelineStep
Defined in: pipeline.ts:577
Creates a feature selection transformation step using the supplied request factory.
Parameters
factory
Factory<PipelineArtifactReference, IParallelModelFeatureSelectionSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
outputArtifact
string
Expected output artifact file name or path used for selection.
resolveSchema
SchemaResolver
Callback that resolves the feature schema from a transformation job result.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
gaussianProcess()
staticgaussianProcess(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:651
Creates a gaussian process training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelGaussianProcessSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
impute()
staticimpute(factory,callbacks?,outputArtifact?,resolveSchema?):IPipelineStep
Defined in: pipeline.ts:537
Creates a impute transformation step using the supplied request factory.
Parameters
factory
Factory<PipelineArtifactReference, IParallelModelImputeSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
outputArtifact?
string = 'imputed.csv'
Expected output artifact file name or path used for selection.
resolveSchema?
SchemaResolver
Callback that resolves the feature schema from a transformation job result.
Returns
A step descriptor to supply to pipeline.configure().
isotonic()
staticisotonic(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:667
Creates a isotonic training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IsotonicRegressionJobSendRequestModel>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
kernelRidge()
statickernelRidge(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:659
Creates a kernel ridge training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, KernelRidgeJobSendRequestModel>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
linearModel()
staticlinearModel(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:619
Creates a linear model training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelLinearModelSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
modelSelection()
staticmodelSelection(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:503
Creates the required train/test split step from a request factory.
Parameters
factory
Factory<PipelineDatasetReference, TrainTestSplitJobSendRequestModel>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
naiveBayes()
staticnaiveBayes(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:635
Creates a naive bayes training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelNaiveBayesSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
neighbors()
staticneighbors(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:643
Creates a neighbors training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelNeighborsSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
neuralNetwork()
staticneuralNetwork(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:611
Creates a neural network training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelNeuralNetworkSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
predict()
staticpredict(inferenceType,inputValues,inputKind?,callbacks?,requestTimeoutSeconds?):IPipelineStep
Defined in: pipeline.ts:516
Creates a final inference step for a single numeric row.
Parameters
inferenceType
string
Inference operation: Auto, Predict, PredictProba, DecisionFunction or Transform.
inputValues
readonly number[]
One numeric prediction row in the trained model's feature order.
inputKind?
PipelinePredictionInputKind = PipelinePredictionInputKind.Transformed
Whether prediction rows represent raw or already transformed input.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
requestTimeoutSeconds?
number = 200
Requested server-side execution timeout, in seconds.
Returns
A step descriptor to supply to pipeline.configure().
predictRows()
staticpredictRows(inferenceType,rows,inputKind?,callbacks?,requestTimeoutSeconds?):IPipelineStep
Defined in: pipeline.ts:527
Creates a final inference step for one or more rows; raw input requires a model that accepts raw features.
Parameters
inferenceType
string
Inference operation: Auto, Predict, PredictProba, DecisionFunction or Transform.
rows
readonly (readonly unknown[])[]
Prediction rows in the same feature order as the trained model.
inputKind?
PipelinePredictionInputKind = PipelinePredictionInputKind.Transformed
Whether prediction rows represent raw or already transformed input.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
requestTimeoutSeconds?
number = 200
Requested server-side execution timeout, in seconds.
Returns
A step descriptor to supply to pipeline.configure().
preprocessing()
staticpreprocessing(factory,callbacks?,outputArtifact?,resolveSchema?):IPipelineStep
Defined in: pipeline.ts:547
Creates a preprocessing transformation step using the supplied request factory.
Parameters
factory
Factory<PipelineArtifactReference, IParallelModelPreprocessingSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
outputArtifact?
string = 'transformed.csv'
Expected output artifact file name or path used for selection.
resolveSchema?
SchemaResolver
Callback that resolves the feature schema from a transformation job result.
Returns
A step descriptor to supply to pipeline.configure().
randomProjection()
staticrandomProjection(factory,outputArtifact,resolveSchema,callbacks?):IPipelineStep
Defined in: pipeline.ts:567
Creates a random projection transformation step using the supplied request factory.
Parameters
factory
Factory<PipelineArtifactReference, IParallelModelRandomProjectionSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
outputArtifact
string
Expected output artifact file name or path used for selection.
resolveSchema
SchemaResolver
Callback that resolves the feature schema from a transformation job result.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
svm()
staticsvm(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:603
Creates a svm training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelSvmSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().
tree()
statictree(factory,callbacks?):IPipelineStep
Defined in: pipeline.ts:595
Creates a tree training step using the supplied request factory.
Parameters
factory
Factory<PipelinePartitionSet, IParallelModelTreeSendRequest>
Callback that builds the request from the current input reference and generated output name, or output name alone for dataset generation.
callbacks?
Optional pipeline lifecycle and operation-specific callbacks.
Returns
A step descriptor to supply to pipeline.configure().