13 overrides of Schema
Microsoft.Data.Analysis (1)
DataFrame.IDataView.cs (1)
94public override DataViewSchema Schema => _dataFrame.DataViewSchema;
Microsoft.ML.Core (2)
Data\AnnotationUtils.cs (1)
468public override DataViewSchema Schema => _annotations.Schema;
Data\LinkedRowRootCursorBase.cs (1)
21public sealed override DataViewSchema Schema { get; }
Microsoft.ML.Data (6)
DataView\CacheDataView.cs (2)
514public override DataViewSchema Schema => _internal.Schema; 1151public sealed override DataViewSchema Schema => Parent.Schema;
DataView\CompositeRowToRowMapper.cs (1)
102public override DataViewSchema Schema => _row.Schema;
DataView\DataViewConstructionUtils.cs (2)
213public override DataViewSchema Schema { get; } 499public override DataViewSchema Schema => _toWrap.Schema;
DataView\TypedCursor.cs (1)
595public override DataViewSchema Schema => _cursor.Schema;
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
22public override DataViewSchema Schema { get; }
Microsoft.ML.Samples (1)
Dynamic\SimpleDataViewImplementation.cs (1)
251public override DataViewSchema Schema { get; }
Microsoft.ML.TimeSeries (2)
SequentialTransformerBase.cs (2)
629public override DataViewSchema Schema => _schema; 957public override DataViewSchema Schema { get; }
422 references to Schema
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
277var column = cursor.Schema.GetColumnOrNull("C").Value;
Microsoft.ML.Core (2)
Data\IRowToRowMapper.cs (1)
39/// The <see cref="DataViewRow.Schema"/> of <paramref name="input"/> should be the same object as
Data\ISchemaBindableMapper.cs (1)
78/// The <see cref="DataViewRow.Schema"/> of <paramref name="input"/> should be the same object as
Microsoft.ML.Core.Tests (19)
UnitTests\CoreBaseTestClass.cs (19)
47var g1 = r1.GetGetter<T>(r1.Schema[col]); 48var g2 = r2.GetGetter<T>(r2.Schema[col]); 70var g1 = r1.GetGetter<VBuffer<T>>(r1.Schema[col]); 71var g2 = r2.GetGetter<VBuffer<T>>(r2.Schema[col]); 217Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 228Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 235Check(curs1.Schema == view1.Schema, "Schema of view 1 and its cursor differed"); 246Contracts.Assert(curs1.Schema.Count == curs2.Schema.Count); 249int colLim = curs1.Schema.Count; 253var f1 = curs1.IsColumnActive(curs1.Schema[col]); 254var f2 = curs2.IsColumnActive(curs2.Schema[col]); 258var type1 = curs1.Schema[col].Type; 259var type2 = curs2.Schema[col].Type; 326Contracts.Assert(curs1.Schema.Count == view2.Schema.Count); 329int colLim = curs1.Schema.Count; 336Contracts.Assert(curs1.IsColumnActive(curs1.Schema[col])); 347var type1 = curs1.Schema[col].Type; 348var type2 = cursors[col].Schema[col].Type;
Microsoft.ML.Data (234)
Commands\DataCommand.cs (3)
163for (int currentIndex = 0; currentIndex < cursor.Schema.Count; currentIndex++) 165var nameOfMetric = "TLC_" + cursor.Schema[currentIndex].Name; 166var type = cursor.Schema[currentIndex].Type;
Data\DataViewUtils.cs (14)
158if (!AllCacheable(input.Schema, input.IsColumnActive)) 169return Splitter.Split(provider, input.Schema, input, num); 232var schema = firstCursor.Schema; 236if (cursors[i] == null || cursors[i].Schema != schema) 338var schema = cursor.Schema; 512ch.Assert(input.Schema == _schema); 538var column = input.Schema[activeToCol[c]]; 1187_schema = _cursors[0].Schema; 1255Ch.Assert(col < cursor.Schema.Count); 1257Ch.Assert(type.Equals(cursor.Schema[col].Type)); 1258getters[i] = _cursors[i].GetGetter<T>(cursor.Schema[col]); 1338var colType = cursor.Schema[srcColIndex].Type; 1358var floatGetter = cursor.GetGetter<T>(cursor.Schema[i]); 1388var vecGetter = cursor.GetGetter<VBuffer<T>>(cursor.Schema[colIndex]);
Data\RowCursorUtils.cs (37)
36Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 37Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active"); 39return Utils.MarshalInvoke(_getGetterAsDelegateCoreMethodInfo, row.Schema[col].Type.RawType, row, col); 44return row.GetGetter<TValue>(row.Schema[col]); 58Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 59Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active"); 61var typeSrc = row.Schema[col].Type; 79Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 80Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active"); 82var typeSrc = row.Schema[col].Type; 95var getter = row.GetGetter<TSrc>(row.Schema[col]); 124Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 125Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active"); 127var typeSrc = row.Schema[col].Type; 136var getter = row.GetGetter<TSrc>(row.Schema[col]); 157Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 158Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active"); 160var typeSrc = row.Schema[col].Type as VectorDataViewType; 177Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 178Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active"); 180var typeSrc = row.Schema[col].Type as VectorDataViewType; 235return _row.GetGetter<TValue>(_row.Schema[_col]); 307Contracts.Check(0 <= col && col < cursor.Schema.Count); 308DataViewType type = cursor.Schema[col].Type; 315var getter = cursor.GetGetter<T>(cursor.Schema[col]); 354var type = cursor.Schema[labelIndex].Type; 357return cursor.GetGetter<Single>(cursor.Schema[labelIndex]); 361var getSingleSrc = cursor.GetGetter<Double>(cursor.Schema[labelIndex]); 376var type = cursor.Schema[labelIndex].Type; 383var getBoolSrc = cursor.GetGetter<bool>(cursor.Schema[labelIndex]); 455if (!row.Schema.TryGetColumnIndex(name, out int col)) 458row.GetGetter<T>(row.Schema[col])(ref val); 477env.CheckParam(Enumerable.Range(0, row.Schema.Count).All(c => row.IsColumnActive(row.Schema[c])), nameof(row), "Some columns were inactive"); 512public DataViewSchema Schema => _row.Schema; 520_host.Assert(Enumerable.Range(0, row.Schema.Count).All(c => row.IsColumnActive(row.Schema[c])));
DataDebuggerPreview.cs (1)
70var column = row.Schema[col];
DataLoadSave\Binary\BinarySaver.cs (2)
122_getter = cursor.GetGetter<T>(cursor.Schema[col.SourceIndex]); 781ValueGetter<T> getter = cursor.GetGetter<T>(cursor.Schema[col.SourceIndex]);
DataLoadSave\Text\TextSaver.cs (5)
64DataViewType type = cursor.Schema[col].Type; 164_getSrc = cursor.GetGetter<VBuffer<T>>(cursor.Schema[source]); 167&& (typeNames = cursor.Schema[source].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType) != null 170cursor.Schema[source].Annotations.GetValue(AnnotationUtils.Kinds.SlotNames, ref _slotNames); 229var column = cursor.Schema[source];
DataLoadSave\Transpose\TransposeLoader.cs (5)
681Ch.Assert(cursor.Schema.Count == 1); 682Ch.Assert(cursor.Schema[0].Type.RawType == typeof(VBuffer<T>)); 683Ch.Assert(cursor.Schema[0].Type is VectorDataViewType); 686_getter = _rowCursor.GetGetter<VBuffer<T>>(cursor.Schema[0]); 690=> (VectorDataViewType)_rowCursor.Schema[0].Type;
DataView\AppendRowsDataView.cs (2)
260getSrc = _currentCursor.GetGetter<TValue>(_currentCursor.Schema[col]); 360getSrc[_currentSourceIndex] = rowCursor.GetGetter<TValue>(rowCursor.Schema[col]);
DataView\BatchDataViewMapperBase.cs (1)
117return _input.GetGetter<TValue>(_input.Schema[col]);
DataView\CacheDataView.cs (8)
1284host.Assert(0 <= srcCol && srcCol < input.Schema.Count); 1285host.Assert(input.IsColumnActive(input.Schema[srcCol])); 1287var type = input.Schema[srcCol].Type; 1350var type = input.Schema[srcCol].Type; 1355_getter = input.GetGetter<VBuffer<T>>(input.Schema[srcCol]); 1433_getter = input.GetGetter<T>(input.Schema[srcCol]); 1469Contracts.Assert(0 <= srcCol && srcCol < input.Schema.Count); 1470Contracts.Assert(input.Schema[srcCol].Type.RawType == typeof(T));
DataView\CompositeRowToRowMapper.cs (5)
56Contracts.CheckParam(input.Schema == InputSchema, nameof(input), "Schema did not match original schema"); 62for (int c = 0; c < input.Schema.Count; ++c) 65bool isActive = input.IsColumnActive(input.Schema[c]); 69throw Contracts.ExceptParam(nameof(input), $"Mapper required column '{input.Schema[c].Name}' active but it was not."); 102public override DataViewSchema Schema => _row.Schema;
DataView\RowToRowMapperTransform.cs (1)
253Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to");
DataView\Transposer.cs (8)
986Contracts.Assert(input.IsColumnActive(input.Schema[parent.SrcCol])); 1025Contracts.Assert(row.Schema == _view.Schema); 1027Contracts.Assert(row.IsColumnActive(row.Schema[SrcCol])); 1119Contracts.Assert(row.Schema == _view.Schema); 1121Contracts.Assert(row.IsColumnActive(row.Schema[SrcCol])); 1143_inputGetter = input.GetGetter<VBuffer<T>>(input.Schema[Parent.SrcCol]); 1305return row != null && row.IsColumnActive(row.Schema[splitCol]); 1322return splitIndRow.GetGetter<TValue>(splitIndRow.Schema[splitCol]);
DataView\TypedCursor.cs (7)
332public override DataViewSchema Schema => base.Input.Schema; 358var colType = input.Schema[index].Type; 426var getter = input.GetGetter<VBuffer<TSrc>>(input.Schema[col]); 448var getter = input.GetGetter<VBuffer<TDst>>(input.Schema[col]); 486var getter = input.GetGetter<TSrc>(input.Schema[col]); 502var getter = input.GetGetter<TDst>(input.Schema[col]); 515var getter = input.GetGetter<VBuffer<TDst>>(input.Schema[col]);
DataView\ZipDataView.cs (1)
186return rowCursor.GetGetter<TValue>(rowCursor.Schema[srcCol]);
EntryPoints\TransformModelImpl.cs (1)
253_ectx.Check(input.Schema == InputSchema, "Schema of input row must be the same as the schema the mapper is bound to");
Evaluators\AnomalyDetectionEvaluator.cs (2)
523_nameGetter = row.GetGetter<ReadOnlyMemory<char>>(row.Schema[_nameIndex]); 733var type = cursor.Schema[stratCol].Type;
Evaluators\BinaryClassifierEvaluator.cs (2)
1166probGetter = input.GetGetter<Single>(input.Schema[_probIndex]); 1171scoreGetter = input.GetGetter<Single>(input.Schema[ScoreIndex]);
Evaluators\ClusteringEvaluator.cs (1)
663var scoreGetter = input.GetGetter<VBuffer<Single>>(input.Schema[ScoreIndex]);
Evaluators\EvaluatorBase.cs (1)
416var col = row.Schema.GetColumnOrNull(ColName);
Evaluators\EvaluatorUtils.cs (6)
288var type = cursor.Schema[stratCol].Type; 1010var metricName = row.Schema[i].Name; 1115var type = cursor.Schema[stratCol].Type; 1478var type = cursor.Schema[countIndex].Type as VectorDataViewType; 1480var countGetter = cursor.GetGetter<VBuffer<double>>(cursor.Schema[countIndex]); 1484var stratType = cursor.Schema[stratCol].Type;
Evaluators\Metrics\BinaryClassificationMetrics.cs (1)
90var column = row.Schema.GetColumnOrNull(name);
Evaluators\Metrics\RankingMetrics.cs (1)
51var column = row.Schema.GetColumnOrNull(name);
Evaluators\MulticlassClassificationEvaluator.cs (1)
726var scoreGetter = input.GetGetter<VBuffer<float>>(input.Schema[ScoreIndex]);
Evaluators\MultiOutputRegressionEvaluator.cs (2)
476? input.GetGetter<VBuffer<float>>(input.Schema[ScoreIndex]) 691var type = cursor.Schema[stratCol].Type;
Evaluators\QuantileRegressionEvaluator.cs (1)
396scoreGetter = input.GetGetter<VBuffer<float>>(input.Schema[ScoreIndex]);
Evaluators\RankingEvaluator.cs (1)
799return row.GetGetter<Single>(row.Schema[_bindings.ScoreIndex]);
Evaluators\RegressionEvaluator.cs (1)
284scoreGetter = input.GetGetter<float>(input.Schema[ScoreIndex]);
Prediction\Calibrator.cs (2)
702var type = predictorRow.Schema[column.Index].Type; 712=> input.GetGetter<T>(input.Schema[col]);
Prediction\CalibratorCatalog.cs (2)
318Host.Assert(input.IsColumnActive(input.Schema[_scoreColIndex])); 319var getScore = input.GetGetter<float>(input.Schema[_scoreColIndex]);
Scorers\BinaryClassifierScorer.cs (3)
235Host.Assert(output.Schema == Bindings.RowMapper.OutputSchema); 236Host.Assert(output.IsColumnActive(output.Schema[Bindings.ScoreColumnIndex])); 238var scoreColumn = output.Schema[Bindings.ScoreColumnIndex];
Scorers\ClusteringScorer.cs (3)
96Contracts.Assert(output.Schema == Bindings.RowMapper.OutputSchema); 97Contracts.Assert(output.IsColumnActive(output.Schema[Bindings.ScoreColumnIndex])); 99ValueGetter<VBuffer<float>> mapperScoreGetter = output.GetGetter<VBuffer<float>>(output.Schema[Bindings.ScoreColumnIndex]);
Scorers\FeatureContributionCalculation.cs (7)
194Contracts.Check(0 <= colSrc && colSrc < input.Schema.Count); 195var typeSrc = input.Schema[colSrc].Type; 205Contracts.Check(0 <= colSrc && colSrc < input.Schema.Count); 207var typeSrc = input.Schema[colSrc].Type; 228var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]); 267var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]); 381if (genericRow.IsColumnActive(genericRow.Schema[i]))
Scorers\GenericScorer.cs (1)
270Host.Assert(output.Schema == _bindings.RowMapper.OutputSchema);
Scorers\MulticlassClassificationScorer.cs (2)
565Host.Assert(output.Schema == Bindings.RowMapper.OutputSchema); 566Host.Assert(output.IsColumnActive(output.Schema[Bindings.ScoreColumnIndex]));
Scorers\PredictedLabelScorerBase.cs (3)
403Host.Assert(output.Schema == Bindings.RowMapper.OutputSchema); 404Host.Assert(Bindings.InfoCount == output.Schema.Count + 1); 413Host.Assert(output.IsColumnActive(output.Schema[Bindings.ScoreColumnIndex]));
Scorers\RowToRowScorerBase.cs (8)
195var getters = new Delegate[row.Schema.Count]; 207Contracts.Assert(0 <= col && col < row.Schema.Count); 208Contracts.Assert(row.IsColumnActive(row.Schema[col])); 210var type = row.Schema[col].Type; 217Contracts.Assert(0 <= col && col < output.Schema.Count); 218Contracts.Assert(output.IsColumnActive(output.Schema[col])); 219return output.GetGetter<T>(output.Schema[col]); 253Ch.Assert(_output.Schema == _bindings.RowMapper.OutputSchema);
Scorers\SchemaBindablePredictorWrapper.cs (5)
160Contracts.Assert(0 <= colSrc && colSrc < input.Schema.Count); 162var typeSrc = input.Schema[colSrc].Type; 171var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]); 701Contracts.Assert(0 <= colSrc && colSrc < input.Schema.Count); 703var column = input.Schema[colSrc];
Training\TrainerUtils.cs (4)
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!");
Transforms\ColumnConcatenatingTransformer.cs (3)
686return input.GetGetter<T>(input.Schema[SrcIndices[0]]); 696var column = input.Schema[SrcIndices[j]]; 719input.Schema[SrcIndices[i]].Name, vectorType.Size, tmpBufs[i].Length)
Transforms\ColumnCopying.cs (3)
219input.Schema.TryGetColumnIndex(_columns[iinfo].inputColumnName, out int colIndex); 220var type = input.Schema[colIndex].Type; 225=> row.GetGetter<T>(row.Schema[index]);
Transforms\ColumnSelecting.cs (1)
779return _inputCursor.GetGetter<TValue>(_inputCursor.Schema[index]);
Transforms\FeatureContributionCalculationTransformer.cs (1)
218var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]);
Transforms\Hashing.cs (16)
266input.Schema.TryGetColumnIndex(_columns[iinfo].InputColumnName, out int srcCol); 267var srcType = input.Schema[srcCol].Type; 454var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[srcCol]); 1002Contracts.Assert(0 <= srcCol && srcCol < input.Schema.Count); 1003Contracts.Assert(input.Schema[srcCol].Type.RawType == typeof(T)); 1005var srcGetter = input.GetGetter<T>(input.Schema[srcCol]); 1285var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[srcCol]); 1491row.Schema.TryGetColumnIndex(ex.InputColumnName, out int srcCol); 1493_srcType = row.Schema[srcCol].Type; 1510row.Schema.TryGetColumnIndex(ex.InputColumnName, out int srcCol); 1511DataViewType typeSrc = row.Schema[srcCol].Type; 1607return InvertHashUtils.GetSimpleMapper<T>(Row.Schema, _srcCol); 1632_srcGetter = Row.GetGetter<T>(Row.Schema[_srcCol]); 1666_srcGetter = Row.GetGetter<VBuffer<T>>(Row.Schema[_srcCol]); 1700_srcGetter = Row.GetGetter<VBuffer<T>>(Row.Schema[_srcCol]); 1707var simple = InvertHashUtils.GetSimpleMapper<T>(Row.Schema, _srcCol);
Transforms\KeyToValue.cs (1)
366var column = input.Schema[Parent.ColMapNewToOld[InfoIndex]];
Transforms\KeyToVector.cs (3)
475input.Schema.TryGetColumnIndex(_infos[iinfo].InputColumnName, out int srcCol); 516input.Schema.TryGetColumnIndex(info.InputColumnName, out int srcCol); 563input.Schema.TryGetColumnIndex(info.InputColumnName, out int srcCol);
Transforms\LabelConvertTransform.cs (1)
178var typeSrc = input.Schema[col].Type;
Transforms\LabelIndicatorTransform.cs (1)
186var column = input.Schema[info.Source];
Transforms\NopTransform.cs (1)
136Contracts.CheckParam(input.Schema == Source.Schema, nameof(input), "Schema of input row must be the same as the schema the mapper is bound to");
Transforms\NormalizeColumn.cs (11)
812var type = row.Schema[col].Type; 886_colGetterSrc = dataRow.GetGetter<TFloat>(dataRow.Schema[valueColId]); 914var valueCol = dataRow.Schema[valueColId]; 982var srcColumn = cursor.Schema[srcIndex]; 1021var srcColumn = cursor.Schema[srcIndex]; 1062var srcColumn = cursor.Schema[srcIndex]; 1102var srcColumn = cursor.Schema[srcIndex]; 1131int labelColumnId = GetLabelColumnId(host, cursor.Schema, args.LabelColumn); 1132var labelColumnType = cursor.Schema[labelColumnId].Type; 1153int labelColumnId = GetLabelColumnId(host, cursor.Schema, labelColumn); 1213var srcColumn = cursor.Schema[srcIndex];
Transforms\NormalizeColumnDbl.cs (6)
709var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 785var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1037var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1082var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1211var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1296var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]);
Transforms\NormalizeColumnSng.cs (6)
867var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 942var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1197var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1242var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1372var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1457var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]);
Transforms\PerGroupTransformBase.cs (1)
300return _input.GetGetter<TValue>(_input.Schema[index]);
Transforms\RowShufflingTransformer.cs (3)
233provider.CheckParam(CanShuffleAll(cursor.Schema), nameof(cursor), "Cannot shuffle a cursor with some uncacheable columns"); 497public override DataViewSchema Schema => _input.Schema; 531input.Schema[c].Type, RowCursorUtils.GetGetterAsDelegate(input, c));
Transforms\RowToRowTransformerBase.cs (1)
84Contracts.Assert(input.Schema == InputSchema);
Transforms\SlotsDroppingTransformer.cs (1)
811var src = input.Schema[_cols[iinfo]];
Transforms\TransformBase.cs (3)
180Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to"); 699Host.Assert(input.IsColumnActive(input.Schema[src])); 700return input.GetGetter<T>(input.Schema[src]);
Transforms\ValueMapping.cs (3)
484var getKey = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[keyIdx]); 485var getValue = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[valueIdx]); 911var column = input.Schema[index];
Transforms\ValueToKeyMappingTransformerImpl.cs (5)
287var schema = row.Schema; 312inputGetter = row.GetGetter<T>(row.Schema[col]); 324var inputGetter = row.GetGetter<VBuffer<T>>(row.Schema[col]); 911var inputColumn = input.Schema[info.InputColumnName]; 932var inputColumn = input.Schema[info.InputColumnName];
Utilities\ModelFileUtils.cs (2)
303var roleGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[0]); 304var colGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[1]);
Microsoft.ML.DataView (1)
IDataView.cs (1)
157/// Gets a <see cref="Schema"/>, which provides name and type information for variables
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
146getters[i] = predictorRow.GetGetter<T>(predictorRow.Schema[ScoreCols[i]]);
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
256_featureGetter = input.GetGetter<VBuffer<float>>(input.Schema[featureIndex]);
Microsoft.ML.ImageAnalytics (5)
ImageGrayscale.cs (1)
168var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]);
ImageLoader.cs (2)
231var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 269var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]);
ImagePixelExtractor.cs (1)
323var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]);
ImageResizer.cs (1)
278var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]);
Microsoft.ML.Mkl.Components (2)
VectorWhitening.cs (2)
339getters[i] = cursor.GetGetter<VBuffer<float>>(cursor.Schema[cols[i]]); 675var srcCol = input.Schema[_cols[iinfo]];
Microsoft.ML.OnnxTransformer (9)
OnnxTransform.cs (9)
643Contracts.Assert(input.Schema == InputSchema); 782var isVector = input.Schema[colIndex].Type is VectorDataViewType; 801var type = input.Schema[colIndex].Type.RawType; 824var type = input.Schema[colIndex].Type.GetItemType().RawType; 852_colName = input.Schema[colIndex].Name; 853_srcGetter = input.GetGetter<T>(input.Schema[colIndex]); 878_srcGetter = input.GetGetter<VBuffer<T>>(input.Schema[colIndex]); 880_colName = input.Schema[colIndex].Name; 886var isKnownSize = (input.Schema[colIndex].Type as VectorDataViewType).IsKnownSize;
Microsoft.ML.Parquet (2)
PartitionedFileLoader.cs (2)
550var type = _subCursor.Schema[i].Type; 551_subGetters[i] = MarshalGetter(_subCursor.GetGetter<DataViewSchema.Column>, type.RawType, _subCursor.Schema[i]);
Microsoft.ML.PCA (3)
PcaTransformer.cs (3)
425weightGetters[iinfo] = cursor.GetGetter<float>(cursor.Schema[sInfo.WeightColumnIndex]); 426columnGetters[iinfo] = cursor.GetGetter<VBuffer<float>>(cursor.Schema[sInfo.InputIndex]); 575var srcGetter = input.GetGetter<VBuffer<float>>(input.Schema[ColMapNewToOld[iinfo]]);
Microsoft.ML.Predictor.Tests (2)
TestTransposer.cs (2)
38var getter = cursor.GetGetter<VBuffer<T>>(cursor.Schema[col]); 54var getter = cursor.GetGetter<T>(cursor.Schema[col]);
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
401CheckInputSchema(input.Schema, _matrixColumnIndexColumnIndex, _matrixRowIndexCololumnIndex);
Microsoft.ML.Samples (19)
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (4)
77.Schema["ImagePath"]); 80.Schema["Name"]); 82var imageObjectGetter = cursor.GetGetter<MLImage>(cursor.Schema[ 85var grayscaleGetter = cursor.GetGetter<MLImage>(cursor.Schema[
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (3)
63var featuresGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[ 66var pixelsGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[ 69var imageGetter = cursor.GetGetter<MLImage>(cursor.Schema["Image"]);
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (5)
86.Schema["ImagePath"]); 89.Schema["Name"]); 91var imageObjectGetter = cursor.GetGetter<MLImage>(cursor.Schema[ 94var resizedImageGetter = cursor.GetGetter<MLImage>(cursor.Schema[ 97var pixelsGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (3)
75.Schema["ImagePath"]); 78.Schema["Name"]); 80var imageObjectGetter = cursor.GetGetter<MLImage>(cursor.Schema[
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (4)
79.Schema["ImagePath"]); 82.Schema["Name"]); 84var imageObjectGetter = cursor.GetGetter<MLImage>(cursor.Schema[ 87var resizedImageGetter = cursor.GetGetter<MLImage>(cursor.Schema[
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
115inputGetters[f] = input.GetGetter<VBuffer<float>>(input.Schema[_inputColumnIndexes[f]]);
Microsoft.ML.TensorFlow (3)
TensorflowTransform.cs (3)
655Contracts.Assert(input.Schema == InputSchema); 829_srcgetter = input.GetGetter<T>(input.Schema[colIndex]); 877_srcgetter = input.GetGetter<VBuffer<T>>(input.Schema[colIndex]);
Microsoft.ML.TestFramework (21)
DataPipe\TestDataPipe.cs (3)
1210var del = cursor.GetGetter<float>(cursor.Schema[0]); 1211var del2 = cursor.GetGetter<VBuffer<int>>(cursor.Schema[1]); 1212var del3 = cursor.GetGetter<bool>(cursor.Schema[2]);
DataPipe\TestDataPipeBase.cs (18)
674Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 685Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 703Contracts.Assert(curs1.Schema.Count == curs2.Schema.Count); 706int colLim = curs1.Schema.Count; 710var f1 = curs1.IsColumnActive(curs1.Schema[col]); 711var f2 = curs2.IsColumnActive(curs2.Schema[col]); 715var type1 = curs1.Schema[col].Type; 716var type2 = curs2.Schema[col].Type; 784Contracts.Assert(curs1.Schema.Count == view2.Schema.Count); 787int colLim = curs1.Schema.Count; 794Contracts.Assert(curs1.IsColumnActive(curs1.Schema[col])); 805var type1 = curs1.Schema[col].Type; 806var type2 = cursors[col].Schema[col].Type; 1002var g1 = r1.GetGetter<T>(r1.Schema[col]); 1003var g2 = r2.GetGetter<T>(r2.Schema[col]); 1019var g1 = r1.GetGetter<VBuffer<T>>(r1.Schema[col]); 1020var g2 = r2.GetGetter<VBuffer<T>>(r2.Schema[col]);
Microsoft.ML.Tests (3)
Transformers\HashTests.cs (1)
141var mapper = ((ITransformer)xf).GetRowToRowMapper(inRow.Schema);
Transformers\TextFeaturizerTests.cs (2)
122var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema["Features"]); 164var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema["Features"]);
Microsoft.ML.TimeSeries (16)
PredictionEngine.cs (3)
173for (int c = 0; c < input.Schema.Count; ++c) 176bool isActive = input.IsColumnActive(input.Schema[c]); 180throw Contracts.ExceptParam(nameof(input), $"Mapper required column '{input.Schema[c].Name}' active but it was not.");
SequentialAnomalyDetectionTransformBase.cs (2)
367var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]); 393var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]);
SequentialForecastingTransformBase.cs (2)
201var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]); 234var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]);
SequentialTransformBase.cs (1)
403Ch.Assert(input.Schema.Count == parent.OutputSchema.Count);
SequentialTransformerBase.cs (4)
665return _input.GetGetter<T>(_input.Schema[index]); 698Ch.Assert(input.Schema.Count == parent.OutputSchema.Count); 932Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to"); 1012return _input.IsColumnActive(_input.Schema[index]);
SrCnnEntireAnomalyDetector.cs (2)
246return input.GetGetter<double>(input.Schema[_inputColumnName]); 339ValueGetter<double> srcGetter = input.GetGetter<double>(input.Schema[inputCol]);
SrCnnTransformBase.cs (2)
210var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]); 236var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]);
Microsoft.ML.TorchSharp (17)
AutoFormerV2\ObjectDetectionTrainer.cs (4)
808getImage = input.GetGetter<MLImage>(input.Schema[_parent.Options.ImageColumnName]); 832getImage = input.GetGetter<MLImage>(input.Schema[_parent.Options.ImageColumnName]); 856getImage = input.GetGetter<MLImage>(input.Schema[_parent.Options.ImageColumnName]); 879Contracts.Assert(input.Schema == base.InputSchema);
NasBert\NerTrainer.cs (1)
419getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]);
NasBert\SentenceSimilarityTrainer.cs (2)
276getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 277getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]);
NasBert\TextClassificationTrainer.cs (4)
322getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 324getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]); 353getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 355getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]);
Roberta\QATrainer.cs (5)
781getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.ContextColumnName]); 782getQuestion = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.QuestionColumnName]); 808getContext = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.ContextColumnName]); 809getQuestion = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_parent.Options.QuestionColumnName]); 830Contracts.Assert(input.Schema == base.InputSchema);
TorchSharpBaseTrainer.cs (1)
493Contracts.Assert(input.Schema == base.InputSchema);
Microsoft.ML.Transforms (56)
CountFeatureSelection.cs (2)
361return new CountAggregator<T>(colType, row.GetGetter<T>(row.Schema[colSrc])); 373return new CountAggregator<T>(colType, row.GetGetter<VBuffer<T>>(row.Schema[colSrc]));
CustomMappingFilter.cs (2)
97: base(parent.Host, input, input.Schema, active) 163: base(parent.Host, input, input.Schema, active)
CustomMappingTransformer.cs (4)
161result[i] = Utils.MarshalInvoke(GetDstGetter<int>, dstRow.Schema[i].Type.RawType, dstRow, i, refresh); 168var getter = input.GetGetter<T>(input.Schema[colIndex]); 192return Enumerable.Range(0, dstRow.Schema.Count).Select(x => new DataViewSchema.DetachedColumn(dstRow.Schema[x])).ToArray();
Dracula\CountTableTransformer.cs (3)
675if (input.Schema[_parent.ColumnPairs[iinfo].inputColumnName].Type is VectorDataViewType) 684var srcGetter = input.GetGetter<uint>(input.Schema[_parent.ColumnPairs[iinfo].inputColumnName]); 699var inputCol = input.Schema[_parent.ColumnPairs[iinfo].inputColumnName];
ExpressionTransformer.cs (2)
453inputColumns[i] = input.Schema[inputColumnNames[i]]; 595inputColumns[i] = input.Schema[inputColumnNames[i]];
GcnTransform.cs (1)
370var getSrc = input.GetGetter<VBuffer<float>>(input.Schema[_srcCols[iinfo]]);
GroupTransform.cs (4)
405ValueGetter<T> getter = row.GetGetter<T>(row.Schema[col]); 429var type = row.Schema[col].Type; 451var colType = row.Schema[col].Type; 470_srcGetter = row.GetGetter<TValue>(row.Schema[col]);
KeyToVectorMapping.cs (2)
361input.Schema.TryGetColumnIndex(_infos[iinfo].InputColumnName, out int srcCol); 389input.Schema.TryGetColumnIndex(_infos[iinfo].InputColumnName, out int srcCol);
MissingValueDroppingTransformer.cs (1)
228var srcGetter = input.GetGetter<VBuffer<TDst>>(input.Schema[_srcCols[iinfo]]);
MissingValueIndicatorTransformer.cs (2)
254var getSrc = input.GetGetter<T>(input.Schema[ColMapNewToOld[iinfo]]); 276var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[ColMapNewToOld[iinfo]]);
MissingValueReplacing.cs (2)
644var getSrc = input.GetGetter<T>(input.Schema[ColMapNewToOld[iinfo]]); 670var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[ColMapNewToOld[iinfo]]);
MissingValueReplacingUtils.cs (1)
190_getter = cursor.GetGetter<TValue>(cursor.Schema[col]);
OptionalColumnTransform.cs (1)
406return input.GetGetter<T>(input.Schema[_bindings.SrcCols[iinfo]]);
RandomFourierFeaturizing.cs (4)
305var get = cursor.GetGetter<VBuffer<float>>(cursor.Schema[srcCols[i]]); 310var getOne = cursor.GetGetter<float>(cursor.Schema[srcCols[i]]); 514var getSrc = input.GetGetter<VBuffer<float>>(input.Schema[_srcCols[iinfo]]); 531var getSrc = input.GetGetter<float>(input.Schema[_srcCols[iinfo]]);
StatefulCustomMappingTransformer.cs (3)
122var cols = Enumerable.Range(0, dstRow.Schema.Count).Select(x => new DataViewSchema.DetachedColumn(dstRow.Schema[x])).ToArray(); 197var getter = input.GetGetter<T>(input.Schema[colName]);
StatefulFilterTransform.cs (4)
222return _input.IsColumnActive(_input.Schema[iCol]); 223return _appendedRow.IsColumnActive(_appendedRow.Schema[iCol]); 239_input.GetGetter<TValue>(_input.Schema[iCol]) 240: _appendedRow.GetGetter<TValue>(_appendedRow.Schema[iCol]);
Text\StopWordsRemovingTransformer.cs (4)
410var getLang = _languageColumns[iinfo] >= 0 ? input.GetGetter<ReadOnlyMemory<char>>(input.Schema[_languageColumns[iinfo]]) : null; 411var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[_colMapNewToOld[iinfo]]); 877var getter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[colSrcIndex]); 1102var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Text\TextNormalizing.cs (3)
332var srcType = input.Schema[_parent.ColumnPairs[iinfo].inputColumnName].Type; 346var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 360var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Text\TokenizingByCharacters.cs (4)
470if (!(input.Schema[_parent.ColumnPairs[iinfo].inputColumnName].Type is VectorDataViewType)) 478var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 508int cv = input.Schema[ColMapNewToOld[iinfo]].Type.GetVectorSize(); 511var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Text\WordBagTransform.cs (1)
303ValueGetter<ReadOnlyMemory<char>> srcGetter = input.GetGetter<ReadOnlyMemory<char>>(input.Schema.GetColumnOrNull(_parent._columnName).Value);
Text\WordEmbeddingsExtractor.cs (1)
556var column = input.Schema[ColMapNewToOld[iinfo]];
Text\WordTokenizing.cs (5)
240input.Schema.TryGetColumnIndex(_parent._columns[iinfo].InputColumnName, out int srcCol); 241var srcType = input.Schema[srcCol].Type; 252var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 279int cv = input.Schema[ColMapNewToOld[iinfo]].Type.GetVectorSize(); 281var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Microsoft.ML.Vision (3)
DnnRetrainTransform.cs (3)
473if (input.Schema[colIndex].Type is KeyDataViewType && type.RawType == typeof(Int64)) 982_srcgetter = input.GetGetter<T>(input.Schema[colIndex]); 1064_srcgetter = input.GetGetter<VBuffer<T>>(input.Schema[colIndex]);