Skip to main content

PipelineSteps

ParallelModel TypeScript SDK


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()​

static datasetExisting(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


datasetGenerate()​

static datasetGenerate<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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

targetColumn?​

string

Name of the target or label column.

dataKind?​

PipelineDataKind

Classification of the dataset's feature data.

artifactPath?​

string

Path of a file within the job artifact.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


datasetGenerateRequest()​

static datasetGenerateRequest<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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

targetColumn?​

string

Name of the target or label column.

dataKind?​

PipelineDataKind

Classification of the dataset's feature data.

artifactPath?​

string

Path of a file within the job artifact.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


datasetUpload()​

static datasetUpload(source, targetColumn?, callbacks?, dataKind?): IPipelineStep

Defined in: pipeline.ts:487

Creates a step that uploads a dataset before downloading and inspecting it.

Parameters​

source​

UploadSource

Upload source: Node.js file path, Blob, or named byte array.

targetColumn?​

string

Name of the target or label column.

callbacks?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

dataKind?​

PipelineDataKind

Classification of the dataset's feature data.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


decomposition()​

static decomposition(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


ensemble()​

static ensemble(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


featureExtraction()​

static featureExtraction(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


featureSelection()​

static featureSelection(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


gaussianProcess()​

static gaussianProcess(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


impute()​

static impute(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?​

PipelineCallbacks

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​

IPipelineStep

A step descriptor to supply to pipeline.configure().


isotonic()​

static isotonic(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


kernelRidge()​

static kernelRidge(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


linearModel()​

static linearModel(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


modelSelection()​

static modelSelection(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


naiveBayes()​

static naiveBayes(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


neighbors()​

static neighbors(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


neuralNetwork()​

static neuralNetwork(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


predict()​

static predict(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

requestTimeoutSeconds?​

number = 200

Requested server-side execution timeout, in seconds.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


predictRows()​

static predictRows(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

requestTimeoutSeconds?​

number = 200

Requested server-side execution timeout, in seconds.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


preprocessing()​

static preprocessing(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?​

PipelineCallbacks

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​

IPipelineStep

A step descriptor to supply to pipeline.configure().


randomProjection()​

static randomProjection(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


svm()​

static svm(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().


tree()​

static tree(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?​

PipelineCallbacks

Optional pipeline lifecycle and operation-specific callbacks.

Returns​

IPipelineStep

A step descriptor to supply to pipeline.configure().