1350 references to ValueGetter
Microsoft.Data.Analysis (15)
DataFrame.IDataView.cs (3)
114public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 119return (ValueGetter<TValue>)_getters[column.Index]; 122public override ValueGetter<DataViewRowId> GetIdGetter()
DataFrameColumn.cs (1)
328/// Creates a <see cref="ValueGetter{TValue}"/> that will return the value of the column for the row
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
593private ValueGetter<ReadOnlyMemory<char>> CreateValueGetterDelegate(DataViewRowCursor cursor) =>
DataFrameColumns\StringDataFrameColumn.cs (2)
504private ValueGetter<ReadOnlyMemory<char>> CreateValueGetterDelegate(DataViewRowCursor cursor) => 513(getter as ValueGetter<ReadOnlyMemory<char>>)(ref value);
DataFrameColumns\VBufferDataFrameColumn.cs (2)
177private ValueGetter<VBuffer<T>> CreateValueGetterDelegate(DataViewRowCursor cursor) => 196(getter as ValueGetter<VBuffer<T>>)(ref value);
PrimitiveDataFrameColumn.cs (6)
882private ValueGetter<T> CreateValueGetterDelegate(DataViewRowCursor cursor) => 885private static ValueGetter<float> CreateSingleValueGetterDelegate(DataViewRowCursor cursor, PrimitiveDataFrameColumn<float> column) => 888private static ValueGetter<double> CreateDoubleValueGetterDelegate(DataViewRowCursor cursor, PrimitiveDataFrameColumn<double> column) => 891private static ValueGetter<ushort> CreateCharValueGetterDelegate(DataViewRowCursor cursor, PrimitiveDataFrameColumn<char> column) => 894private static ValueGetter<double> CreateDecimalValueGetterDelegate(DataViewRowCursor cursor, PrimitiveDataFrameColumn<decimal> column) => 902(getter as ValueGetter<T>)(ref value);
Microsoft.ML.AutoML (13)
AutoMLExperiment\ITrialResultManager.cs (6)
151var idGetter = rowCursor.GetGetter<int>(_schema["id"]); 152var lossGetter = rowCursor.GetGetter<float>(_schema["loss"]); 153var durationGetter = rowCursor.GetGetter<float>(_schema["durationInMilliseconds"]); 154var peakCpuGetter = rowCursor.GetGetter<float>(_schema["peakCpu"]); 155var peakMemoryGetter = rowCursor.GetGetter<float>(_schema["peakMemoryInMegaByte"]); 156var parameterGetter = rowCursor.GetGetter<VBuffer<double>>(_schema["parameter"]);
ColumnInference\ColumnTypeInference.cs (2)
279ValueGetter<VBuffer<ReadOnlyMemory<char>>> vecGetter = null; 280ValueGetter<ReadOnlyMemory<char>> oneGetter = null;
ColumnInference\PurposeInference.cs (1)
93var getter = cursor.GetGetter<ReadOnlyMemory<char>>(column);
ColumnInference\TextFileContents.cs (1)
100var getter = cursor.GetGetter<VBuffer<ReadOnlyMemory<char>>>(column);
DatasetDimensions\DatasetDimensionsUtil.cs (3)
19var getter = cursor.GetGetter<ReadOnlyMemory<char>>(column); 35var getter = cursor.GetGetter<Single>(column); 53var getter = cursor.GetGetter<VBuffer<Single>>(column);
Microsoft.ML.AutoML.Tests (1)
Util.cs (1)
24public static ValueGetter<VBuffer<ReadOnlyMemory<char>>> GetKeyValueGetter(IEnumerable<string> colNames)
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
88var getter = rowCursor.GetGetter<T>(column);
Microsoft.ML.Core (12)
Data\AnnotationBuilderExtensions.cs (2)
18public static void AddSlotNames(this DataViewSchema.Annotations.Builder builder, int size, ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter) 29public static void AddKeyValues<TValue>(this DataViewSchema.Annotations.Builder builder, int size, PrimitiveDataViewType valueType, ValueGetter<VBuffer<TValue>> getter)
Data\AnnotationUtils.cs (2)
479public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) => _annotations.GetGetter<TValue>(column); 481public override ValueGetter<DataViewRowId> GetIdGetter() => (ref DataViewRowId dst) => dst = default;
Data\LinkedRowFilterCursorBase.cs (1)
22public override ValueGetter<DataViewRowId> GetIdGetter()
Data\LinkedRowRootCursorBase.cs (1)
48public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Data\SynchronizedCursorBase.cs (1)
70public sealed override ValueGetter<DataViewRowId> GetIdGetter() => Input.GetIdGetter();
Data\WrappingRow.cs (1)
27public override ValueGetter<DataViewRowId> GetIdGetter() => Input.GetIdGetter();
Utilities\ReservoirSampler.cs (4)
62private readonly ValueGetter<T> _getter; 70public ReservoirSamplerWithoutReplacement(Random rnd, int size, ValueGetter<T> getter) 141private readonly ValueGetter<T> _getter; 149public ReservoirSamplerWithReplacement(Random rnd, int size, ValueGetter<T> getter)
Microsoft.ML.Core.Tests (32)
UnitTests\CoreBaseTestClass.cs (9)
29protected Func<bool> GetIdComparer(DataViewRow r1, DataViewRow r2, out ValueGetter<DataViewRowId> idGetter) 31var g1 = r1.GetIdGetter(); 33var g2 = r2.GetIdGetter(); 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]); 268ValueGetter<DataViewRowId> idGetter = null; 355ValueGetter<DataViewRowId> idGetter;
UnitTests\ScoreSchemaTest.cs (5)
73var keyNamesGetter = scoreMetadata.GetGetter<VBuffer<ReadOnlyMemory<char>>>(scoreMetadata.Schema[0]); 79var scoreColumnKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.Schema[1]); 84var scoreValueKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.Schema[2]); 126var scoreColumnKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.Schema[0]); 131var scoreValueKindGetter = scoreMetadata.GetGetter<ReadOnlyMemory<char>>(scoreMetadata.Schema[1]);
UnitTests\TestEntryPoints.cs (18)
484var individualScoreGetters = new ValueGetter<Single>[nModels]; 4495var treesGetter = curs.GetGetter<VBuffer<float>>(treesCol.Value); 4496var leavesGetter = curs.GetGetter<VBuffer<float>>(leavesCol.Value); 4497var pathsGetter = curs.GetGetter<VBuffer<float>>(pathsCol.Value); 5003var getter = cursor.GetGetter<double>(aucCol.Value); 5181var getter = cursor.GetGetter<double>(metricCol.Value); 5182var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value); 5184var isWeightedGetter = cursor.GetGetter<bool>(isWeightedCol.Value); 5363var getter = cursor.GetGetter<double>(metricCol.Value); 5364var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value); 5589var getter = cursor.GetGetter<ReadOnlyMemory<char>>(warningCol.Value); 5772var getter = cursor.GetGetter<double>(metricCol.Value); 5773var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value); 6072var getter = cursor.GetGetter<VBuffer<double>>(metricCol.Value); 6073var foldGetter = cursor.GetGetter<ReadOnlyMemory<char>>(foldCol.Value); 6124var getter = cursor.GetGetter<ReadOnlyMemory<char>>(nameCol.Value); 6289var getter = cursor.GetGetter<double>(accCol.Value); 6461var getter = cursor.GetGetter<double>(accCol.Value);
Microsoft.ML.Data (707)
Commands\DataCommand.cs (1)
169var getter = RowCursorUtils.GetGetterAs<double>(NumberDataViewType.Double, cursor, currentIndex);
Data\Conversion.cs (5)
338private void AddGetNA<T>(ValueGetter<T> fn) 714((ValueGetter<T>)del)(ref res); 736((ValueGetter<T>)del)(ref res); 753public ValueGetter<T> GetNAOrDefaultGetter<T>(DataViewType type) 761return (ValueGetter<T>)del;
Data\DataViewUtils.cs (31)
656private InPipe CreateInPipeCore<T>(int poolIdx, ValueGetter<T> getter) 690public static InPipe Create<T>(MadeObjectPool<T[]> pool, ValueGetter<T> getter) 704private readonly ValueGetter<T> _getter; 708public Impl(MadeObjectPool<T[]> pool, ValueGetter<T> getter) 920Contracts.Assert(getter is ValueGetter<T>); 921return InPipe.Create<T>(_pool, (ValueGetter<T>)getter); 956ValueGetter<T> getter = Getter; 1004private readonly ValueGetter<DataViewRowId> _idGetter; 1048_idGetter = (ValueGetter<DataViewRowId>)_pipes[activeToCol.Length + (int)ExtraIndex.Id].GetGetter(); 1068public override ValueGetter<DataViewRowId> GetIdGetter() => _idGetter; 1123public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1129var getter = originGetter as ValueGetter<TValue>; 1229public override ValueGetter<DataViewRowId> GetIdGetter() 1231ValueGetter<DataViewRowId>[] idGetters = new ValueGetter<DataViewRowId>[_cursors.Length]; 1249ValueGetter<T>[] getters = new ValueGetter<T>[_cursors.Length]; 1260ValueGetter<T> mine = 1314public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1320var getter = originGetter as ValueGetter<TValue>; 1328public static ValueGetter<ReadOnlyMemory<char>>[] PopulateGetterArray(DataViewRowCursor cursor, List<int> colIndices) 1331var getters = new ValueGetter<ReadOnlyMemory<char>>[n]; 1335ValueGetter<ReadOnlyMemory<char>> getter; 1356public static ValueGetter<ReadOnlyMemory<char>> GetSingleValueGetter<T>(DataViewRow cursor, int i, DataViewType colType) 1358var floatGetter = cursor.GetGetter<T>(cursor.Schema[i]); 1375ValueGetter<ReadOnlyMemory<char>> getter = 1386public static ValueGetter<ReadOnlyMemory<char>> GetVectorFlatteningGetter<T>(DataViewRow cursor, int colIndex, DataViewType colType) 1388var vecGetter = cursor.GetGetter<VBuffer<T>>(cursor.Schema[colIndex]); 1394ValueGetter<ReadOnlyMemory<char>> getter =
Data\RowCursorUtils.cs (36)
26/// Returns an appropriate <see cref="ValueGetter{T}"/> for a row given an active column 64Func<DataViewType, DataViewType, DataViewRow, int, ValueGetter<int>> del = GetGetterAsCore<int, int>; 73public static ValueGetter<TDst> GetGetterAs<TDst>(DataViewType typeDst, DataViewRow row, int col) 85Func<DataViewType, DataViewType, DataViewRow, int, ValueGetter<TDst>> del = GetGetterAsCore<int, TDst>; 87return (ValueGetter<TDst>)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, row, col }); 90private static ValueGetter<TDst> GetGetterAsCore<TSrc, TDst>(DataViewType typeSrc, DataViewType typeDst, DataViewRow row, int col) 95var getter = row.GetGetter<TSrc>(row.Schema[col]); 101return (ValueGetter<TDst>)(Delegate)getter; 121public static ValueGetter<StringBuilder> GetGetterAsStringBuilder(DataViewRow row, int col) 132private static ValueGetter<StringBuilder> GetGetterAsStringBuilderCore<TSrc>(DataViewType typeSrc, DataViewRow row, int col) 136var getter = row.GetGetter<TSrc>(row.Schema[col]); 163Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<int>>> del = GetVecGetterAsCore<int, int>; 172public static ValueGetter<VBuffer<TDst>> GetVecGetterAs<TDst>(PrimitiveDataViewType typeDst, DataViewRow row, int col) 183Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<TDst>>> del = GetVecGetterAsCore<int, TDst>; 185return (ValueGetter<VBuffer<TDst>>)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, GetterFactory.Create(row, col) }); 193internal static ValueGetter<VBuffer<TDst>> GetVecGetterAs<TDst>(PrimitiveDataViewType typeDst, SlotCursor cursor) 200Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<TDst>>> del = GetVecGetterAsCore<int, TDst>; 202return (ValueGetter<VBuffer<TDst>>)methodInfo.Invoke(null, new object[] { typeSrc, typeDst, GetterFactory.Create(cursor) }); 206/// A convenience wrapper to generalize the operation of fetching a <see cref="ValueGetter{TValue}"/>. 220public abstract ValueGetter<TValue> GetGetter<TValue>(); 233public override ValueGetter<TValue> GetGetter<TValue>() 248public override ValueGetter<TValue> GetGetter<TValue>() 255private static ValueGetter<VBuffer<TDst>> GetVecGetterAsCore<TSrc, TDst>(VectorDataViewType typeSrc, PrimitiveDataViewType typeDst, GetterFactory getterFact) 261var getter = getterFact.GetGetter<VBuffer<TSrc>>(); 267return (ValueGetter<VBuffer<TDst>>)(Delegate)getter; 315var getter = cursor.GetGetter<T>(cursor.Schema[col]); 352public static ValueGetter<Single> GetLabelGetter(DataViewRow cursor, int labelIndex) 361var getSingleSrc = cursor.GetGetter<Double>(cursor.Schema[labelIndex]); 374private static ValueGetter<Single> GetLabelGetterNotFloat(DataViewRow cursor, int labelIndex) 383var getBoolSrc = cursor.GetGetter<bool>(cursor.Schema[labelIndex]); 400var getSrc = RowCursorUtils.GetGetterAs<ulong>(NumberDataViewType.UInt64, cursor, labelIndex); 414internal static ValueGetter<VBuffer<Single>> GetLabelGetter(SlotCursor cursor) 429var getSrc = RowCursorUtils.GetVecGetterAs<ulong>(NumberDataViewType.UInt64, cursor); 570public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 575var getter = _parent._row.GetGetter<TValue>(column); 596public override ValueGetter<DataViewRowId> GetIdGetter()
Data\SlotCursor.cs (1)
59public abstract ValueGetter<VBuffer<TValue>> GetGetter<TValue>();
DataDebuggerPreview.cs (1)
71var getter = row.GetGetter<T>(column);
DataLoadSave\Binary\BinaryLoader.cs (10)
474/// Return <see cref="ValueGetter{TValue}"/> to the stored entry value as <see cref="Delegate"/>. An example of stored value is 564ValueGetter<T> getter = (ref T value) => value = Value; 580ValueGetter<VBuffer<T>> getter = (ref VBuffer<T> value) => Value.CopyTo(ref value); 1671ValueGetter<T> getter = Get; 1959ValueGetter<T> getter = Get; 2035public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 2040var getter = originGetter as ValueGetter<TValue>; 2056ValueGetter<T> del = (ref T value) => throw Ch.Except(RowCursorUtils.FetchValueStateError); 2060public override ValueGetter<DataViewRowId> GetIdGetter()
DataLoadSave\Binary\BinarySaver.cs (2)
110private readonly ValueGetter<T> _getter; 781ValueGetter<T> getter = cursor.GetGetter<T>(cursor.Schema[col.SourceIndex]);
DataLoadSave\Database\DatabaseLoaderCursor.cs (31)
105public override ValueGetter<DataViewRowId> GetIdGetter() 158public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 164var fn = originFn as ValueGetter<TValue>; 292return getterDelegate as ValueGetter<TValue>; 295private ValueGetter<bool> CreateBooleanGetterDelegate(ColInfo colInfo) 301private ValueGetter<byte> CreateByteGetterDelegate(ColInfo colInfo) 307private ValueGetter<DateTime> CreateDateTimeGetterDelegate(ColInfo colInfo) 313private ValueGetter<double> CreateDoubleGetterDelegate(ColInfo colInfo) 319private ValueGetter<short> CreateInt16GetterDelegate(ColInfo colInfo) 325private ValueGetter<int> CreateInt32GetterDelegate(ColInfo colInfo) 331private ValueGetter<long> CreateInt64GetterDelegate(ColInfo colInfo) 337private ValueGetter<sbyte> CreateSByteGetterDelegate(ColInfo colInfo) 343private ValueGetter<float> CreateSingleGetterDelegate(ColInfo colInfo) 349private ValueGetter<ReadOnlyMemory<char>> CreateStringGetterDelegate(ColInfo colInfo) 355private ValueGetter<ushort> CreateUInt16GetterDelegate(ColInfo colInfo) 361private ValueGetter<uint> CreateUInt32GetterDelegate(ColInfo colInfo) 367private ValueGetter<ulong> CreateUInt64GetterDelegate(ColInfo colInfo) 373private ValueGetter<VBuffer<bool>> CreateVBufferBooleanGetterDelegate(ColInfo colInfo) 403private ValueGetter<VBuffer<byte>> CreateVBufferByteGetterDelegate(ColInfo colInfo) 433private ValueGetter<VBuffer<DateTime>> CreateVBufferDateTimeGetterDelegate(ColInfo colInfo) 463private ValueGetter<VBuffer<double>> CreateVBufferDoubleGetterDelegate(ColInfo colInfo) 493private ValueGetter<VBuffer<short>> CreateVBufferInt16GetterDelegate(ColInfo colInfo) 523private ValueGetter<VBuffer<int>> CreateVBufferInt32GetterDelegate(ColInfo colInfo) 553private ValueGetter<VBuffer<long>> CreateVBufferInt64GetterDelegate(ColInfo colInfo) 583private ValueGetter<VBuffer<sbyte>> CreateVBufferSByteGetterDelegate(ColInfo colInfo) 613private ValueGetter<VBuffer<float>> CreateVBufferSingleGetterDelegate(ColInfo colInfo) 643private ValueGetter<VBuffer<ReadOnlyMemory<char>>> CreateVBufferStringGetterDelegate(ColInfo colInfo) 673private ValueGetter<VBuffer<ushort>> CreateVBufferUInt16GetterDelegate(ColInfo colInfo) 703private ValueGetter<VBuffer<uint>> CreateVBufferUInt32GetterDelegate(ColInfo colInfo) 733private ValueGetter<VBuffer<ulong>> CreateVBufferUInt64GetterDelegate(ColInfo colInfo)
DataLoadSave\FakeSchema.cs (2)
61ValueGetter<VBuffer<TValue>> getter = (ref VBuffer<TValue> value) => value = new VBuffer<TValue>(AllVectorSizes, 0, null, null); 67ValueGetter<TValue> getter = (ref TValue value) => value = default;
DataLoadSave\Text\TextLoaderCursor.cs (4)
199public override ValueGetter<DataViewRowId> GetIdGetter() 317public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 323var fn = originFn as ValueGetter<TValue>;
DataLoadSave\Text\TextLoaderParser.cs (2)
293return (ValueGetter<TResult>)Get; 477return (ValueGetter<VBuffer<TItem>>)Get;
DataLoadSave\Text\TextSaver.cs (2)
156private readonly ValueGetter<VBuffer<T>> _getSrc; 222private readonly ValueGetter<T> _getSrc;
DataLoadSave\Transpose\TransposeLoader.cs (11)
673private readonly ValueGetter<VBuffer<T>> _getter; 692public override ValueGetter<VBuffer<TValue>> GetGetter<TValue>() 694ValueGetter<VBuffer<TValue>> getter = _getter as ValueGetter<VBuffer<TValue>>; 817ValueGetter<VBuffer<T>> getter = cursor.GetGetter<T>(); 819ValueGetter<T> oneGetter = 838ValueGetter<VBuffer<T>> getter = cursor.GetGetter<T>(); 844public override ValueGetter<DataViewRowId> GetIdGetter() 882public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 888var getter = originGetter as ValueGetter<TValue>;
DataView\AppendRowsDataView.cs (14)
187protected abstract ValueGetter<TValue> CreateTypedGetter<TValue>(int col); 189public sealed override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 194var getter = originGetter as ValueGetter<TValue>; 217private ValueGetter<DataViewRowId> _currentIdGetter; 232public override ValueGetter<DataViewRowId> GetIdGetter() 246protected override ValueGetter<TValue> CreateTypedGetter<TValue>(int col) 249ValueGetter<TValue> getSrc = null; 334public override ValueGetter<DataViewRowId> GetIdGetter() 336ValueGetter<DataViewRowId>[] idGetters = new ValueGetter<DataViewRowId>[_cursorSet.Length]; 348protected override ValueGetter<TValue> CreateTypedGetter<TValue>(int col) 350ValueGetter<TValue>[] getSrc = new ValueGetter<TValue>[_cursorSet.Length];
DataView\ArrayDataViewBuilder.cs (12)
23private readonly Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>> _getSlotNames; 24private readonly Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>> _getKeyValues; 43_getSlotNames = new Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>>(); 44_getKeyValues = new Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>>(); 83public void AddColumn<T1>(string name, ValueGetter<VBuffer<ReadOnlyMemory<char>>> getKeyValues, ulong keyCount, params T1[] values) 97public void AddColumn<T>(string name, ValueGetter<VBuffer<ReadOnlyMemory<char>>> getNames, PrimitiveDataViewType itemType, params T[][] values) 122public void AddColumn<T>(string name, ValueGetter<VBuffer<ReadOnlyMemory<char>>> getNames, PrimitiveDataViewType itemType, Combiner<T> combiner, params T[][] values) 158public void AddColumn<T>(string name, ValueGetter<VBuffer<ReadOnlyMemory<char>>> getNames, PrimitiveDataViewType itemType, params VBuffer<T>[] values) 223if (builder._getSlotNames.TryGetValue(builder._names[i], out var slotNamesGetter)) 226if (builder._getKeyValues.TryGetValue(builder._names[i], out var keyValueGetter)) 285public override ValueGetter<DataViewRowId> GetIdGetter() 323public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
DataView\BatchDataViewMapperBase.cs (6)
69protected abstract ValueGetter<TInput> GetLookAheadGetter(DataViewRowCursor lookAheadCursor); 85private readonly ValueGetter<TInput> _inputGetterInLookAheadCursor; 109public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 123var fn = getter as ValueGetter<TValue>; 130public override ValueGetter<DataViewRowId> GetIdGetter()
DataView\CacheDataView.cs (21)
466public override ValueGetter<DataViewRowId> GetIdGetter() => _index.GetIdGetter(); 490protected override ValueGetter<TValue> CreateGetterDelegateCore<TValue>(ColumnCache<TValue> cache) 523public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) => _internal.GetGetter<TValue>(column); 524public override ValueGetter<DataViewRowId> GetIdGetter() => _internal.GetIdGetter(); 540public override ValueGetter<DataViewRowId> GetIdGetter() 574protected override ValueGetter<TValue> CreateGetterDelegateCore<TValue>(ColumnCache<TValue> cache) 735ValueGetter<DataViewRowId> GetIdGetter(); 772public ValueGetter<DataViewRowId> GetIdGetter() 809public ValueGetter<DataViewRowId> GetIdGetter() => _index.GetIdGetter(); 837public ValueGetter<DataViewRowId> GetIdGetter() 880public ValueGetter<DataViewRowId> GetIdGetter() => _index.GetIdGetter(); 973public ValueGetter<DataViewRowId> GetIdGetter() 1037public ValueGetter<DataViewRowId> GetIdGetter() => _index.GetIdGetter(); 1079public ValueGetter<DataViewRowId> GetIdGetter() 1132public ValueGetter<DataViewRowId> GetIdGetter() => _index.GetIdGetter(); 1204public sealed override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1210var getter = originGetter as ValueGetter<TValue>; 1234protected abstract ValueGetter<TValue> CreateGetterDelegateCore<TValue>(ColumnCache<TValue> cache); 1343private ValueGetter<VBuffer<T>> _getter; 1428private ValueGetter<T> _getter;
DataView\CompositeRowToRowMapper.cs (2)
113public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) => _row.GetGetter<TValue>(column); 114public override ValueGetter<DataViewRowId> GetIdGetter() => _row.GetIdGetter();
DataView\DataViewConstructionUtils.cs (25)
173public override ValueGetter<DataViewRowId> GetIdGetter() 313return (ValueGetter<VBuffer<TDst>>)((ref VBuffer<TDst> dst) => 329return (ValueGetter<TDst>)((ref TDst dst) => 341return (ValueGetter<VBuffer<TDst>>)((ref VBuffer<TDst> dst) => 357return (ValueGetter<VBuffer<TDst>>)((ref VBuffer<TDst> dst) => 371return (ValueGetter<TDst>)((ref TDst dst) => 392ValueGetter<TDst> getter = (ref TDst dst) => 429public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 435var fn = getter as ValueGetter<TValue>; 514public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 517public override ValueGetter<DataViewRowId> GetIdGetter() => _toWrap.GetIdGetter(); 646public override ValueGetter<DataViewRowId> GetIdGetter() 721public override ValueGetter<DataViewRowId> GetIdGetter() 789public override ValueGetter<DataViewRowId> GetIdGetter() 838public abstract ValueGetter<TDst> GetGetter<TDst>(); 912public override ValueGetter<TDst> GetGetter<TDst>() 927ValueGetter<VBuffer<ReadOnlyMemory<char>>> method = GetStringArray; 928return method as ValueGetter<TDst>; 934return Utils.MarshalInvoke(_getArrayGetterMethodInfo, this, dstItemType) as ValueGetter<TDst>; 950return Utils.MarshalInvoke(_getVBufferGetterMethodInfo, this, annotationVectorType.ItemType.RawType) as ValueGetter<TDst>; 958ValueGetter<ReadOnlyMemory<char>> m = GetString; 959return m as ValueGetter<TDst>; 991private ValueGetter<VBuffer<TDst>> GetArrayGetter<TDst>() 1004private ValueGetter<VBuffer<TDst>> GetVBufferGetter<TDst>()
DataView\EmptyDataView.cs (2)
60public override ValueGetter<DataViewRowId> GetIdGetter() 79public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
DataView\LambdaColumnMapper.cs (12)
22ValueGetter<VBuffer<ReadOnlyMemory<char>>> keyValueGetter = null, ValueGetter<VBuffer<ReadOnlyMemory<char>>> slotNamesGetter = null) 73ValueMapper<int, int>, ValueGetter<VBuffer<ReadOnlyMemory<char>>>, ValueGetter<VBuffer<ReadOnlyMemory<char>>>, 86ValueGetter<VBuffer<ReadOnlyMemory<char>>> keyValueGetter, ValueGetter<VBuffer<ReadOnlyMemory<char>>> slotNamesGetter) 108ValueGetter<VBuffer<ReadOnlyMemory<char>>> keyValueGetter = null, ValueGetter<VBuffer<ReadOnlyMemory<char>>> slotNamesGetter = null) 163var getSrc = GetSrcGetter<T1>(input, 0); 165ValueGetter<T2> getter = 175var getSrc = GetSrcGetter<T1>(input, 0); 178ValueGetter<T3> getter =
DataView\LambdaFilter.cs (1)
157private readonly ValueGetter<T1> _getSrc;
DataView\RowToRowMapperTransform.cs (6)
329public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 338var fn = originFn as ValueGetter<TValue>; 393public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 405var fn = getter as ValueGetter<TValue>;
DataView\SimpleRow.cs (2)
55public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 59if (_getters[column.Index] is ValueGetter<TValue> fn)
DataView\Transposer.cs (29)
304private ValueGetter<VBuffer<T>> _getter; 314public override ValueGetter<VBuffer<TValue>> GetGetter<TValue>() 318ValueGetter<VBuffer<TValue>> getter = _getter as ValueGetter<VBuffer<TValue>>; 331protected abstract ValueGetter<VBuffer<T>> GetGetterCore(); 372protected override ValueGetter<VBuffer<T>> GetGetterCore() 391ValueGetter<T> getter = cursor.GetGetter<T>(currentColumn); 549var getter = cursor.GetGetter<VBuffer<T>>(currentColumn); 703protected override ValueGetter<VBuffer<T>> GetGetterCore() 1058public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1132private readonly ValueGetter<VBuffer<T>> _inputGetter; 1138private readonly ValueGetter<VBuffer<T>>[] _getters; 1146_getters = new ValueGetter<VBuffer<T>>[Lims.Length]; 1167public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1171var originFn = _getters[column.Index]; 1172var fn = originFn as ValueGetter<TValue>; 1179private ValueGetter<VBuffer<T>> CreateGetter(int col) 1315public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1346var getter = cursor.GetGetter<T>(); 1367public static ValueGetter<TValue> GetGetterWithVectorType<TValue>(this SlotCursor cursor, IExceptionContext ctx = null) 1377var getter = Utils.MarshalInvoke(_slotCursorGetGetterMethodInfo, cursor, genTypeArgs[0]) as ValueGetter<TValue>; 1500public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1505var getter = _getter as ValueGetter<TValue>; 1512public override ValueGetter<DataViewRowId> GetIdGetter() => GetId; 1561public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1567public override ValueGetter<DataViewRowId> GetIdGetter() => GetId;
DataView\TypedCursor.cs (10)
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]); 548public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 579public ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 582public ValueGetter<DataViewRowId> GetIdGetter() => _row.GetIdGetter(); 616public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 619public override ValueGetter<DataViewRowId> GetIdGetter() => _cursor.GetIdGetter();
DataView\ZipDataView.cs (2)
141public override ValueGetter<DataViewRowId> GetIdGetter() 180public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Dirty\ChooseColumnsByIndexTransform.cs (1)
311public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Evaluators\AnomalyDetectionEvaluator.cs (8)
440private ValueGetter<Single> _labelGetter; 441private ValueGetter<Single> _scoreGetter; 442private ValueGetter<ReadOnlyMemory<char>> _nameGetter; 675var instanceGetter = cursor.GetGetter<ReadOnlyMemory<char>>(column.Value); 680var scoreGetter = cursor.GetGetter<Single>(column.Value); 685var labelGetter = cursor.GetGetter<Single>(column.Value); 729var numAnomGetter = cursor.GetGetter<long>(numAnom.Value); 730ValueGetter<uint> stratGetter = null;
Evaluators\AucAggregator.cs (8)
49ValueGetter<T> sampleGetter = GetSampleGetter(); 62protected abstract ValueGetter<T> GetSampleGetter(); 204protected override ValueGetter<Single> GetSampleGetter() 333protected override ValueGetter<AucInfo> GetSampleGetter() 378ValueGetter<T> sampleGetter = GetSampleGetter(); 382protected abstract ValueGetter<T> GetSampleGetter(); 461protected override ValueGetter<Info> GetSampleGetter() 557protected override ValueGetter<Info> GetSampleGetter()
Evaluators\BinaryClassifierEvaluator.cs (24)
361ValueGetter<VBuffer<ReadOnlyMemory<char>>> getSlotNames = 560private ValueGetter<Single> _labelGetter; 561private ValueGetter<Single> _scoreGetter; 562private ValueGetter<Single> _weightGetter; 563private ValueGetter<Single> _probGetter; 599ValueGetter<RocInfo> prSampleGetter = 882out ValueGetter<float> thresholdGetter, 883out ValueGetter<double> precisionGetter, 884out ValueGetter<double> recallGetter, 885out ValueGetter<double> fprGetter); 910out ValueGetter<float> thresholdGetter, 911out ValueGetter<double> precisionGetter, 912out ValueGetter<double> recallGetter, 913out ValueGetter<double> fprGetter) 1008out ValueGetter<float> thresholdGetter, 1009out ValueGetter<double> precisionGetter, 1010out ValueGetter<double> recallGetter, 1011out ValueGetter<double> fprGetter); 1161ValueGetter<Single> nanGetter = (ref Single value) => value = Single.NaN; 1162var labelGetter = _probIndex >= 0 && activeCols(LogLossCol) ? 1164ValueGetter<Single> probGetter; 1169ValueGetter<Single> scoreGetter; 1210ValueGetter<bool> predFn = 1220ValueGetter<Double> loglossFn =
Evaluators\ClusteringEvaluator.cs (9)
378private ValueGetter<Single> _labelGetter; 379private ValueGetter<VBuffer<Single>> _scoreGetter; 380private ValueGetter<Single> _weightGetter; 381private ValueGetter<VBuffer<Single>> _featGetter; 663var scoreGetter = input.GetGetter<VBuffer<Single>>(input.Schema[ScoreIndex]); 680ValueGetter<uint> assignedFn = 691ValueGetter<VBuffer<Single>> topKScoresFn = 705ValueGetter<VBuffer<uint>> topKClassesFn = 739private ValueGetter<VBuffer<ReadOnlyMemory<char>>> CreateSlotNamesGetter(int numTopClusters, string suffix)
Evaluators\EvaluatorBase.cs (2)
206private protected ValueGetter<VBuffer<ReadOnlyMemory<char>>> GetKeyValueGetter(AggregatorDictionaryBase[] dictionaries) 399private ValueGetter<TStrat> _stratGetter;
Evaluators\EvaluatorUtils.cs (23)
279ValueGetter<bool> isWeightedGetter; 285ValueGetter<uint> stratColGetter; 296var getters = new ValueGetter<double>[colCount]; 297var vBufferGetters = getVectorMetrics ? new ValueGetter<VBuffer<double>>[colCount] : null; 410DataViewType typeSrc, int keyCount, int value, string registrationName, ValueGetter<VBuffer<ReadOnlyMemory<char>>> keyValueGetter) 449inputColType, numFolds, curFold + 1, "FoldIndex", default(ValueGetter<VBuffer<ReadOnlyMemory<char>>>)); 495ValueGetter<VBuffer<ReadOnlyMemory<char>>> slotNamesGetter = 616ValueGetter<VBuffer<ReadOnlyMemory<char>>> keyValueGetter = 684ValueGetter<VBuffer<ReadOnlyMemory<char>>> keyValueGetter = 724ValueGetter<VBuffer<ReadOnlyMemory<char>>> slotNamesGetter = null; 992ValueGetter<double>[] getters, ValueGetter<VBuffer<double>>[] vBufferGetters) 1098var getters = new ValueGetter<double>[colCount]; 1099var vBufferGetters = new ValueGetter<VBuffer<double>>[colCount]; 1106ValueGetter<bool> isWeightedGetter; 1112ValueGetter<uint> stratColGetter; 1175private static void UpdateSums(int isWeightedCol, int stratCol, int stratVal, AggregatedMetric[] aggregated, bool hasStdev, List<string> metricNames, bool hasWeighted, bool hasStrats, int colCount, ValueGetter<double>[] getters, ValueGetter<VBuffer<double>>[] vBufferGetters, ref double metricVal, ref VBuffer<double> metricVals) 1244ValueGetter<VBuffer<ReadOnlyMemory<char>>> getKeyValues = 1313ValueGetter<VBuffer<ReadOnlyMemory<char>>> getSlotNames = (ref VBuffer<ReadOnlyMemory<char>> dst) => dst = slotNames; 1480var countGetter = cursor.GetGetter<VBuffer<double>>(cursor.Schema[countIndex]); 1481ValueGetter<uint> stratGetter = null; 1742var getter = cursor.GetGetter<ReadOnlyMemory<char>>(warningTextColumn.Value);
Evaluators\Metrics\BinaryPrecisionRecallDataPoint.cs (4)
35internal BinaryPrecisionRecallDataPoint(ValueGetter<float> thresholdGetter, ValueGetter<double> precisionGetter, ValueGetter<double> recallGetter, ValueGetter<double> fprGetter)
Evaluators\MulticlassClassificationEvaluator.cs (13)
224ValueGetter<VBuffer<ReadOnlyMemory<char>>> getKSlotNames = 238ValueGetter<VBuffer<ReadOnlyMemory<char>>> getSlotNames = 379private ValueGetter<float> _labelGetter; 380private ValueGetter<VBuffer<float>> _scoreGetter; 381private ValueGetter<float> _weightGetter; 724var labelGetter = activeCols(LogLossCol) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : 726var scoreGetter = input.GetGetter<VBuffer<float>>(input.Schema[ScoreIndex]); 744ValueGetter<uint> assignedFn = 755ValueGetter<VBuffer<float>> topKScoresFn = 769ValueGetter<VBuffer<uint>> topKClassesFn = 783ValueGetter<double> logLossFn = 831private ValueGetter<VBuffer<ReadOnlyMemory<char>>> CreateSlotNamesGetter(int numTopClasses, string suffix) 843private ValueGetter<VBuffer<ReadOnlyMemory<char>>> CreateKeyValueGetter()
Evaluators\MultiOutputRegressionEvaluator.cs (18)
273private ValueGetter<VBuffer<float>> _labelGetter; 274private ValueGetter<VBuffer<float>> _scoreGetter; 275private ValueGetter<float> _weightGetter; 471ValueGetter<VBuffer<float>> nullGetter = (ref VBuffer<float> vec) => vec = default(VBuffer<float>); 472var labelGetter = activeCols(LabelOutput) || activeCols(L1Output) || activeCols(L2Output) || activeCols(DistCol) 475var scoreGetter = activeCols(ScoreOutput) || activeCols(L1Output) || activeCols(L2Output) || activeCols(DistCol) 492ValueGetter<VBuffer<float>> labelFn = 502ValueGetter<VBuffer<float>> scoreFn = 512ValueGetter<double> l1Fn = 522ValueGetter<double> l2Fn = 532ValueGetter<double> distFn = 565ValueGetter<ReadOnlyMemory<char>> getter = GetScoreColumnKind; 569ValueGetter<uint> uintGetter = GetScoreColumnSetId(schema); 574private ValueGetter<uint> GetScoreColumnSetId(DataViewSchema schema) 593private ValueGetter<VBuffer<ReadOnlyMemory<char>>> CreateSlotNamesGetter(DataViewSchema schema, int column, int length, string prefix) 677var vBufferGetters = new ValueGetter<VBuffer<double>>[colCount]; 682ValueGetter<bool> isWeightedGetter; 688ValueGetter<uint> stratGetter;
Evaluators\QuantileRegressionEvaluator.cs (7)
250ValueGetter<VBuffer<ReadOnlyMemory<char>>> getSlotNames = 367private ValueGetter<VBuffer<ReadOnlyMemory<char>>> CreateSlotNamesGetter(string prefix) 392ValueGetter<float> nanGetter = (ref float value) => value = Single.NaN; 393var labelGetter = activeCols(L1Col) || activeCols(L2Col) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : nanGetter; 394ValueGetter<VBuffer<float>> scoreGetter; 417ValueGetter<VBuffer<Double>> l1Fn = 430ValueGetter<VBuffer<Double>> l2Fn =
Evaluators\RankingEvaluator.cs (11)
423private ValueGetter<Single> _labelGetter; 424private ValueGetter<Single> _scoreGetter; 425private ValueGetter<Single> _weightGetter; 468ValueGetter<StringBuilder> groupIdBuilder = RowCursorUtils.GetGetterAsStringBuilder(row, schema.Group.Value.Index); 530public ValueGetter<VBuffer<ReadOnlyMemory<char>>> GetGroupSummarySlotNames(string prefix) 758ValueGetter<VBuffer<Double>> fn = 765ValueGetter<VBuffer<Double>> fn = (ref VBuffer<Double> dst) => Copy(dcg, ref dst); 771ValueGetter<VBuffer<Double>> fn = (ref VBuffer<Double> dst) => Copy(maxDcg, ref dst); 785protected override ValueGetter<short> GetLabelGetter(DataViewRow row) 787var lb = RowCursorUtils.GetLabelGetter(row, _bindings.LabelIndex); 797protected override ValueGetter<Single> GetScoreGetter(DataViewRow row)
Evaluators\RegressionEvaluator.cs (5)
280ValueGetter<float> nan = (ref float value) => value = Single.NaN; 281var labelGetter = activeCols(L1Col) || activeCols(L2Col) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : nan; 282ValueGetter<float> scoreGetter; 301ValueGetter<double> l1Fn = 311ValueGetter<double> l2Fn =
Evaluators\RegressionEvaluatorBase.cs (3)
178private ValueGetter<float> _labelGetter; 179private ValueGetter<TScore> _scoreGetter; 180private ValueGetter<float> _weightGetter;
Prediction\Calibrator.cs (5)
716var scoreGetter = RowCursorUtils.GetGetterAs<Single>(NumberDataViewType.Single, input, _scoreCol); 717ValueGetter<Single> probGetter = 968var labelGetter = RowCursorUtils.GetLabelGetter(cursor, labelCol.Index); 969var scoreGetter = RowCursorUtils.GetGetterAs<Single>(NumberDataViewType.Single, cursor, scoreCol.Index); 970ValueGetter<Single> weightGetter = !weightCol.HasValue ? (ref float dst) => dst = 1 :
Prediction\CalibratorCatalog.cs (2)
319var getScore = input.GetGetter<float>(input.Schema[_scoreColIndex]); 323ValueGetter<float> probability = (ref float dst) =>
Scorers\BinaryClassifierScorer.cs (5)
119ValueGetter<VBuffer<T>> getter = (ref VBuffer<T> value) => 239ValueGetter<float> mapperScoreGetter = output.GetGetter<float>(scoreColumn); 244ValueGetter<float> scoreFn = 254ValueGetter<uint> predFnAsKey = 263ValueGetter<bool> predFn =
Scorers\ClusteringScorer.cs (3)
99ValueGetter<VBuffer<float>> mapperScoreGetter = output.GetGetter<VBuffer<float>>(output.Schema[Bindings.ScoreColumnIndex]); 106ValueGetter<uint> predFn = 117ValueGetter<VBuffer<float>> scoreFn =
Scorers\FeatureContributionCalculation.cs (5)
197Func<DataViewRow, int, VBuffer<ReadOnlyMemory<char>>, ValueGetter<ReadOnlyMemory<char>>> del = GetTextValueGetter<int>; 223private ValueGetter<ReadOnlyMemory<char>> GetTextValueGetter<TSrc>(DataViewRow input, int colSrc, VBuffer<ReadOnlyMemory<char>> slotNames) 228var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]); 262private ValueGetter<VBuffer<float>> GetValueGetter<TSrc>(DataViewRow input, int colSrc) 267var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]);
Scorers\MulticlassClassificationScorer.cs (14)
154ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst); 194Contracts.Assert(_getter is ValueGetter<VBuffer<T>>); 196var getter = (ValueGetter<VBuffer<T>>)_getter; 245env.Assert(getter is ValueGetter<VBuffer<T>>); 249return new Bound<T>(env, mapper, type, (ValueGetter<VBuffer<T>>)getter, metadataKind, canWrap); 259private readonly ValueGetter<VBuffer<T>> _labelNameGetter; 282public Bound(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, ValueGetter<VBuffer<T>> getter, 312ValueGetter<VBuffer<T>> labelNameGetter, string labelNameKind) 380public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) => Input.GetGetter<TValue>(column); 498ValueGetter<VBuffer<T>> getter = 568ValueGetter<VBuffer<float>> mapperScoreGetter = output.GetGetter<VBuffer<float>>(Bindings.RowMapper.OutputSchema[Bindings.ScoreColumnIndex]); 574ValueGetter<uint> predFn = 585ValueGetter<VBuffer<float>> scoreFn =
Scorers\PredictedLabelScorerBase.cs (1)
433DataViewRow boundRow, ValueGetter<TScore> scoreGetter)
Scorers\RowToRowScorerBase.cs (4)
214protected static ValueGetter<T> GetGetterFromRow<T>(DataViewRow output, int col) 289public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 301var fn = getter as ValueGetter<TValue>;
Scorers\SchemaBindablePredictorWrapper.cs (7)
166private ValueGetter<TDst> GetValueGetter<TSrc, TDst>(DataViewRow input, int colSrc) 171var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]); 572ValueGetter<float> getScore = 582ValueGetter<float> getProb = 595ref long cachedPosition, ValueGetter<VBuffer<float>> featureGetter, ref VBuffer<float> features, 710var featureGetter = input.GetGetter<VBuffer<float>>(column); 719ValueGetter<VBuffer<float>> del =
Training\TrainerUtils.cs (14)
262public static ValueGetter<VBuffer<float>> GetFeatureFloatVectorGetter(this DataViewRow row, RoleMappedSchema schema) 275public static ValueGetter<VBuffer<float>> GetFeatureFloatVectorGetter(this DataViewRow row, RoleMappedData data) 285public static ValueGetter<float> GetLabelFloatGetter(this DataViewRow row, RoleMappedSchema schema) 299public static ValueGetter<float> GetLabelFloatGetter(this DataViewRow row, RoleMappedData data) 308public static ValueGetter<float> GetOptWeightFloatGetter(this DataViewRow row, RoleMappedSchema schema) 320public static ValueGetter<float> GetOptWeightFloatGetter(this DataViewRow row, RoleMappedData data) 329public static ValueGetter<ulong> GetOptGroupGetter(this DataViewRow row, RoleMappedSchema schema) 341public static ValueGetter<ulong> GetOptGroupGetter(this DataViewRow row, RoleMappedData data) 723private readonly ValueGetter<float> _getWeight; 724private readonly ValueGetter<ulong> _getGroup; 725private readonly ValueGetter<DataViewRowId> _getId; 818private readonly ValueGetter<VBuffer<float>> _get; 885private readonly ValueGetter<float> _get; 953private readonly ValueGetter<float> _get;
Transforms\BindingsWrappedRowCursor.cs (1)
55public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Transforms\BootstrapSamplingTransformer.cs (2)
203public override ValueGetter<DataViewRowId> GetIdGetter() 221public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Transforms\ColumnBindingsBase.cs (1)
294ValueGetter<TValue> getter = (ref TValue value) => bindings.GetAnnotation(kind, col, ref value);
Transforms\ColumnConcatenatingTransformer.cs (5)
581metadata.Add(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ValueGetter<bool>)GetIsNormalized); 585metadata.Add(AnnotationUtils.Kinds.CategoricalSlotRanges, _categoricalRangeType, (ValueGetter<VBuffer<int>>)GetCategoricalSlotRanges); 691var srcGetterOnes = new ValueGetter<T>[SrcIndices.Length]; 692var srcGetterVecs = new ValueGetter<VBuffer<T>>[SrcIndices.Length]; 706ValueGetter<VBuffer<T>> result = (ref VBuffer<T> dst) =>
Transforms\ColumnSelecting.cs (2)
641public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 776public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
Transforms\FeatureContributionCalculationTransformer.cs (2)
218var featureGetter = input.GetGetter<TSrc>(input.Schema[colSrc]); 223return (ValueGetter<VBuffer<float>>)((ref VBuffer<float> dst) =>
Transforms\GenerateNumberTransform.cs (5)
433public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 444var fn = originFn as ValueGetter<TValue>; 451private ValueGetter<long> MakeGetter() 470private ValueGetter<float> MakeGetter(int iinfo)
Transforms\Hashing.cs (23)
350private ValueGetter<uint> ComposeGetterOne(DataViewRow input, int iinfo, int srcCol, DataViewType srcType) 402private ValueGetter<VBuffer<uint>> ComposeGetterVec(DataViewRow input, int iinfo, int srcCol, VectorDataViewType srcType) 449private ValueGetter<VBuffer<uint>> ComposeGetterVecCore<T, THash>(DataViewRow input, int iinfo, int srcCol, VectorDataViewType srcType) 454var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[srcCol]); 464private ValueGetter<uint> ComposeGetterCombined(DataViewRow input, int iinfo, int srcCol, VectorDataViewType srcType) 997private static ValueGetter<uint> MakeScalarHashGetter<T, THash>(DataViewRow input, int srcCol, uint seed, uint mask, bool useOldHashing) 1005var srcGetter = input.GetGetter<T>(input.Schema[srcCol]); 1023private static ValueGetter<VBuffer<uint>> MakeVectorHashGetter<T, THash>(uint seed, uint mask, ValueGetter<VBuffer<T>> srcGetter, bool useOldHashing) 1141private static ValueGetter<VBuffer<uint>> MakeVectorOrderedHashGetter<T, THash>(uint seed, uint mask, ValueGetter<VBuffer<T>> srcGetter, bool useOldHashing) 1279private static ValueGetter<uint> MakeCombinedVectorHashGetter<T, THash>(DataViewRow input, int srcCol, uint seed, uint mask) 1285var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[srcCol]); 1347ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = (ref VBuffer<ReadOnlyMemory<char>> dst) => 1623private readonly ValueGetter<T> _srcGetter; 1624private readonly ValueGetter<uint> _dstGetter; 1633_dstGetter = dstGetter as ValueGetter<uint>; 1657private readonly ValueGetter<VBuffer<T>> _srcGetter; 1658private readonly ValueGetter<VBuffer<uint>> _dstGetter; 1667_dstGetter = dstGetter as ValueGetter<VBuffer<uint>>; 1691private readonly ValueGetter<VBuffer<T>> _srcGetter; 1692private readonly ValueGetter<VBuffer<uint>> _dstGetter; 1701_dstGetter = dstGetter as ValueGetter<VBuffer<uint>>;
Transforms\InvertHashUtils.cs (2)
268public void Add(int dstSlot, ValueGetter<T> getter, ref T key) 302public void Add(uint hash, ValueGetter<T> getter, ref T key)
Transforms\KeyToValue.cs (4)
370ValueGetter<TKey> getSrc = input.GetGetter<TKey>(column); 371ValueGetter<TValue> retVal = 383ValueGetter<VBuffer<TKey>> getSrc = input.GetGetter<VBuffer<TKey>>(column); 384ValueGetter<VBuffer<TValue>> retVal =
Transforms\KeyToVector.cs (10)
326var getter = inputMetadata.GetGetter<VBuffer<ReadOnlyMemory<char>>>(keyValuesColumn.Value); 335ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = (ref VBuffer<ReadOnlyMemory<char>> dst) => 346ValueGetter<VBuffer<int>> getter = (ref VBuffer<int> dst) => 355ValueGetter<bool> getter = (ref bool dst) => 467private ValueGetter<VBuffer<float>> MakeGetterOne(DataViewRow input, int iinfo) 477var getSrc = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, input, srcCol); 500private ValueGetter<VBuffer<float>> MakeGetterBag(DataViewRow input, int iinfo) 518var getSrc = RowCursorUtils.GetVecGetterAs<uint>(NumberDataViewType.UInt32, input, srcCol); 546private ValueGetter<VBuffer<float>> MakeGetterInd(DataViewRow input, int iinfo) 564var getSrc = RowCursorUtils.GetVecGetterAs<uint>(NumberDataViewType.UInt32, input, srcCol);
Transforms\LabelConvertTransform.cs (3)
223public override ValueGetter<VBuffer<TValue>> GetGetter<TValue>() 225ValueGetter<VBuffer<TValue>> getter = _getter as ValueGetter<VBuffer<TValue>>;
Transforms\LabelIndicatorTransform.cs (4)
179private ValueGetter<bool> GetGetter(IChannel ch, DataViewRow input, int iinfo) 191var srcGetter = input.GetGetter<uint>(column); 204var srcGetter = input.GetGetter<float>(column); 216var srcGetter = input.GetGetter<double>(column);
Transforms\NAFilter.cs (10)
318private readonly ValueGetter<T> _getSrc; 322protected TypedValue(Cursor cursor, ValueGetter<T> getSrc, InPredicate<T> hasBad) 340private readonly ValueGetter<T> _getter; 342public ValueOne(Cursor cursor, ValueGetter<T> getSrc, InPredicate<T> hasBad) 362private readonly ValueGetter<VBuffer<T>> _getter; 364public ValueVec(Cursor cursor, ValueGetter<VBuffer<T>> getSrc, InPredicate<VBuffer<T>> hasBad) 402public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 406ValueGetter<TValue> fn; 418private bool TryGetColumnValueGetter<TValue>(int col, out ValueGetter<TValue> fn) 430fn = originFn as ValueGetter<TValue>;
Transforms\NormalizeColumn.cs (10)
724private readonly ValueGetter<TFloat> _getSrc; 726protected OneColumnFunctionBuilderBase(IHost host, long lim, ValueGetter<TFloat> getSrc) 759private readonly ValueGetter<VBuffer<TFloat>> _getSrc; 762protected VecColumnFunctionBuilderBase(IHost host, long lim, ValueGetter<VBuffer<TFloat>> getSrc) 797private readonly ValueGetter<int> _labelGetterSrc; 809private ValueGetter<int> GetLabelGetter(DataViewRow row, int col, out int labelCardinality) 822var getSrc = RowCursorUtils.GetGetterAs<ulong>(NumberDataViewType.UInt64, row, col); 842var getSrc = RowCursorUtils.GetGetterAs<Double>(NumberDataViewType.Double, row, col); 879private readonly ValueGetter<TFloat> _colGetterSrc; 905private readonly ValueGetter<VBuffer<TFloat>> _colValueGetter;
Transforms\NormalizeColumnDbl.cs (33)
709var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 710ValueGetter<TFloat> del = 785var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 787ValueGetter<VBuffer<TFloat>> del; 1029ValueGetter<TFloat> trivial = 1037var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1038ValueGetter<TFloat> del = 1082var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1084ValueGetter<VBuffer<TFloat>> del; 1211var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1212ValueGetter<TFloat> del = 1296var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1298ValueGetter<VBuffer<TFloat>> del = 1526protected MinMaxOneColumnFunctionBuilderBase(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1546private MinMaxOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1552ValueGetter<TFloat> getter) 1574protected MinMaxVecColumnFunctionBuilderBase(IHost host, int cv, long lim, bool fix, ValueGetter<VBuffer<TFloat>> getSrc) 1596ValueGetter<VBuffer<TFloat>> getSrc) 1602ValueGetter<VBuffer<TFloat>> getter) 1654private MeanVarOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc, bool useLog, bool useCdf, bool useSampleVariance) 1666ValueGetter<TFloat> getter) 1673ValueGetter<TFloat> getter) 1736ValueGetter<VBuffer<TFloat>> getSrc, bool useLog, bool useCdf, bool useSampleVariance) 1747ValueGetter<VBuffer<TFloat>> getter) 1755ValueGetter<VBuffer<TFloat>> getter) 1859private BinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, ValueGetter<TFloat> getSrc) 1868ValueGetter<TFloat> getter) 1904ValueGetter<VBuffer<TFloat>> getSrc) 1917ValueGetter<VBuffer<TFloat>> getter) 2061private RobustScalerOneColumnFunctionBuilder(IHost host, long lim, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<double> getSrc) 2085bool centerData, uint quantileMin, uint quantileMax, ValueGetter<double> getter) 2117private RobustScalerVecFunctionBuilder(IHost host, long lim, int vectorSize, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<double>> getSrc) 2154bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<double>> getter)
Transforms\NormalizeColumnSng.cs (33)
867var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 868ValueGetter<TFloat> del = 942var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 944ValueGetter<VBuffer<TFloat>> del; 1189ValueGetter<TFloat> trivial = 1197var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1198ValueGetter<TFloat> del = 1242var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1244ValueGetter<VBuffer<TFloat>> del; 1372var getSrc = input.GetGetter<TFloat>(input.Schema[icol]); 1373ValueGetter<TFloat> del = 1457var getSrc = input.GetGetter<VBuffer<TFloat>>(input.Schema[icol]); 1459ValueGetter<VBuffer<TFloat>> del = 1689protected MinMaxOneColumnFunctionBuilderBase(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1709private MinMaxOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1715ValueGetter<TFloat> getter) 1737protected MinMaxVecColumnFunctionBuilderBase(IHost host, int cv, long lim, bool fix, ValueGetter<VBuffer<TFloat>> getSrc) 1759ValueGetter<VBuffer<TFloat>> getSrc) 1765ValueGetter<VBuffer<TFloat>> getter) 1817private MeanVarOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc, bool useLog, bool useCdf, bool useSampleVariance) 1829ValueGetter<TFloat> getter) 1836ValueGetter<TFloat> getter) 1899ValueGetter<VBuffer<TFloat>> getSrc, bool useLog, bool useCdf, bool useSampleVariance) 1910ValueGetter<VBuffer<TFloat>> getter) 1918ValueGetter<VBuffer<TFloat>> getter) 2022private BinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, ValueGetter<TFloat> getSrc) 2031ValueGetter<TFloat> getter) 2067ValueGetter<VBuffer<TFloat>> getSrc) 2080ValueGetter<VBuffer<TFloat>> getter) 2225private RobustScalerOneColumnFunctionBuilder(IHost host, long lim, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<TFloat> getSrc) 2249bool centerData, uint quantileMin, uint quantileMax, ValueGetter<TFloat> getter) 2281private RobustScalerVecFunctionBuilder(IHost host, long lim, int vectorSize, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<TFloat>> getSrc) 2316bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<TFloat>> getter)
Transforms\Normalizer.cs (1)
746builder.Add(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ValueGetter<bool>)IsNormalizedGetter);
Transforms\PerGroupTransformBase.cs (8)
207protected abstract ValueGetter<TLabel> GetLabelGetter(DataViewRow row); 212protected abstract ValueGetter<TScore> GetScoreGetter(DataViewRow row); 242private readonly ValueGetter<TLabel> _labelGetter; 243private readonly ValueGetter<TScore> _scoreGetter; 291public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 306var fn = getter as ValueGetter<TValue>; 313public override ValueGetter<DataViewRowId> GetIdGetter()
Transforms\RangeFilter.cs (9)
317public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 325var fn = originFn as ValueGetter<TValue>; 350private readonly ValueGetter<Single> _srcGetter; 351private readonly ValueGetter<Single> _getter; 383private readonly ValueGetter<Double> _srcGetter; 384private readonly ValueGetter<Double> _getter; 416private readonly ValueGetter<T> _srcGetter; 417private readonly ValueGetter<T> _getter;
Transforms\RowShufflingTransformer.cs (10)
427private readonly ValueGetter<T> _getter; 433Contracts.Assert(getter is ValueGetter<T>); 434_getter = (ValueGetter<T>)getter; 477private readonly ValueGetter<DataViewRowId> _idGetter; 561public override ValueGetter<DataViewRowId> GetIdGetter() 691private ValueGetter<TValue> CreateGetterDelegate<TValue>(ShufflePipe pipe) 696ValueGetter<TValue> getter = 712public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 718ValueGetter<TValue> getter = originGetter as ValueGetter<TValue>;
Transforms\SkipTakeFilter.cs (1)
248public override ValueGetter<DataViewRowId> GetIdGetter()
Transforms\SlotsDroppingTransformer.cs (7)
748private ValueGetter<TDst> MakeOneTrivialGetter<TDst>() 769private ValueGetter<VBuffer<TDst>> MakeVecTrivialGetter<TDst>() 790private ValueGetter<VBuffer<TDst>> MakeVecGetter<TDst>(DataViewRow input, int iinfo) 792var srcGetter = GetSrcGetter<VBuffer<TDst>>(input, iinfo); 807private ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo) 846ValueGetter<VBuffer<ReadOnlyMemory<char>>> slotNamesGetter = (ref VBuffer<ReadOnlyMemory<char>> dst) => GetSlotNames(iinfo, ref dst); 863ValueGetter<VBuffer<int>> categoricalSlotRangesGetter = (ref VBuffer<int> dest) => GetCategoricalSlotRanges(iinfo, ref dest);
Transforms\TransformBase.cs (7)
225public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 234var fn = originFn as ValueGetter<TValue>; 694protected ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo) 897public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 908var fn = originFn as ValueGetter<TValue>;
Transforms\TypeConverting.cs (1)
459ValueGetter<bool> getter = (ref bool dst) => dst = true;
Transforms\ValueMapping.cs (11)
211private static ValueGetter<VBuffer<ReadOnlyMemory<char>>> GetKeyValueGetter<TKey>(TKey[] keys) 484var getKey = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[keyIdx]); 485var getValue = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[valueIdx]); 568var getKey = cursor.GetGetter<TKey>(keyColumn); 569var getValue = cursor.GetGetter<TValue>(valueColumn); 881var keyGetter = cursor.GetGetter<TKey>(KeyColumn); 882var valueGetter = cursor.GetGetter<TValue>(ValueColumn); 915var getSrc = input.GetGetter<VBuffer<TKey>>(column); 917ValueGetter<VBuffer<TValue>> retVal = 935var getSrc = input.GetGetter<TKey>(column); 936ValueGetter<TValue> retVal =
Transforms\ValueToKeyMappingTransformerImpl.cs (15)
308ValueGetter<T> inputGetter; 324var inputGetter = row.GetGetter<VBuffer<T>>(row.Schema[col]); 347private readonly ValueGetter<T> _getter; 351public ImplOne(ValueGetter<T> getter, int max, Builder<T> bldr) 372private readonly ValueGetter<VBuffer<T>> _getter; 377public ImplVec(ValueGetter<VBuffer<T>> getter, int max, Builder<T> bldr) 913var getSrc = input.GetGetter<T>(inputColumn); 914ValueGetter<uint> retVal = 934var getSrc = input.GetGetter<VBuffer<T>>(inputColumn); 936ValueGetter<VBuffer<uint>> retVal; 1052ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = 1064ValueGetter<VBuffer<T>> getter = 1123ValueGetter<VBuffer<TMeta>> getter = 1149ValueGetter<VBuffer<ReadOnlyMemory<char>>> mgetter = 1162ValueGetter<VBuffer<TMeta>> mgetter =
Utilities\ColumnCursor.cs (4)
106var getter = cursor.GetGetter<T>(column); 124var getter = cursor.GetGetter<TData>(column); 142var getter = cursor.GetGetter<VBuffer<T>>(column); 164var getter = cursor.GetGetter<VBuffer<TData>>(column);
Utilities\ModelFileUtils.cs (2)
303var roleGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[0]); 304var colGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[1]);
Utilities\SlotDropper.cs (2)
88public ValueGetter<VBuffer<T>> SubsetGetter<T>(ValueGetter<VBuffer<T>> getter)
Microsoft.ML.DataView (11)
DataViewSchema.cs (9)
213var typedGetter = getter as ValueGetter<TValue>; 221public ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 225var typedGetter = _getters[column.Index] as ValueGetter<TValue>; 295public void Add<TValue>(string name, DataViewType type, ValueGetter<TValue> getter, Annotations annotations = null) 367var typedGetter = getter as ValueGetter<TValue>; 369throw new ArgumentException($"{nameof(getter)} must be of type '{typeof(ValueGetter<TValue>).FullName}'", nameof(getter));
IDataView.cs (2)
140public abstract ValueGetter<DataViewRowId> GetIdGetter(); 154public abstract ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column);
Microsoft.ML.Ensemble (9)
PipelineEnsemble.cs (9)
134var getters = new ValueGetter<T>[Mappers.Length]; 152ValueGetter<T> scoreGetter = 162public ValueGetter<Single> GetLabelGetter(DataViewRow input, int i, out Action disposer) 174public ValueGetter<Single> GetWeightGetter(DataViewRow input, int i, out Action disposer) 180ValueGetter<Single> weight = (ref float dst) => dst = 1; 333var scoreGetter = (ValueGetter<Single>)bound.CreateScoreGetter(curs, out Action disposer); 337var labelGetter = bound.GetLabelGetter(curs, 0, out Action disp); 339var weightGetter = bound.GetWeightGetter(curs, 0, out disp);
Microsoft.ML.FastTree (14)
FastTree.cs (7)
1398var getter = SubsetGetter(cursor.GetGetter<float>(), slotDropper); 1465var getter = SubsetGetter(cursor.GetGetter<float>(), slotDropper); 1466var catGetter = SubsetGetter(catCursor.GetGetter<float>(), slotDropper); 1641private void GetFeatureValues(SlotCursor cursor, int iFeature, ValueGetter<VBuffer<float>> getter, 1659private static ValueGetter<VBuffer<T>> SubsetGetter<T>(ValueGetter<VBuffer<T>> getter, SlotDropper slotDropper) 1672ValueGetter<VBuffer<float>> getter, ref VBuffer<float> temp)
TreeEnsembleFeaturizer.cs (7)
140(ValueGetter<VBuffer<ReadOnlyMemory<char>>>)owner.GetTreeSlotNames); 152(ValueGetter<VBuffer<ReadOnlyMemory<char>>>)owner.GetLeafSlotNames); 165(ValueGetter<VBuffer<ReadOnlyMemory<char>>>)owner.GetPathSlotNames); 194ValueGetter<VBuffer<float>> fn = state.GetTreeValues; 204ValueGetter<VBuffer<float>> fn = state.GetLeafIds; 214ValueGetter<VBuffer<float>> fn = state.GetPathIds; 233private readonly ValueGetter<VBuffer<float>> _featureGetter;
Microsoft.ML.ImageAnalytics (11)
ImageGrayscale.cs (2)
168var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]); 180ValueGetter<MLImage> del =
ImageLoader.cs (4)
231var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 233ValueGetter<MLImage> del = 269var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 271ValueGetter<VBuffer<byte>> del =
ImagePixelExtractor.cs (2)
305private ValueGetter<VBuffer<TValue>> GetGetterCore<TValue>(DataViewRow input, int iinfo, out Action disposer) 323var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]);
ImageResizer.cs (2)
278var getSrc = input.GetGetter<MLImage>(input.Schema[ColMapNewToOld[iinfo]]); 290ValueGetter<MLImage> del =
VectorToImageTransform.cs (1)
344private ValueGetter<MLImage> GetterFromType<TValue>(PrimitiveDataViewType srcType, DataViewRow input, int iinfo,
Microsoft.ML.Mkl.Components (4)
VectorWhitening.cs (4)
337var getters = new ValueGetter<VBuffer<float>>[columns.Length]; 605var getSrc = GetSrcGetter<VBuffer<float>>(input, iinfo); 613ValueGetter<VBuffer<float>> del = 671private ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo)
Microsoft.ML.OnnxTransformer (6)
OnnxTransform.cs (6)
595ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = (ref VBuffer<ReadOnlyMemory<char>> dst) => 713ValueGetter<VBuffer<T>> valueGetter = (ref VBuffer<T> dst) => 733ValueGetter<VBuffer<ReadOnlyMemory<char>>> valueGetter = (ref VBuffer<ReadOnlyMemory<char>> dst) => 757ValueGetter<T> valueGetter = (ref T dst) => 847private readonly ValueGetter<T> _srcGetter; 867private readonly ValueGetter<VBuffer<T>> _srcGetter;
Microsoft.ML.OnnxTransformerTest (13)
DnnImageFeaturizerTest.cs (2)
120var getter = cursor.GetGetter<VBuffer<float>>(result.Schema["output_1"]); 166var softMaxGetter = cursor.GetGetter<VBuffer<float>>(loadedView.Schema[outputNames]);
OnnxTransformTests.cs (11)
211var softMaxGetter = cursor.GetGetter<VBuffer<float>>(sofMaxOut1Col); 275var getter = cursor.GetGetter<VBuffer<float>>(softmaxOutCol); 326var getter = cursor.GetGetter<VBuffer<float>>(softmaxOutCol); 376var getScores = curs.GetGetter<VBuffer<float>>(scoreCol); 444var getScoresa = curs.GetGetter<VBuffer<float>>(outaCol); 445var getScoresb = curs.GetGetter<VBuffer<float>>(outbCol); 484var getScoresa = curs.GetGetter<VBuffer<float>>(outaCol); 485var getScoresb = curs.GetGetter<VBuffer<float>>(outbCol); 509var getScoresb = curs.GetGetter<VBuffer<float>>(outbCol); 703var getMapSequence = curs.GetGetter<IEnumerable<IDictionary<long, float>>>(outputColumn); 756var getMapSequence = curs.GetGetter<IEnumerable<IDictionary<string, float>>>(outputColumn);
Microsoft.ML.Parquet (15)
ParquetLoader.cs (5)
537private ValueGetter<TValue> CreateGetterDelegateCore<TSource, TValue>(int col, ValueMapper<TSource, TValue> valueConverter) 598public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 603var getter = originGetter as ValueGetter<TValue>; 611public override ValueGetter<DataViewRowId> GetIdGetter()
PartitionedFileLoader.cs (10)
420public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 425var getter = originGetter as ValueGetter<TValue>; 433public override ValueGetter<DataViewRowId> GetIdGetter() 607private ValueGetter<TValue> SubGetterDelegateCore<TValue>(int col) 614ValueGetter<TValue> getter = _subGetters[col] as ValueGetter<TValue>; 624private ValueGetter<TValue> GetterDelegateCore<TValue>(int col, DataViewType type) 681private Delegate MarshalGetter(Func<DataViewSchema.Column, ValueGetter<DataViewSchema.Column>> func, Type type, DataViewSchema.Column column) 683var returnType = typeof(ValueGetter<>).MakeGenericType(type);
Microsoft.ML.PCA (4)
PcaTransformer.cs (4)
419var weightGetters = new ValueGetter<float>[_numColumns]; 420var columnGetters = new ValueGetter<VBuffer<float>>[_numColumns]; 575var srcGetter = input.GetGetter<VBuffer<float>>(input.Schema[ColMapNewToOld[iinfo]]); 578ValueGetter<VBuffer<float>> dstGetter = (ref VBuffer<float> dst) =>
Microsoft.ML.PerformanceTests (12)
CacheDataViewBench.cs (3)
20private ValueGetter<int> _seekerGetter; 21private ValueGetter<int> _cursorGetter; 43var getter = cursor.GetGetter<int>(col);
HashBench.cs (8)
25public override ValueGetter<DataViewRowId> GetIdGetter() 47public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 51if (_getter is ValueGetter<TValue> typedGetter) 56public static RowImpl Create<T>(DataViewType type, ValueGetter<T> getter) 77private ValueGetter<uint> _getter; 78private ValueGetter<VBuffer<uint>> _vecGetter; 80private void InitMapMurmurHashV2<T>(T val, DataViewType type, int numberOfBits = 20, ValueGetter<T> getter = null) 97private void InitMapMurmurHashV1<T>(T val, DataViewType type, ValueGetter<T> getter = null)
TextLoaderBench.cs (1)
60var getters = new List<ValueGetter<ReadOnlyMemory<char>>>();
Microsoft.ML.Predictor.Tests (17)
TestPredictors.cs (14)
709var scoreGetter = curs.GetGetter<float>(scoreColumn.Value); 710var probGetter = curs.GetGetter<float>(probabilityColumn.Value); 711var predGetter = curs.GetGetter<bool>(predictedLabelColumn.Value); 712var scoreGetters = new ValueGetter<float>[predCount]; 713var probGetters = new ValueGetter<float>[predCount]; 714var predGetters = new ValueGetter<bool>[predCount]; 890var scoreGetter = predictionKind == PredictionKind.MulticlassClassification ? 893var vectorScoreGetter = predictionKind == PredictionKind.MulticlassClassification ? 896var probGetter = predictionKind == PredictionKind.BinaryClassification ? 899var predGetter = predictionKind == PredictionKind.BinaryClassification ? 903var scoreGetters = new ValueGetter<float>[predCount]; 904var vectorScoreGetters = new ValueGetter<VBuffer<float>>[predCount]; 905var probGetters = new ValueGetter<float>[predCount]; 906var predGetters = new ValueGetter<bool>[predCount];
TestTransposer.cs (3)
38var getter = cursor.GetGetter<VBuffer<T>>(cursor.Schema[col]); 54var getter = cursor.GetGetter<T>(cursor.Schema[col]); 88var getter = cursor.GetGetter<T>();
Microsoft.ML.Recommender (24)
MatrixFactorizationPredictor.cs (6)
216private ValueGetter<float> GetGetter(ValueGetter<uint> matrixColumnIndexGetter, ValueGetter<uint> matrixRowIndexGetter) 225ValueGetter<float> del = 402var matrixColumnIndexGetter = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, input, _matrixColumnIndexColumnIndex); 403var matrixRowIndexGetter = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, input, _matrixRowIndexCololumnIndex);
MatrixFactorizationTrainer.cs (6)
477var labGetter = RowCursorUtils.GetGetterAs<float>(NumberDataViewType.Single, cursor, data.Schema.Label.Value.Index); 478var matrixColumnIndexGetter = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, cursor, matrixColumnIndexColInfo.Index); 479var matrixRowIndexGetter = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, cursor, matrixRowIndexColInfo.Index); 495ValueGetter<float> validLabelGetter = RowCursorUtils.GetGetterAs<float>(NumberDataViewType.Single, validCursor, validData.Schema.Label.Value.Index); 496var validMatrixColumnIndexGetter = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, validCursor, validMatrixColumnIndexColInfo.Index); 497var validMatrixRowIndexGetter = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, validCursor, validMatrixRowIndexColInfo.Index);
SafeTrainingAndModelBuffer.cs (12)
258private MFNode[] ConstructLabeledNodesFrom(IChannel ch, DataViewRowCursor cursor, ValueGetter<float> labGetter, 259ValueGetter<uint> rowGetter, ValueGetter<uint> colGetter, 315DataViewRowCursor cursor, ValueGetter<float> labGetter, 316ValueGetter<uint> rowGetter, ValueGetter<uint> colGetter) 345DataViewRowCursor cursor, ValueGetter<float> labGetter, 346ValueGetter<uint> rowGetter, ValueGetter<uint> colGetter, 347DataViewRowCursor validCursor, ValueGetter<float> validLabGetter, 348ValueGetter<uint> validRowGetter, ValueGetter<uint> validColGetter)
Microsoft.ML.Samples (31)
Dynamic\DataOperations\LoadingSvmLight.cs (3)
92var labelGetter = cursor.GetGetter<float>(svmData.Schema["Label"]); 93var weightGetter = cursor.GetGetter<float>(svmData.Schema["Weight"]); 94var featuresGetter = cursor.GetGetter<VBuffer<float>>(svmData.Schema["Features"]);
Dynamic\SimpleDataViewImplementation.cs (9)
52var textGetter = cursor 55var tokensGetter = cursor 215/// <see cref="ValueGetter{TValue}"/> implementations. This is most 235/// beneficial: the <see cref="ValueGetter{TValue}"/> implementations 263(ValueGetter<bool>)LabelGetterImplementation : null, 266(ValueGetter<ReadOnlyMemory<char>>) 296public override ValueGetter<TValue> GetGetter<TValue>( 302return (ValueGetter<TValue>)_getters[column.Index]; 305public override ValueGetter<DataViewRowId> GetIdGetter()
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (4)
76var imagePathGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 79var nameGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 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)
85var imagePathGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 88var nameGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 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)
74var imagePathGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 77var nameGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 80var imageObjectGetter = cursor.GetGetter<MLImage>(cursor.Schema[
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (4)
78var imagePathGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 81var nameGetter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor 84var imageObjectGetter = cursor.GetGetter<MLImage>(cursor.Schema[ 87var resizedImageGetter = cursor.GetGetter<MLImage>(cursor.Schema[
Microsoft.ML.StandardTrainers (11)
FactorizationMachine\FactorizationMachineTrainer.cs (2)
363var getters = new ValueGetter<VBuffer<float>>[featureColumns.Count]; 457var featureGetters = new ValueGetter<VBuffer<float>>[fieldCount];
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
227internal float CalculateResponse(ValueGetter<VBuffer<float>>[] getters, VBuffer<float> featureBuffer,
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (4)
26internal static bool LoadOneExampleIntoBuffer(ValueGetter<VBuffer<float>>[] getters, VBuffer<float> featureBuffer, bool norm, ref int count, 106var inputGetters = new ValueGetter<VBuffer<float>>[_pred.FieldCount]; 121ValueGetter<float> responseGetter = (ref float value) => 129ValueGetter<float> probGetter = (ref float value) =>
LdSvm\LdSvmTrainer.cs (1)
638ValueGetter<LabelFeatures> getter =
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
1098ValueGetter<VBuffer<ReadOnlyMemory<char>>> getSlotNames =
Standard\ModelStatistics.cs (2)
358ref VBuffer<float> estimate, ref VBuffer<float> stdErr, ref VBuffer<float> zScore, ref VBuffer<float> pValue, out ValueGetter<VBuffer<ReadOnlyMemory<char>>> getSlotNames) 575ValueGetter<VBuffer<ReadOnlyMemory<char>>> getSlotNames;
Microsoft.ML.TensorFlow (5)
TensorflowTransform.cs (5)
706ValueGetter<T> valuegetter = (ref T dst) => 718ValueGetter<VBuffer<T>> valuegetter = (ref VBuffer<T> dst) => 733ValueGetter<VBuffer<T>> valuegetter = (ref VBuffer<T> dst) => 822private readonly ValueGetter<T> _srcgetter; 866private readonly ValueGetter<VBuffer<T>> _srcgetter;
Microsoft.ML.TensorFlow.Tests (11)
TensorFlowEstimatorTests.cs (2)
175var getter = cursor.GetGetter<VBuffer<float>>(result.Schema["Output"]); 268var getter = cursor.GetGetter<VBuffer<float>>(result.Schema["Output"]);
TensorflowTests.cs (9)
515var getInput = curs.GetGetter<VBuffer<byte>>(tf.Schema["image_tensor"]); 516var getBoxes = curs.GetGetter<VBuffer<float>>(tf.Schema["detection_boxes"]); 517var getScores = curs.GetGetter<VBuffer<float>>(tf.Schema["detection_scores"]); 518var getNum = curs.GetGetter<VBuffer<float>>(tf.Schema["num_detections"]); 519var getClasses = curs.GetGetter<VBuffer<float>>(tf.Schema["detection_classes"]); 563var get = curs.GetGetter<VBuffer<float>>(tf.Schema["softmax2_pre_activation"]); 564var getInput = curs.GetGetter<VBuffer<float>>(tf.Schema["input"]); 1036var getter = 1038var getter2 =
Microsoft.ML.TestFramework (23)
BaseTestBaseline.cs (4)
738ValueGetter<T> expectedScalarGetter = default; 739ValueGetter<VBuffer<T>> expectedVectorGetter = default; 741ValueGetter<T> actualScalarGetter = default; 742ValueGetter<VBuffer<T>> actualVectorGetter = default;
DataPipe\TestDataPipe.cs (6)
219var getters = new ValueGetter<VBuffer<float>>[cols.Length]; 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]); 1511var getter = cursor.GetGetter<VBuffer<float>>(loader.Schema["DT"]); 1512var getter1 = cursor.GetGetter<VBuffer<float>>(loader.Schema["DT1"]);
DataPipe\TestDataPipeBase.cs (13)
725ValueGetter<DataViewRowId> idGetter = null; 813ValueGetter<DataViewRowId> idGetter; 865protected Func<bool> GetIdComparer(DataViewRow r1, DataViewRow r2, out ValueGetter<DataViewRowId> idGetter) 867var g1 = r1.GetIdGetter(); 869var g2 = r2.GetIdGetter(); 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]); 1033protected void VerifyOneEquality<T>(ValueGetter<T> oneGetter, ValueGetter<T> oneNGetter) 1044protected void VerifyVecEquality<T>(ValueGetter<VBuffer<T>> vecGetter, ValueGetter<VBuffer<T>> vecNGetter, Func<int, T, T, bool> compare, int size)
Microsoft.ML.Tests (50)
SvmLightTests.cs (8)
241var featuresGetter = curs.GetGetter<VBuffer<float>>(view.Schema["Features"]); 261var getter = curs.GetGetter<float>(data.Schema["Label"]); 280var getter = curs.GetGetter<ulong>(data.Schema["GroupId"]); 328var getter = curs.GetGetter<VBuffer<float>>(data.Schema["Features"]); 354var getter = curs.GetGetter<VBuffer<float>>(data.Schema["Features"]); 373var getter = curs.GetGetter<VBuffer<float>>(data.Schema["Features"]); 392var getter = curs.GetGetter<VBuffer<float>>(data.Schema["Features"]); 423var getter = curs.GetGetter<VBuffer<float>>(data.Schema["Features"]);
TextLoaderTests.cs (34)
439var getters = new ValueGetter<float>[]{ 909ValueGetter<UInt32> labelDelegatePeriod = cursorPeriod.GetGetter<UInt32>(columnsPeriod[0]); 911ValueGetter<VBuffer<T>> featuresDelegatePeriod = cursorPeriod.GetGetter<VBuffer<T>>(columnsPeriod[1]); 959ValueGetter<UInt32> labelDelegateComma = cursorComma.GetGetter<UInt32>(columnsComma[0]); 961ValueGetter<VBuffer<T>> featuresDelegateComma = cursorComma.GetGetter<VBuffer<T>>(columnsComma[1]); 1014ValueGetter<VBuffer<Single>> featuresDelegatePeriod = cursor.GetGetter<VBuffer<Single>>(columns[1]); 1082var delegatePeriod = cursorPeriod.GetGetter<VBuffer<Single>>(dataViewPeriod.Schema["Features"]); 1083var delegateComma = cursorComma.GetGetter<VBuffer<Single>>(dataViewPeriod.Schema["Features"]); 1499var delegateBaselineId = cursorBaseline.GetGetter<Int32>(baselineDV.Schema["id"]); 1500var delegateBaselineDescription = cursorBaseline.GetGetter<ReadOnlyMemory<char>>(baselineDV.Schema["description"]); 1501var delegateBaselineDate = cursorBaseline.GetGetter<DateTime>(baselineDV.Schema["date"]); 1502var delegateBaselineSing1 = cursorBaseline.GetGetter<Single>(baselineDV.Schema["sing1"]); 1503var delegateBaselineSing2 = cursorBaseline.GetGetter<Single>(baselineDV.Schema["sing2"]); 1504var delegateBaselineSing3 = cursorBaseline.GetGetter<Single>(baselineDV.Schema["sing3"]); 1505var delegateBaselineSing4 = cursorBaseline.GetGetter<Single>(baselineDV.Schema["sing4"]); 1506var delegateBaselineDoub1 = cursorBaseline.GetGetter<Double>(baselineDV.Schema["doub1"]); 1507var delegateBaselineDoub2 = cursorBaseline.GetGetter<Double>(baselineDV.Schema["doub2"]); 1508var delegateBaselineDoub3 = cursorBaseline.GetGetter<Double>(baselineDV.Schema["doub3"]); 1509var delegateBaselineDoub4 = cursorBaseline.GetGetter<Double>(baselineDV.Schema["doub4"]); 1511var delegateTestId = cursorTest.GetGetter<Int32>(testDV.Schema["id"]); 1512var delegateTestDescription = cursorTest.GetGetter<ReadOnlyMemory<char>>(testDV.Schema["description"]); 1513var delegateTestDate = cursorTest.GetGetter<DateTime>(testDV.Schema["date"]); 1514var delegateTestSing1 = cursorTest.GetGetter<Single>(testDV.Schema["sing1"]); 1515var delegateTestSing2 = cursorTest.GetGetter<Single>(testDV.Schema["sing2"]); 1516var delegateTestSing3 = cursorTest.GetGetter<Single>(testDV.Schema["sing3"]); 1517var delegateTestSing4 = cursorTest.GetGetter<Single>(testDV.Schema["sing4"]); 1518var delegateTestSingFt1 = cursorTest.GetGetter<VBuffer<Single>>(testDV.Schema["singFt1"]); 1519var delegateTestSingFt2 = cursorTest.GetGetter<VBuffer<Single>>(testDV.Schema["singFt2"]); 1520var delegateTestDoub1 = cursorTest.GetGetter<Double>(testDV.Schema["doub1"]); 1521var delegateTestDoub2 = cursorTest.GetGetter<Double>(testDV.Schema["doub2"]); 1522var delegateTestDoub3 = cursorTest.GetGetter<Double>(testDV.Schema["doub3"]); 1523var delegateTestDoub4 = cursorTest.GetGetter<Double>(testDV.Schema["doub4"]); 1524var delegateTestDoubFt1 = cursorTest.GetGetter<VBuffer<Double>>(testDV.Schema["doubFt1"]); 1525var delegateTestDoubFt2 = cursorTest.GetGetter<VBuffer<Double>>(testDV.Schema["doubFt2"]);
Transformers\CountTargetEncodingTests.cs (2)
132var getters = new ValueGetter<VBuffer<float>>[countCols.Length]; 133var getters1 = new ValueGetter<VBuffer<float>>[countCols.Length];
Transformers\HashTests.cs (3)
138ValueGetter<TType> hashGetter<TType>(HashingEstimator.ColumnOptions colInfo) 150var getter = hashGetter<uint>(info); 170var vecGetter = hashGetter<VBuffer<uint>>(info);
Transformers\TextFeaturizerTests.cs (2)
122var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema["Features"]); 164var featureGetter = cursor.GetGetter<VBuffer<float>>(cursor.Schema["Features"]);
Transformers\ValueMappingTests.cs (1)
574var allowedKeyValueGetter = annotations.GetGetter<VBuffer<ReadOnlyMemory<char>>>(annotations.Schema["KeyValues"]);
Microsoft.ML.TimeSeries (29)
SeasonalityDetector.cs (1)
67var valueDelegate = rowCursor.GetGetter<double>(column.Value);
SequentialAnomalyDetectionTransformBase.cs (3)
367var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]); 371ValueGetter<VBuffer<double>> valueGetter = (ref VBuffer<double> dst) => 393var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]);
SequentialForecastingTransformBase.cs (6)
163ValueGetter<VBuffer<float>> valueGetter = (ref VBuffer<float> dst) => 175ValueGetter<VBuffer<float>> valueGetter = (ref VBuffer<float> dst) => 185ValueGetter<VBuffer<float>> valueGetter = (ref VBuffer<float> dst) => 201var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]); 205ValueGetter<VBuffer<float>> valueGetter = (ref VBuffer<float> dst) => 234var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]);
SequentialTransformBase.cs (1)
425public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
SequentialTransformerBase.cs (11)
657public override ValueGetter<DataViewRowId> GetIdGetter() 660public override ValueGetter<T> GetGetter<T>(DataViewSchema.Column column) 668var fn = _getters[index] as ValueGetter<T>; 720public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 983public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 992var fn = originFn as ValueGetter<TValue>; 1002public override ValueGetter<DataViewRowId> GetIdGetter() => _input.GetIdGetter(); 1052public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 1064if (getter is ValueGetter<TValue> fn)
SrCnnEntireAnomalyDetector.cs (4)
244protected override ValueGetter<double> GetLookAheadGetter(DataViewRowCursor input) 337public ValueGetter<VBuffer<double>> CreateGetter(DataViewRowCursor input, string inputCol) 339ValueGetter<double> srcGetter = input.GetGetter<double>(input.Schema[inputCol]); 340ValueGetter<VBuffer<double>> getter =
SrCnnTransformBase.cs (3)
210var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]); 214ValueGetter<VBuffer<double>> valueGetter = (ref VBuffer<double> dst) => 236var srcGetter = input.GetGetter<TInput>(input.Schema[_inputColumnIndex]);
Microsoft.ML.TorchSharp (75)
AutoFormerV2\ObjectDetectionMetrics.cs (5)
302var predLabGet = cursor.GetGetter<VBuffer<ReadOnlyMemory<char>>>(predictedLabelCol); 303var scoreGet = cursor.GetGetter<VBuffer<float>>(scoreCol); 304var boxGet = cursor.GetGetter<VBuffer<float>>(predictedBoundingBoxColumn); 347var predLabGet = cursor.GetGetter<VBuffer<ReadOnlyMemory<char>>>(labelCol); 348var boxGet = cursor.GetGetter<VBuffer<float>>(actualBoundingBoxColumn);
AutoFormerV2\ObjectDetectionTrainer.cs (20)
290var boundingBoxGetter = cursor.GetGetter<VBuffer<float>>(input.Schema[Parent.Option.BoundingBoxColumnName]); 291var imageGetter = cursor.GetGetter<MLImage>(input.Schema[Parent.Option.ImageColumnName]); 292var labelGetter = cursor.GetGetter<VBuffer<uint>>(input.Schema[Parent.Option.LabelColumnName]); 321ValueGetter<VBuffer<float>> boundingBoxGetter, 322ValueGetter<MLImage> imageGetter, 323ValueGetter<VBuffer<uint>> labelGetter, 364private (Tensor image, Tensor Label) PrepareData(ValueGetter<VBuffer<uint>> labelGetter, ValueGetter<MLImage> imageGetter, ValueGetter<VBuffer<float>> boundingBoxGetter) 636ValueGetter<VBuffer<T>> getter = LabelColumn.Annotations.GetGetter<VBuffer<T>>(LabelColumn.Annotations.Schema[AnnotationUtils.Kinds.KeyValues]); 717ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst); 781private ValueGetter<uint> GetScoreColumnSetId(DataViewSchema schema) 806ValueGetter<MLImage> getImage = default; 812ValueGetter<VBuffer<float>> score = (ref VBuffer<float> dst) => 830ValueGetter<MLImage> getImage = default; 836ValueGetter<VBuffer<UInt32>> predictedLabel = (ref VBuffer<UInt32> dst) => 854ValueGetter<MLImage> getImage = default; 860ValueGetter<VBuffer<float>> score = (ref VBuffer<float> dst) => 900private Tensor PrepInputTensors(ref MLImage image, ValueGetter<MLImage> imageGetter) 963private protected void UpdateCacheIfNeeded(long position, TensorCacher outputCache, ref MLImage image, ref ValueGetter<MLImage> getImage)
NasBert\NasBertTrainer.cs (6)
182private protected ValueGetter<ReadOnlyMemory<char>> Sentence1Getter; 183private protected ValueGetter<ReadOnlyMemory<char>> Sentence2Getter; 582private IList<int> PrepInputTokens(ref ReadOnlyMemory<char> sentence1, ref ReadOnlyMemory<char> sentence2, ref ValueGetter<ReadOnlyMemory<char>> getSentence1, ref ValueGetter<ReadOnlyMemory<char>> getSentence2, Tokenizer tokenizer) 612private protected void UpdateCacheIfNeeded(long position, TensorCacher outputCache, ref ReadOnlyMemory<char> sentence1, ref ReadOnlyMemory<char> sentence2, ref ValueGetter<ReadOnlyMemory<char>> getSentence1, ref ValueGetter<ReadOnlyMemory<char>> getSentence2, Tokenizer tokenizer)
NasBert\NerTrainer.cs (5)
287ValueGetter<VBuffer<T>> getter = LabelColumn.Annotations.GetGetter<VBuffer<T>>(LabelColumn.Annotations.Schema[AnnotationUtils.Kinds.KeyValues]); 360ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst); 414ValueGetter<ReadOnlyMemory<char>> getSentence1 = default; 415ValueGetter<ReadOnlyMemory<char>> getSentence2 = default; 424ValueGetter<VBuffer<UInt32>> classification = (ref VBuffer<UInt32> dst) =>
NasBert\SentenceSimilarityTrainer.cs (3)
271ValueGetter<ReadOnlyMemory<char>> getSentence1 = default; 272ValueGetter<ReadOnlyMemory<char>> getSentence2 = default; 283ValueGetter<float> score = (ref float dst) =>
NasBert\TextClassificationTrainer.cs (8)
223ValueGetter<VBuffer<T>> getter = LabelColumn.Annotations.GetGetter<VBuffer<T>>(LabelColumn.Annotations.Schema[AnnotationUtils.Kinds.KeyValues]); 296ValueGetter<VBuffer<T>> buffGetter = (ref VBuffer<T> dst) => buffValue.CopyTo(ref dst); 317ValueGetter<ReadOnlyMemory<char>> getSentence1 = default; 318ValueGetter<ReadOnlyMemory<char>> getSentence2 = default; 329ValueGetter<VBuffer<float>> score = (ref VBuffer<float> dst) => 348ValueGetter<ReadOnlyMemory<char>> getSentence1 = default; 349ValueGetter<ReadOnlyMemory<char>> getSentence2 = default; 360ValueGetter<UInt32> classification = (ref UInt32 dst) =>
Roberta\QATrainer.cs (23)
274var contextGetter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.Option.ContextColumnName]); 275var questionGetter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.Option.QuestionColumnName]); 276var answerGetter = cursor.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.Option.TrainingAnswerColumnName]); 277var answerIndexGetter = cursor.GetGetter<int>(input.Schema[Parent.Option.AnswerIndexStartColumnName]); 304ValueGetter<ReadOnlyMemory<char>> contextGetter, 305ValueGetter<ReadOnlyMemory<char>> questionGetter, 306ValueGetter<ReadOnlyMemory<char>> answerGetter, 307ValueGetter<int> answerIndexGetter, 389private (Tensor image, Tensor Label, bool hasMapping) PrepareData(ValueGetter<ReadOnlyMemory<char>> contextGetter, ValueGetter<ReadOnlyMemory<char>> questionGetter, ValueGetter<ReadOnlyMemory<char>> answerGetter, ValueGetter<int> answerIndexGetter) 752private ValueGetter<uint> GetScoreColumnSetId(DataViewSchema schema) 775ValueGetter<ReadOnlyMemory<char>> getContext = default; 776ValueGetter<ReadOnlyMemory<char>> getQuestion = default; 784ValueGetter<VBuffer<float>> score = (ref VBuffer<float> dst) => 802ValueGetter<ReadOnlyMemory<char>> getContext = default; 803ValueGetter<ReadOnlyMemory<char>> getQuestion = default; 811ValueGetter<VBuffer<ReadOnlyMemory<char>>> predictedAnswer = (ref VBuffer<ReadOnlyMemory<char>> dst) => 851private Tensor PrepInputTensors(ref ReadOnlyMemory<char> context, ref ReadOnlyMemory<char> question, ValueGetter<ReadOnlyMemory<char>> contextGetter, ValueGetter<ReadOnlyMemory<char>> questionGetter, out int contextLength, out int questionLength, out int[] contextIds) 909private protected void UpdateCacheIfNeeded(long position, TensorCacher outputCache, ref ReadOnlyMemory<char> context, ref ReadOnlyMemory<char> question, ref ValueGetter<ReadOnlyMemory<char>> getContext, ref ValueGetter<ReadOnlyMemory<char>> getQuestion)
TorchSharpBaseTrainer.cs (5)
203var labelGetter = cursor.GetGetter<TLabelCol>(validationSet.Schema[Parent.Option.LabelColumnName]); 226ValueGetter<TLabelCol> labelGetter, 275var labelGetter = cursor.GetGetter<TLabelCol>(input.Schema[Parent.Option.LabelColumnName]); 301ValueGetter<TLabelCol> labelGetter, 476private protected ValueGetter<uint> GetScoreColumnSetId(DataViewSchema schema)
Microsoft.ML.TorchSharp.Tests (5)
QATests.cs (5)
93var answerGetter = cursor.GetGetter<VBuffer<ReadOnlyMemory<char>>>(transformedData.Schema["Answer"]); 94var contextGetter = cursor.GetGetter<ReadOnlyMemory<char>>(transformedData.Schema["Context"]); 95var questionGetter = cursor.GetGetter<ReadOnlyMemory<char>>(transformedData.Schema["Question"]); 96var trainingAnswerGetter = cursor.GetGetter<ReadOnlyMemory<char>>(transformedData.Schema["TrainingAnswer"]); 97var scoreGetter = cursor.GetGetter<VBuffer<float>>(transformedData.Schema["Score"]);
Microsoft.ML.Transforms (182)
CountFeatureSelection.cs (2)
390public CountAggregator(DataViewType type, ValueGetter<T> getter) 407public CountAggregator(VectorDataViewType type, ValueGetter<VBuffer<T>> getter)
CustomMappingTransformer.cs (2)
168var getter = input.GetGetter<T>(input.Schema[colIndex]); 169ValueGetter<T> combinedGetter = (ref T dst) =>
Dracula\CountTableTransformer.cs (14)
185var singleGetters = new ValueGetter<uint>[colCount]; 186var vectorGetters = new ValueGetter<VBuffer<uint>>[colCount]; 195var labelGetter = GetLabelGetter(cursor, labelColumn); 222private ValueGetter<long> GetLabelGetter(DataViewRow row, DataViewSchema.Column col) 231var getSrc = row.GetGetter<bool>(col); 248var getSrc = RowCursorUtils.GetGetterAs<ulong>(NumberDataViewType.UInt64, row, col.Index); 265var getSrc = RowCursorUtils.GetGetterAs<double>(NumberDataViewType.Double, row, col.Index); 623var getSlotNames = GetSlotNamesGetter(inputCol, i); 633private ValueGetter<VBuffer<ReadOnlyMemory<char>>> GetSlotNamesGetter(DataViewSchema.Column inputCol, int iinfo) 649ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = 680private ValueGetter<VBuffer<float>> ConstructSingleGetter(DataViewRow input, int iinfo) 684var srcGetter = input.GetGetter<uint>(input.Schema[_parent.ColumnPairs[iinfo].inputColumnName]); 697private ValueGetter<VBuffer<float>> ConstructVectorGetter(DataViewRow input, int iinfo) 705var srcGetter = input.GetGetter<VBuffer<uint>>(inputCol);
ExpressionTransformer.cs (42)
426Func<IExceptionContext, DataViewRow, DataViewSchema.Column[], Delegate, ValueGetter<int>> d; 459private ValueGetter<TDst> GetGetter<T0, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 464var getSrc0 = input.GetGetter<T0>(inputColumns[0]); 474private ValueGetter<TDst> GetGetter<T0, T1, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 479var getSrc0 = input.GetGetter<T0>(inputColumns[0]); 480var getSrc1 = input.GetGetter<T1>(inputColumns[1]); 492private ValueGetter<TDst> GetGetter<T0, T1, T2, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 497var getSrc0 = input.GetGetter<T0>(inputColumns[0]); 498var getSrc1 = input.GetGetter<T1>(inputColumns[1]); 499var getSrc2 = input.GetGetter<T2>(inputColumns[2]); 513private ValueGetter<TDst> GetGetter<T0, T1, T2, T3, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 518var getSrc0 = input.GetGetter<T0>(inputColumns[0]); 519var getSrc1 = input.GetGetter<T1>(inputColumns[1]); 520var getSrc2 = input.GetGetter<T2>(inputColumns[2]); 521var getSrc3 = input.GetGetter<T3>(inputColumns[3]); 537private ValueGetter<TDst> GetGetter<T0, T1, T2, T3, T4, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 542var getSrc0 = input.GetGetter<T0>(inputColumns[0]); 543var getSrc1 = input.GetGetter<T1>(inputColumns[1]); 544var getSrc2 = input.GetGetter<T2>(inputColumns[2]); 545var getSrc3 = input.GetGetter<T3>(inputColumns[3]); 546var getSrc4 = input.GetGetter<T4>(inputColumns[4]); 568Func<IExceptionContext, DataViewRow, DataViewSchema.Column[], int[], Delegate, DataViewType, ValueGetter<VBuffer<int>>> d; 601private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 608var getSrc0 = input.GetGetter<VBuffer<T0>>(inputColumns[0]); 666private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 673var getSrc0 = input.GetGetter<VBuffer<T0>>(inputColumns[perm[0]]); 674var getSrc1 = input.GetGetter<T1>(inputColumns[perm[1]]); 726private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, T2, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 733var getSrc0 = input.GetGetter<VBuffer<T0>>(inputColumns[perm[0]]); 734var getSrc1 = input.GetGetter<T1>(inputColumns[perm[1]]); 735var getSrc2 = input.GetGetter<T2>(inputColumns[perm[2]]); 789private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, T2, T3, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 796var getSrc0 = input.GetGetter<VBuffer<T0>>(inputColumns[perm[0]]); 797var getSrc1 = input.GetGetter<T1>(inputColumns[perm[1]]); 798var getSrc2 = input.GetGetter<T2>(inputColumns[perm[2]]); 799var getSrc3 = input.GetGetter<T3>(inputColumns[perm[3]]); 855private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, T2, T3, T4, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 862var getSrc0 = input.GetGetter<VBuffer<T0>>(inputColumns[perm[0]]); 863var getSrc1 = input.GetGetter<T1>(inputColumns[perm[1]]); 864var getSrc2 = input.GetGetter<T2>(inputColumns[perm[2]]); 865var getSrc3 = input.GetGetter<T3>(inputColumns[perm[3]]); 866var getSrc4 = input.GetGetter<T4>(inputColumns[perm[4]]);
GcnTransform.cs (3)
353ValueGetter<bool> getter = (ref bool dst) => dst = true; 370var getSrc = input.GetGetter<VBuffer<float>>(input.Schema[_srcCols[iinfo]]); 372ValueGetter<VBuffer<float>> del;
GroupTransform.cs (8)
405ValueGetter<T> getter = row.GetGetter<T>(row.Schema[col]); 444public abstract ValueGetter<T> GetGetter<T>(IExceptionContext ctx); 462private readonly ValueGetter<TValue> _srcGetter; 471_getter = (ValueGetter<VBuffer<TValue>>)Getter; 481public override ValueGetter<T> GetGetter<T>(IExceptionContext ctx) 484return (ValueGetter<T>)_getter; 558public override ValueGetter<DataViewRowId> GetIdGetter() 648public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
HashJoiningTransform.cs (3)
502private ValueGetter<uint> ComposeGetterOneToOne<TSrc>(DataViewRow input, int iinfo) 526private ValueGetter<VBuffer<uint>> ComposeGetterVecToVec<TSrc>(DataViewRow input, int iinfo) 574private ValueGetter<uint> ComposeGetterVecToOne<TSrc>(DataViewRow input, int iinfo)
KeyToVectorMapping.cs (6)
239ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = (ref VBuffer<ReadOnlyMemory<char>> dst) => 248ValueGetter<bool> normalizeGetter = (ref bool dst) => 258ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = (ref VBuffer<ReadOnlyMemory<char>> dst) => 351private ValueGetter<VBuffer<float>> MakeGetterOne(DataViewRow input, int iinfo) 363var getSrc = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, input, srcCol); 381private ValueGetter<VBuffer<float>> MakeGetterInd(DataViewRow input, int iinfo, VectorDataViewType typeSrc)
MissingValueDroppingTransformer.cs (2)
226private ValueGetter<VBuffer<TDst>> MakeVecGetter<TDst>(DataViewRow input, int iinfo) 228var srcGetter = input.GetGetter<VBuffer<TDst>>(input.Schema[_srcCols[iinfo]]);
MissingValueIndicatorTransform.cs (1)
244ValueGetter<VBuffer<float>> del;
MissingValueIndicatorTransformer.cs (13)
149private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, ValueGetter<bool>> _composeGetterOneMethodInfo 150= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, ValueGetter<bool>>.Create(target => target.ComposeGetterOne<int>); 152private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, ValueGetter<VBuffer<bool>>> _composeGetterVecMethodInfo 153= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, ValueGetter<VBuffer<bool>>>.Create(target => target.ComposeGetterVec<int>); 212ValueGetter<bool> getter = (ref bool dst) => 249private ValueGetter<bool> ComposeGetterOne(DataViewRow input, int iinfo) 252private ValueGetter<bool> ComposeGetterOne<T>(DataViewRow input, int iinfo) 254var getSrc = input.GetGetter<T>(input.Schema[ColMapNewToOld[iinfo]]); 258ValueGetter<bool> getter; 271private ValueGetter<VBuffer<bool>> ComposeGetterVec(DataViewRow input, int iinfo) 274private ValueGetter<VBuffer<bool>> ComposeGetterVec<T>(DataViewRow input, int iinfo) 276var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[ColMapNewToOld[iinfo]]); 283ValueGetter<VBuffer<bool>> getter;
MissingValueReplacing.cs (4)
644var getSrc = input.GetGetter<T>(input.Schema[ColMapNewToOld[iinfo]]); 649ValueGetter<T> getter; 670var getSrc = input.GetGetter<VBuffer<T>>(input.Schema[ColMapNewToOld[iinfo]]); 675ValueGetter<VBuffer<T>> getter;
MissingValueReplacingUtils.cs (1)
171private readonly ValueGetter<TValue> _getter;
MutualInformationFeatureSelection.cs (1)
668var getter = cursor.GetGetter<T>();
OptionalColumnTransform.cs (8)
404private ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo) 419return (ValueGetter<T>)((ref T value) => value = default(T)); 424return (ValueGetter<VBuffer<T>>)((ref VBuffer<T> value) => 476public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 490var fn = originFn as ValueGetter<TValue>; 507return (ValueGetter<T>)((ref T value) => value = default(T)); 512return (ValueGetter<VBuffer<T>>)((ref VBuffer<T> value) =>
PermutationFeatureImportance.cs (1)
145var featuresGetter = cursor.GetGetter<VBuffer<float>>(featuresColumn);
ProduceIdTransform.cs (3)
209public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 220var fn = idGetter as ValueGetter<TValue>;
RandomFourierFeaturizing.cs (7)
305var get = cursor.GetGetter<VBuffer<float>>(cursor.Schema[srcCols[i]]); 310var getOne = cursor.GetGetter<float>(cursor.Schema[srcCols[i]]); 312ValueGetter<VBuffer<float>> get = 512private ValueGetter<VBuffer<float>> GetterFromVectorType(DataViewRow input, int iinfo) 514var getSrc = input.GetGetter<VBuffer<float>>(input.Schema[_srcCols[iinfo]]); 529private ValueGetter<VBuffer<float>> GetterFromFloatType(DataViewRow input, int iinfo) 531var getSrc = input.GetGetter<float>(input.Schema[_srcCols[iinfo]]);
StatefulCustomMappingTransformer.cs (5)
197var getter = input.GetGetter<T>(input.Schema[colName]); 198ValueGetter<T> combinedGetter = (ref T dst) => 312public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 323var fn = originFn as ValueGetter<TValue>;
StatefulFilterTransform.cs (2)
187public override ValueGetter<DataViewRowId> GetIdGetter() 233public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column)
SvmLight\SvmLightLoader.cs (6)
445private readonly ValueGetter<ReadOnlyMemory<char>> _getter; 479public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 484ValueGetter<TValue> getter = _getter as ValueGetter<TValue>; 491public override ValueGetter<DataViewRowId> GetIdGetter() 684var getter = cursor.GetGetter<VBuffer<ReadOnlyMemory<char>>>(col.Value);
SvmLight\SvmLightSaver.cs (4)
132var labelGetter = cursor.GetGetter<float>(labelCol.Value); 133var featuresGetter = cursor.GetGetter<VBuffer<float>>(featureCol.Value); 134var groupGetter = groupCol.HasValue ? cursor.GetGetter<ulong>(groupCol.Value) : null; 135var weightGetter = weightCol.HasValue ? cursor.GetGetter<float>(weightCol.Value) : null;
Text\LdaTransform.cs (3)
605private ValueGetter<VBuffer<float>> GetTopic(DataViewRow input, int iinfo) 865var getters = new ValueGetter<VBuffer<Double>>[columns.Length]; 945var getters = new ValueGetter<VBuffer<Double>>[columns.Length];
Text\NgramHashingTransformer.cs (6)
238var valueGetters = new ValueGetter<VBuffer<float>>[columnWithInvertHash.Count]; 240valueGetters[i] = del[i] as ValueGetter<VBuffer<float>>; 562ValueGetter<VBuffer<uint>>[] getSrc = new ValueGetter<VBuffer<uint>>[srcCount]; 575ValueGetter<VBuffer<float>> del = 621ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = (ref VBuffer<ReadOnlyMemory<char>> dst) =>
Text\NgramTransform.cs (3)
224var getters = new ValueGetter<VBuffer<uint>>[columns.Length]; 514ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = (ref VBuffer<ReadOnlyMemory<char>> dst) => 684ValueGetter<VBuffer<float>> del;
Text\StopWordsRemovingTransformer.cs (7)
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]]); 416ValueGetter<VBuffer<ReadOnlyMemory<char>>> del = 483private void UpdateLanguage(ref StopWordsRemovingEstimator.Language langToUse, ValueGetter<ReadOnlyMemory<char>> getLang, ref ReadOnlyMemory<char> langTxt) 877var getter = cursor.GetGetter<ReadOnlyMemory<char>>(cursor.Schema[colSrcIndex]); 1102var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]); 1107ValueGetter<VBuffer<ReadOnlyMemory<char>>> del =
Text\TextNormalizing.cs (4)
344private ValueGetter<ReadOnlyMemory<char>> MakeGetterOne(DataViewRow input, int iinfo) 346var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 358private ValueGetter<VBuffer<ReadOnlyMemory<char>>> MakeGetterVec(DataViewRow input, int iinfo) 360var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
Text\TokenizingByCharacters.cs (7)
286ValueGetter<VBuffer<ReadOnlyMemory<char>>> getter = 475private ValueGetter<VBuffer<ushort>> MakeGetterOne(DataViewRow input, int iinfo) 478var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 504private ValueGetter<VBuffer<ushort>> MakeGetterVec(DataViewRow input, int iinfo) 511var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]); 514ValueGetter<VBuffer<ushort>> getterWithStartEndSep = (ref VBuffer<ushort> dst) => 552ValueGetter<VBuffer<ushort>> getterWithUnitSep = (ref VBuffer<ushort> dst) =>
Text\WordBagTransform.cs (2)
303ValueGetter<ReadOnlyMemory<char>> srcGetter = input.GetGetter<ReadOnlyMemory<char>>(input.Schema.GetColumnOrNull(_parent._columnName).Value); 307ValueGetter<ReadOnlyMemory<char>> result = (ref ReadOnlyMemory<char> dst) =>
Text\WordEmbeddingsExtractor.cs (2)
551private ValueGetter<VBuffer<float>> GetGetterVec(DataViewRow input, int iinfo) 560var srcGetter = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(column);
Text\WordTokenizing.cs (4)
249private ValueGetter<VBuffer<ReadOnlyMemory<char>>> MakeGetterOne(DataViewRow input, int iinfo) 252var getSrc = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[ColMapNewToOld[iinfo]]); 275private ValueGetter<VBuffer<ReadOnlyMemory<char>>> MakeGetterVec(DataViewRow input, int iinfo) 281var getSrc = input.GetGetter<VBuffer<ReadOnlyMemory<char>>>(input.Schema[ColMapNewToOld[iinfo]]);
UngroupTransform.cs (6)
519public override ValueGetter<DataViewRowId> GetIdGetter() 582var srcGetter = GetGetter<T>(Schema[col]); 610public override ValueGetter<TValue> GetGetter<TValue>(DataViewSchema.Column column) 622var result = _cachedGetters[column.Index] as ValueGetter<TValue>; 627private ValueGetter<T> MakeGetter<T>(int col, PrimitiveDataViewType itemType)
Microsoft.ML.Vision (7)
DnnRetrainTransform.cs (5)
876ValueGetter<T> valuegetter = (ref T dst) => 889ValueGetter<VBuffer<T>> valuegetter = (ref VBuffer<T> dst) => 904ValueGetter<VBuffer<T>> valuegetter = (ref VBuffer<T> dst) => 972private readonly ValueGetter<T> _srcgetter; 1053private readonly ValueGetter<VBuffer<T>> _srcgetter;
ImageClassificationTrainer.cs (2)
835var labelGetter = cursor.GetGetter<uint>(labelColumn); 836var imageGetter = cursor.GetGetter<VBuffer<byte>>(imageColumn);