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