Columns

Fixed ML.NET column names used by Toro.ML algorithm packages.

FunctionDescription
Features
GroupId
Label
Score

Features

Features

Returns string


GroupId

GroupId

Returns string


Label

Label

Returns string


Score

Score

Returns string

RegressionRow

ML.NET regression row exposed for algorithm extension packages.

Record fields

NameDescription
FeaturesFixed-width feature vector.
LabelTarget value.

RankingRow

ML.NET ranking row exposed for algorithm extension packages.

Record fields

NameDescription
FeaturesFixed-width feature vector.
GroupIdQuery-group key encoded for ML.NET.
LabelRelevance label.

ScoringRow

ML.NET scoring row exposed for algorithm extension packages.

Record fields

NameDescription
FeaturesFixed-width feature vector.

TensorDataView

Shared Tensor and IDataView conversion for algorithm extension packages.

FunctionDescription
float32Column columnName dataCopy a scalar float32 IDataView column to a detached CPU tensor.
schema mlContext featureCountCreate the ML.NET scoring input schema for a feature width.
scoring mlContext featuresConvert a feature matrix to an ML.NET scoring view and return its width.

float32Column

float32Column columnName data

Copy a scalar float32 IDataView column to a detached CPU tensor.

Parameters

  • columnName : string
  • data : IDataView

Returns Tensor


schema

schema mlContext featureCount

Create the ML.NET scoring input schema for a feature width.

Parameters

  • mlContext : MLContext
  • featureCount : int

Returns DataViewSchema


scoring

scoring mlContext features

Convert a feature matrix to an ML.NET scoring view and return its width.

Parameters

  • mlContext : MLContext
  • features : Tensor

Returns int * IDataView

RegressionDataView

Regression Tensor-to-IDataView conversion for algorithm extension packages.

FunctionDescription
training mlContext datasetConvert a validated regression dataset to an ML.NET training view.

training

training mlContext dataset

Convert a validated regression dataset to an ML.NET training view.

Parameters

  • mlContext : MLContext
  • dataset : RegressionDataset

Returns IDataView

RankingDataView

Ranking Tensor-to-IDataView conversion for algorithm extension packages.

FunctionDescription
training mlContext datasetConvert a validated ranking dataset to an ML.NET training view.

training

training mlContext dataset

Convert a validated ranking dataset to an ML.NET training view.

Parameters

  • mlContext : MLContext
  • dataset : RankingDataset

Returns IDataView