1 write to Schema
Microsoft.ML.Core (1)
Data\RoleMappedSchema.cs (1)
162
Schema
= schema;
60 references to Schema
Microsoft.ML.Core (6)
Data\AnnotationUtils.cs (2)
304
if (list?.Count != 1 || !schema.
Schema
[list[0].Index].HasSlotNames(vectorSize))
307
schema.
Schema
[list[0].Index].Annotations.GetValue(Kinds.SlotNames, ref slotNames);
Data\RoleMappedSchema.cs (4)
125
/// The source <see cref="
Schema
"/>.
405
/// Note that the schema of <see cref="RoleMappedSchema.
Schema
"/> of <see cref="Schema"/> is
417
/// The role mapped schema. Note that <see cref="Schema"/>'s <see cref="RoleMappedSchema.
Schema
"/> is
426
Contracts.Assert(schema.
Schema
== data.Schema);
Microsoft.ML.Data (37)
Commands\CrossValidationCommand.cs (1)
564
return new FoldResult(dict, dataEval.Schema.
Schema
, perInstance, trainData.Schema);
Evaluators\AnomalyDetectionEvaluator.cs (1)
796
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(Arguments.ScoreColumn),
Evaluators\BinaryClassifierEvaluator.cs (6)
199
return new BinaryPerInstanceEvaluator(Host, schema.
Schema
, scoreInfo.Name, probCol, schema.Label.Value.Name, _threshold, _useRaw);
1344
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(Arguments.ScoreColumn),
1348
var probCol = EvaluateUtils.GetOptAuxScoreColumn(Host, schema.
Schema
, _probCol, nameof(Arguments.ProbabilityColumn),
1479
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(Arguments.ScoreColumn),
1482
var probCol = EvaluateUtils.GetOptAuxScoreColumn(Host, schema.
Schema
, _probCol, nameof(Arguments.ProbabilityColumn),
1493
if (schema.
Schema
.TryGetColumnIndex("FeatureContributions", out col))
Evaluators\ClusteringEvaluator.cs (3)
149
return new ClusteringPerInstanceEvaluator(Host, schema.
Schema
, scoreInfo.Name, numClusters);
807
else if (schema.
Schema
.TryGetColumnIndex(col.Value, out int labelIndex))
814
if (!schema.
Schema
.TryGetColumnIndex(feat, out int featCol))
Evaluators\MamlEvaluator.cs (2)
137
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(ArgumentsBase.ScoreColumn),
238
if (perInst.Schema.
Schema
.TryGetColumnIndex(MetricKinds.ColumnNames.FoldIndex, out foldCol))
Evaluators\MulticlassClassificationEvaluator.cs (3)
101
var mdType = schema.
Schema
[scoreInfo.Index].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
105
schema.
Schema
[scoreInfo.Index].Annotations.GetValue(AnnotationUtils.Kinds.SlotNames, ref labelNames);
125
return new MulticlassPerInstanceEvaluator(Host, schema.
Schema
, scoreInfo, schema.Label.Value.Name);
Evaluators\MultiOutputRegressionEvaluator.cs (2)
55
return new MultiOutputRegressionPerInstanceEvaluator(Host, schema.
Schema
, scoreCol.Name, schema.Label.Value.Name);
650
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(Arguments.ScoreColumn),
Evaluators\QuantileRegressionEvaluator.cs (6)
47
var type = schema.
Schema
[scoreInfo.Index].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
50
schema.
Schema
[scoreInfo.Index].Annotations.GetValue(AnnotationUtils.Kinds.SlotNames, ref quantiles);
53
return new QuantileRegressionPerInstanceEvaluator(Host, schema.
Schema
, scoreInfo.Name, schema.Label.Value.Name, scoreSize, quantiles);
74
var slotNamesType = schema.
Schema
[scoreInfo.Index].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
76
schema.
Schema
[scoreInfo.Index].GetSlotNames(ref slotNames);
546
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(Arguments.ScoreColumn),
Evaluators\RankingEvaluator.cs (1)
949
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(Arguments.ScoreColumn),
Evaluators\RegressionEvaluator.cs (3)
77
return new RegressionPerInstanceEvaluator(Host, schema.
Schema
, scoreInfo.Name, schema.Label.Value.Name);
368
var scoreCol = EvaluateUtils.GetScoreColumn(Host, schema.
Schema
, ScoreCol, nameof(Arguments.ScoreColumn),
378
if (schema.
Schema
.TryGetColumnIndex("FeatureContributions", out col))
Scorers\FeatureContributionCalculation.cs (1)
306
public DataViewSchema InputSchema => InputRoleMappedSchema.
Schema
;
Scorers\GenericScorer.cs (1)
77
Contracts.Assert(mapper.InputRoleMappedSchema.
Schema
== input);
Scorers\SchemaBindablePredictorWrapper.cs (2)
233
public DataViewSchema InputSchema => InputRoleMappedSchema.
Schema
;
511
public DataViewSchema InputSchema => InputRoleMappedSchema.
Schema
;
Training\TrainerUtils.cs (5)
124
Contracts.Assert(!data.Schema.
Schema
[col.Index].IsHidden);
266
Contracts.CheckParam(schema.
Schema
== row.Schema, nameof(schema), "schemas don't match!");
289
Contracts.CheckParam(schema.
Schema
== row.Schema, nameof(schema), "schemas don't match!");
312
Contracts.Check(schema.
Schema
== row.Schema, "schemas don't match!");
333
Contracts.Check(schema.
Schema
== row.Schema, "schemas don't match!");
Microsoft.ML.Ensemble (5)
PipelineEnsemble.cs (5)
43
public DataViewSchema InputSchema => InputRoleMappedSchema.
Schema
;
55
var col = InputRoleMappedSchema.
Schema
.GetColumnOrNull(name);
67
var emptyDv = new EmptyDataView(Parent.Host, schema.
Schema
);
83
var dv = new EmptyDataView(Parent.Host, schema.
Schema
);
607
var schema = rmd.Schema.
Schema
;
Microsoft.ML.FastTree (5)
FastTree.cs (1)
190
AnnotationUtils.TryGetCategoricalFeatureIndices(trainData.Schema.
Schema
, trainData.Schema.Feature.Value.Index, out CategoricalFeatures);
GamModelParameters.cs (2)
687
var featureCol = _data.Schema.
Schema
[DefaultColumnNames.Features];
688
AnnotationUtils.TryGetCategoricalFeatureIndices(_data.Schema.
Schema
, featureCol.Index, out _catsMap);
TreeEnsemble\InternalTreeEnsemble.cs (1)
445
var sch = schema.
Schema
;
TreeEnsembleFeaturizer.cs (1)
70
public DataViewSchema InputSchema => InputRoleMappedSchema.
Schema
;
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
646
AnnotationUtils.TryGetCategoricalFeatureIndices(trainData.Schema.
Schema
, featureCol.Index, out categoricalFeatures);
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
330
public DataViewSchema InputSchema => InputRoleMappedSchema.
Schema
;
357
CheckInputSchema(schema.
Schema
, _matrixColumnIndexColumnIndex, _matrixRowIndexCololumnIndex);
Microsoft.ML.StandardTrainers (4)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
478
var columns = data.Schema.
Schema
.Where(x => fieldColumnIndexes.Contains(x.Index)).ToList();
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (3)
65
public DataViewSchema InputSchema => InputRoleMappedSchema.
Schema
;
88
InputRoleMappedSchema = new RoleMappedSchema(schema.
Schema
, inputFeatureColumns);
94
if (schema.
Schema
.TryGetColumnIndex(kvp.Value, out int index))