9 implementations of OutputSchema
Microsoft.ML.Data (5)
Prediction\Calibrator.cs (1)
657public DataViewSchema OutputSchema { get; }
Scorers\FeatureContributionCalculation.cs (1)
309public DataViewSchema OutputSchema { get; }
Scorers\MulticlassClassificationScorer.cs (1)
266public DataViewSchema OutputSchema { get; }
Scorers\SchemaBindablePredictorWrapper.cs (2)
202public DataViewSchema OutputSchema { get; } 513public DataViewSchema OutputSchema { get; }
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
44public DataViewSchema OutputSchema { get; }
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
71public DataViewSchema OutputSchema { get; }
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
331public DataViewSchema OutputSchema { get; }
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
63public DataViewSchema OutputSchema { get; }
39 references to OutputSchema
Microsoft.ML.Core (1)
Data\ISchemaBindableMapper.cs (1)
80/// the returned value must have the same schema as <see cref="ISchemaBoundMapper.OutputSchema"/>.
Microsoft.ML.Data (35)
Commands\ScoreCommand.cs (2)
311if (mapper.OutputSchema.Count > 0 && 312mapper.OutputSchema.TryGetAnnotation(TextDataViewType.Instance, AnnotationUtils.Kinds.ScoreColumnKind, 0, ref scoreKind) &&
Prediction\Calibrator.cs (3)
666if (!_predictor.OutputSchema.TryGetColumnIndex(AnnotationUtils.Const.ScoreValueKind.Score, out _scoreCol)) 668var scoreType = _predictor.OutputSchema[_scoreCol].Type; 879var outputSchema = bound.OutputSchema;
Scorers\BinaryClassifierScorer.cs (4)
97if (!mapper.OutputSchema.TryGetColumnIndex(AnnotationUtils.Const.ScoreValueKind.Score, out scoreIdx)) 99if (mapper.OutputSchema[scoreIdx].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.TrainingLabelValues)?.Type != null) 199string scoreColumn = Bindings.RowMapper.OutputSchema[Bindings.ScoreColumnIndex].Name; 235Host.Assert(output.Schema == Bindings.RowMapper.OutputSchema);
Scorers\ClusteringScorer.cs (1)
96Contracts.Assert(output.Schema == Bindings.RowMapper.OutputSchema);
Scorers\FeatureContributionCalculation.cs (1)
349_outputGenericSchema = _genericRowMapper.OutputSchema;
Scorers\GenericScorer.cs (1)
270Host.Assert(output.Schema == _bindings.RowMapper.OutputSchema);
Scorers\MulticlassClassificationScorer.cs (5)
296bool result = mapper.OutputSchema.TryGetColumnIndex(AnnotationUtils.Const.ScoreValueKind.Score, out scoreIdx); 305OutputSchema = DecorateOutputSchema(mapper.OutputSchema, scoreIdx, _labelNameType, _labelNameGetter, _metadataKind); 454var outSchema = mapper.OutputSchema; 565Host.Assert(output.Schema == Bindings.RowMapper.OutputSchema); 568ValueGetter<VBuffer<float>> mapperScoreGetter = output.GetGetter<VBuffer<float>>(Bindings.RowMapper.OutputSchema[Bindings.ScoreColumnIndex]);
Scorers\PredictedLabelScorerBase.cs (9)
72var scoreColMetadata = mapper.OutputSchema[scoreColIndex].Annotations; 111string scoreCol = RowMapper.OutputSchema[ScoreColumnIndex].Name; 119bool tmp = rowMapper.OutputSchema.TryGetColumnIndex(scoreCol, out mapperScoreColumn); 149env.CheckDecode(mapper.OutputSchema.TryGetColumnIndex(scoreCol, out scoreColIndex)); 151var scoreType = mapper.OutputSchema[scoreColIndex].Type; 168ctx.SaveNonEmptyString(RowMapper.OutputSchema[ScoreColumnIndex].Name); 297if (!mapper.OutputSchema.TryGetColumnIndex(scoreColName, out scoreColIndex)) 300var scoreType = mapper.OutputSchema[scoreColIndex].Type; 409Host.Assert(output.Schema == Bindings.RowMapper.OutputSchema);
Scorers\RowToRowScorerBase.cs (9)
101activeRowMapperCols = bindings.RowMapper.OutputSchema.Where(c => predicateMapper(c.Index)); 253Ch.Assert(_output.Schema == _bindings.RowMapper.OutputSchema); 368var schema = mapper.OutputSchema; 431return Mapper.OutputSchema[iinfo - DerivedColumnCount].Type; 441foreach (var pair in Mapper.OutputSchema[iinfo - DerivedColumnCount].Annotations.Schema.Select(c => new KeyValuePair<string, DataViewType>(c.Name, c.Type))) 452return Mapper.OutputSchema[iinfo - DerivedColumnCount].Annotations.Schema.GetColumnOrNull(kind)?.Type; 466Mapper.OutputSchema[iinfo - DerivedColumnCount].Annotations.GetValue(kind, ref value); 483Contracts.Assert(0 <= col && col < Mapper.OutputSchema.Count); 484return 0 <= col && col < Mapper.OutputSchema.Count &&
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
77var scoreCol = Mappers[i].OutputSchema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 139var mapperColumns = Mappers[i].OutputSchema.Where(col => col.Name == DefaultColumnNames.Score);
Microsoft.ML.Tests (1)
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
55var outputSchema = boundMapper.OutputSchema;