57 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 (38)
Data\DataViewUtils.cs (2)
1012public override DataViewSchema Schema => _schema; 1180public override DataViewSchema Schema => _schema;
Data\RowCursorUtils.cs (1)
548public override DataViewSchema Schema => _parent.Schema;
DataLoadSave\Binary\BinaryLoader.cs (1)
1238public override DataViewSchema Schema => _parent.Schema;
DataLoadSave\Database\DatabaseLoaderCursor.cs (1)
115public override DataViewSchema Schema => _bindings.OutputSchema;
DataLoadSave\Text\TextLoaderCursor.cs (1)
273public override DataViewSchema Schema => _bindings.OutputSchema;
DataLoadSave\Transpose\TransposeLoader.cs (1)
755public override DataViewSchema Schema => _parent.Schema;
DataView\AppendRowsDataView.cs (1)
169public sealed override DataViewSchema Schema { get; }
DataView\ArrayDataViewBuilder.cs (1)
257public override DataViewSchema Schema => _view.Schema;
DataView\BatchDataViewMapperBase.cs (1)
90public override DataViewSchema Schema => _parent.Schema;
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\EmptyDataView.cs (1)
49public override DataViewSchema Schema { get; }
DataView\RowToRowMapperTransform.cs (2)
305public override DataViewSchema Schema { get; } 366public override DataViewSchema Schema => _bindings.Schema;
DataView\SimpleRow.cs (1)
25public override DataViewSchema Schema { get; }
DataView\Transposer.cs (4)
979public sealed override DataViewSchema Schema => Parent.OutputSchema; 1267public override DataViewSchema Schema => _slicer.Schema; 1471public override DataViewSchema Schema => _parent.Schema; 1530public override DataViewSchema Schema { get; }
DataView\TypedCursor.cs (2)
332public override DataViewSchema Schema => base.Input.Schema; 595public override DataViewSchema Schema => _cursor.Schema;
DataView\ZipDataView.cs (1)
162public override DataViewSchema Schema => _zipBinding.OutputSchema;
Dirty\ChooseColumnsByIndexTransform.cs (1)
293public override DataViewSchema Schema => _bindings.OutputSchema;
Scorers\MulticlassClassificationScorer.cs (1)
357public override DataViewSchema Schema => _schema;
Scorers\RowToRowScorerBase.cs (1)
236public override DataViewSchema Schema { get; }
Transforms\BindingsWrappedRowCursor.cs (1)
20public override DataViewSchema Schema => _bindings.AsSchema;
Transforms\BootstrapSamplingTransformer.cs (1)
193public override DataViewSchema Schema => Input.Schema;
Transforms\ColumnSelecting.cs (2)
632public override DataViewSchema Schema => _mapper.OutputSchema; 767public override DataViewSchema Schema => _mapper.OutputSchema;
Transforms\GenerateNumberTransform.cs (1)
415public override DataViewSchema Schema => _bindings.AsSchema;
Transforms\PerGroupTransformBase.cs (1)
245public override DataViewSchema Schema => _parent.OutputSchema;
Transforms\RowShufflingTransformer.cs (1)
497public override DataViewSchema Schema => _input.Schema;
Transforms\TransformBase.cs (2)
201public override DataViewSchema Schema => _schema; 888public override DataViewSchema Schema => _bindings.AsSchema;
Microsoft.ML.Parquet (2)
ParquetLoader.cs (1)
587public override DataViewSchema Schema => _loader.Schema;
PartitionedFileLoader.cs (1)
411public override DataViewSchema Schema => _parent.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 (5)
SequentialTransformBase.cs (1)
407public override DataViewSchema Schema { get { return _parent.OutputSchema; } }
SequentialTransformerBase.cs (4)
629public override DataViewSchema Schema => _schema; 702public override DataViewSchema Schema => _parent.OutputSchema; 957public override DataViewSchema Schema { get; } 1025public override DataViewSchema Schema => _bindings.Schema;
Microsoft.ML.Transforms (7)
GroupTransform.cs (1)
513public override DataViewSchema Schema => _parent.OutputSchema;
OptionalColumnTransform.cs (1)
458public override DataViewSchema Schema => _bindings.AsSchema;
ProduceIdTransform.cs (1)
178public override DataViewSchema Schema => _bindings.AsSchema;
StatefulCustomMappingTransformer.cs (1)
270public override DataViewSchema Schema => _parent.OutputSchema;
StatefulFilterTransform.cs (1)
211public override DataViewSchema Schema => _parent._bindings.Schema;
SvmLight\SvmLightLoader.cs (1)
449public override DataViewSchema Schema => _parent.Schema;
UngroupTransform.cs (1)
594public override DataViewSchema Schema => _ungroupBinding.OutputSchema;
533 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 (57)
UnitTests\CoreBaseTestClass.cs (23)
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]); 205Check(curs1.Schema == view1.Schema, "Schema of view 1 and its cursor differed"); 206Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 216Check(curs1.Schema == view1.Schema, "Schema of view 1 and its cursor differed"); 217Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 227Check(curs1.Schema == view1.Schema, "Schema of view 1 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;
UnitTests\TestEntryPoints.cs (34)
472var scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 476scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 480scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 487scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score + i); 1684var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1687scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1690scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1693scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1696scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1699scoreColumn = cursReg.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1702scoreColumn = cursBin.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1705scoreColumn = cursBinCali.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1708scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1711scoreColumn = cursAnom.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1910var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1913scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1916scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1919scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1922scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1925scoreColumn = cursReg.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1928scoreColumn = cursBin.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1931scoreColumn = cursBinCali.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 1934scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 2068var scoreColumn = curs0.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 2071scoreColumn = curs1.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 2074scoreColumn = curs2.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 2077scoreColumn = curs3.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 2080scoreColumn = curs4.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 2083scoreColumn = curs.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 2086scoreColumn = cursSaved.Schema.GetColumnOrNull(AnnotationUtils.Const.ScoreValueKind.Score); 3617var aucCol = cursor.Schema.GetColumnOrNull("AUC"); 3722var aucCol = cursor.Schema.GetColumnOrNull("AUC"); 3889var aucCol = cursor.Schema.GetColumnOrNull("AUC"); 4080var aucColumn = cursor.Schema.GetColumnOrNull("AUC");
Microsoft.ML.Data (252)
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\LambdaFilter.cs (1)
164_getSrc = Input.GetGetter<T1>(Input.Schema[parent._colSrc]);
DataView\RowToRowMapperTransform.cs (3)
253Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to"); 334return Input.GetGetter<TValue>(Input.Schema[index]); 400return Input.GetGetter<TValue>(Input.Schema[index]);
DataView\Transposer.cs (9)
986Contracts.Assert(input.IsColumnActive(input.Schema[parent.SrcCol])); 1025Contracts.Assert(row.Schema == _view.Schema); 1027Contracts.Assert(row.IsColumnActive(row.Schema[SrcCol])); 1061return Input.GetGetter<TValue>(Input.Schema[Parent.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]);
Dirty\ChooseColumnsByIndexTransform.cs (1)
316return Input.GetGetter<TValue>(Input.Schema[src]);
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)
409Host.Assert(output.Schema == Bindings.RowMapper.OutputSchema); 410Host.Assert(Bindings.InfoCount == output.Schema.Count + 1); 419Host.Assert(output.IsColumnActive(output.Schema[Bindings.ScoreColumnIndex]));
Scorers\RowToRowScorerBase.cs (9)
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); 296return Input.GetGetter<TValue>(Input.Schema[index]);
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\BindingsWrappedRowCursor.cs (1)
61return Input.GetGetter<TValue>(Input.Schema[index]);
Transforms\BootstrapSamplingTransformer.cs (1)
193public override DataViewSchema Schema => Input.Schema;
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 (2)
644return Input.GetGetter<TValue>(Input.Schema[index]); 779return _inputCursor.GetGetter<TValue>(_inputCursor.Schema[index]);
Transforms\FeatureContributionCalculationTransformer.cs (1)
218var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]);
Transforms\GenerateNumberTransform.cs (1)
440return Input.GetGetter<TValue>(Input.Schema[index]);
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\NAFilter.cs (2)
299var getSrc = cursor.Input.GetGetter<T>(cursor.Input.Schema[info.Index]); 311var getSrc = cursor.Input.GetGetter<VBuffer<T>>(cursor.Input.Schema[info.Index]);
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\RangeFilter.cs (3)
358_srcGetter = Input.GetGetter<Single>(Input.Schema[Parent._index]); 391_srcGetter = Input.GetGetter<Double>(Input.Schema[Parent._index]); 427_srcGetter = Input.GetGetter<T>(Input.Schema[Parent._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 (6)
180Host.Check(input.Schema == Source.Schema, "Schema of input row must be the same as the schema the mapper is bound to"); 230return Input.GetGetter<TValue>(Input.Schema[index]); 249return Input.IsColumnActive(Input.Schema[index]); 699Host.Assert(input.IsColumnActive(input.Schema[src])); 700return input.GetGetter<T>(input.Schema[src]); 904return Input.GetGetter<TValue>(Input.Schema[index]);
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 (2)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
494featureGetters[i] = cursor.GetGetter<VBuffer<float>>(cursor.Schema[fieldColumnIndexes[i]]);
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.TensorFlow.Tests (17)
TensorflowTests.cs (17)
206var cgetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[2]); 299var oneDimgetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[outColIndex]); 300var twoDimgetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[outColIndex + 1]); 301var threeDimgetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[outColIndex + 2]); 302var fourDimgetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[outColIndex + 3]); 303var fourDimKnowngetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[outColIndex + 4]); 420var f64getter = cursor.GetGetter<VBuffer<double>>(cursor.Schema[11]); 421var f32getter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[12]); 422var i64getter = cursor.GetGetter<VBuffer<long>>(cursor.Schema[13]); 423var i32getter = cursor.GetGetter<VBuffer<int>>(cursor.Schema[14]); 424var i16getter = cursor.GetGetter<VBuffer<short>>(cursor.Schema[15]); 425var i8getter = cursor.GetGetter<VBuffer<sbyte>>(cursor.Schema[16]); 426var u64getter = cursor.GetGetter<VBuffer<ulong>>(cursor.Schema[17]); 427var u32getter = cursor.GetGetter<VBuffer<uint>>(cursor.Schema[18]); 428var u16getter = cursor.GetGetter<VBuffer<ushort>>(cursor.Schema[19]); 429var u8getter = cursor.GetGetter<VBuffer<byte>>(cursor.Schema[20]); 430var boolgetter = cursor.GetGetter<VBuffer<bool>>(cursor.Schema[21]);
Microsoft.ML.TestFramework (39)
DataPipe\TestDataPipe.cs (14)
222var col = c.Schema.GetColumnOrNull(cols[i]); 578var col1 = c.Schema.GetColumnOrNull("F13"); 581var col2 = c.Schema.GetColumnOrNull("F23"); 620var col1 = c.Schema.GetColumnOrNull("F1"); 623var col2 = c.Schema.GetColumnOrNull("F2"); 774var col1 = c.Schema.GetColumnOrNull("WB1"); 775var col2 = c.Schema.GetColumnOrNull("WB2"); 921var col = c.Schema.GetColumnOrNull("T"); 1119var resultGetter = cursor.GetGetter<uint>(cursor.Schema[1]); 1150var resultGetter = cursor.GetGetter<VBuffer<uint>>(cursor.Schema[1]); 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]); 1557var resultGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema[1]);
DataPipe\TestDataPipeBase.cs (23)
662Check(curs1.Schema == view1.Schema, "Schema of view 1 and its cursor differed"); 663Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 673Check(curs1.Schema == view1.Schema, "Schema of view 1 and its cursor differed"); 674Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 684Check(curs1.Schema == view1.Schema, "Schema of view 1 and its cursor differed"); 685Check(curs2.Schema == view2.Schema, "Schema of view 2 and its cursor differed"); 692Check(curs1.Schema == view1.Schema, "Schema of view 1 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]);
TestSparseDataView.cs (2)
56var getter = cur.GetGetter<VBuffer<T>>(cur.Schema[0]); 96var getter = cur.GetGetter<VBuffer<T>>(cur.Schema[0]);
Microsoft.ML.Tests (22)
TextLoaderTests.cs (13)
47var col1 = cursor.GetGetter<sbyte>(cursor.Schema[0]); 48var col2 = cursor.GetGetter<short>(cursor.Schema[1]); 49var col3 = cursor.GetGetter<int>(cursor.Schema[2]); 50var col4 = cursor.GetGetter<long>(cursor.Schema[3]); 292var idGetter = cursor.GetGetter<float>(cursor.Schema[0]); 293var textGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[1]); 440cursor.GetGetter<float>(cursor.Schema[0]), 441cursor.GetGetter<float>(cursor.Schema[1]), 442cursor.GetGetter<float>(cursor.Schema[2]), 443cursor.GetGetter<float>(cursor.Schema[3]), 444cursor.GetGetter<float>(cursor.Schema[4]) 553var idGetter = cursor.GetGetter<float>(cursor.Schema[0]); 554var textGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[1]);
Transformers\CopyColumnEstimatorTests.cs (5)
174var aGetter = cursor.GetGetter<int>(cursor.Schema[0]); 175var bGetter = cursor.GetGetter<int>(cursor.Schema[1]); 176var dGetter = cursor.GetGetter<int>(cursor.Schema[3]); 177var eGetter = cursor.GetGetter<int>(cursor.Schema[4]); 178var fGetter = cursor.GetGetter<int>(cursor.Schema[5]);
Transformers\HashTests.cs (1)
141var mapper = ((ITransformer)xf).GetRowToRowMapper(inRow.Schema);
Transformers\TextFeaturizerTests.cs (3)
122var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema["Features"]); 164var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema["Features"]); 579var getter = cursor.GetGetter<VBuffer<ReadOnlyMemory<char>>>(cursor.Schema["Text"]);
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)
277getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 278getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]);
NasBert\TextClassificationTrainer.cs (4)
323getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 325getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]); 354getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 356getSentence2 = 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 (1)
168var getter = input.GetGetter<T>(input.Schema[colIndex]);
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 (2)
406return input.GetGetter<T>(input.Schema[_bindings.SrcCols[iinfo]]); 483return Input.GetGetter<TValue>(Input.Schema[index]);
ProduceIdTransform.cs (2)
197return Input.IsColumnActive(Input.Schema[index]); 216return Input.GetGetter<TValue>(Input.Schema[index]);
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 (2)
197var getter = input.GetGetter<T>(input.Schema[colName]); 319return Input.GetGetter<TValue>(Input.Schema[index]);
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]]);
UngroupTransform.cs (1)
629var srcGetter = Input.GetGetter<VBuffer<T>>(Input.Schema[col]);
Microsoft.ML.Vision (3)
DnnRetrainTransform.cs (3)
472if (input.Schema[colIndex].Type is KeyDataViewType && type.RawType == typeof(Int64)) 981_srcgetter = input.GetGetter<T>(input.Schema[colIndex]); 1063_srcgetter = input.GetGetter<VBuffer<T>>(input.Schema[colIndex]);