8 types derived from DataViewRow
Microsoft.ML.Core (2)
Data\AnnotationUtils.cs (1)
458private sealed class AnnotationRow : DataViewRow
Data\WrappingRow.cs (1)
16internal abstract class WrappingRow : DataViewRow
Microsoft.ML.Data (3)
Data\IRowSeekable.cs (1)
28internal abstract class RowSeeker : DataViewRow
DataView\CompositeRowToRowMapper.cs (1)
89private sealed class SubsetActive : DataViewRow
DataView\DataViewConstructionUtils.cs (1)
192public abstract class InputRowBase<TRow> : DataViewRow
Microsoft.ML.DataView (1)
IDataView.cs (1)
192public abstract class DataViewRowCursor : DataViewRow
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
18private sealed class RowImpl : DataViewRow
Microsoft.ML.TimeSeries (1)
PredictionEngine.cs (1)
35internal abstract class StatefulRow : DataViewRow
591 references to DataViewRow
Microsoft.ML.Core (34)
Data\AnnotationUtils.cs (2)
490/// Presents a <see cref="DataViewSchema.Annotations"/> as a an <see cref="DataViewRow"/>. 495internal static DataViewRow AnnotationsAsRow(DataViewSchema.Annotations annotations)
Data\IRowToRowMapper.cs (12)
11/// This interface maps an input <see cref="DataViewRow"/> to an output <see cref="DataViewRow"/>. Typically, the output contains 36/// Get an <see cref="DataViewRow"/> with the indicated active columns, based on the input <paramref name="input"/>. 39/// The <see cref="DataViewRow.Schema"/> of <paramref name="input"/> should be the same object as 43/// This method creates a live connection between the input <see cref="DataViewRow"/> and the output <see 44/// cref="DataViewRow"/>. In particular, when the getters of the output <see cref="DataViewRow"/> are invoked, they invoke the 45/// getters of the input row and base the output values on the current values of the input <see cref="DataViewRow"/>. 46/// The output <see cref="DataViewRow"/> values are re-computed when requested through the getters. Also, the returned 47/// <see cref="DataViewRow"/> will dispose <paramref name="input"/> when it is disposed. 49DataViewRow GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns);
Data\ISchemaBindableMapper.cs (13)
16/// can also produce an output <see cref="DataViewRow"/> given an input <see cref="DataViewRow"/>. The <see cref="DataViewRow"/> produced generally contains only the output columns of the mapper, and not 75/// Get an <see cref="DataViewRow"/> with the indicated active columns, based on the input <paramref name="input"/>. 78/// The <see cref="DataViewRow.Schema"/> of <paramref name="input"/> should be the same object as 82/// This method creates a live connection between the input <see cref="DataViewRow"/> and the output <see 83/// cref="DataViewRow"/>. In particular, when the getters of the output <see cref="DataViewRow"/> are invoked, they invoke the 84/// getters of the input row and base the output values on the current values of the input <see cref="DataViewRow"/>. 85/// The output <see cref="DataViewRow"/> values are re-computed when requested through the getters. Also, the returned 86/// <see cref="DataViewRow"/> will dispose <paramref name="input"/> when it is disposed. 88DataViewRow GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns);
Data\WrappingRow.cs (7)
11/// Convenient base class for <see cref="DataViewRow"/> implementors that wrap a single <see cref="DataViewRow"/> 12/// as their input. The <see cref="DataViewRow.Position"/>, <see cref="DataViewRow.Batch"/>, and <see cref="DataViewRow.GetIdGetter"/> 23protected DataViewRow Input { get; } 30private protected WrappingRow(DataViewRow input)
Microsoft.ML.Core.Tests (8)
UnitTests\CoreBaseTestClass.cs (8)
29protected Func<bool> GetIdComparer(DataViewRow r1, DataViewRow r2, out ValueGetter<DataViewRowId> idGetter) 45protected Func<bool> GetComparerOne<T>(DataViewRow r1, DataViewRow r2, int col, Func<T, T, bool> fn) 68protected Func<bool> GetComparerVec<T>(DataViewRow r1, DataViewRow r2, int col, int size, Func<T, T, bool> fn) 83protected Func<bool> GetColumnComparer(DataViewRow r1, DataViewRow r2, int col, DataViewType type, bool exactDoubles)
Microsoft.ML.Data (308)
Data\DataViewUtils.cs (5)
640private InPipe CreateInPipe<T>(DataViewRow input, int col) 650private InPipe CreateIdInPipe(DataViewRow input) 845/// really is to just provide a stable delegate for the <see cref="DataViewRow.GetGetter{T}(DataViewSchema.Column)"/>. 1356public static ValueGetter<ReadOnlyMemory<char>> GetSingleValueGetter<T>(DataViewRow cursor, int i, DataViewType colType) 1386public static ValueGetter<ReadOnlyMemory<char>> GetVectorFlatteningGetter<T>(DataViewRow cursor, int colIndex, DataViewType colType)
Data\RowCursorUtils.cs (33)
19private static readonly FuncStaticMethodInfo1<DataViewRow, int, Delegate> _getGetterAsDelegateCoreMethodInfo 20= new FuncStaticMethodInfo1<DataViewRow, int, Delegate>(GetGetterAsDelegateCore<int>); 22private static readonly FuncStaticMethodInfo1<DataViewRow, int, Func<bool>> _getIsNewGroupDelegateCoreMethodInfo 23= new FuncStaticMethodInfo1<DataViewRow, int, Func<bool>>(GetIsNewGroupDelegateCore<int>); 33public static Delegate GetGetterAsDelegate(DataViewRow row, int col) 42private static Delegate GetGetterAsDelegateCore<TValue>(DataViewRow row, int col) 48/// Given a destination type, <see cref="DataViewRow"/>, and column index, return a ValueGetter for the column 53public static Delegate GetGetterAs(DataViewType typeDst, DataViewRow row, int col) 64Func<DataViewType, DataViewType, DataViewRow, int, ValueGetter<int>> del = GetGetterAsCore<int, int>; 70/// Given a destination type, <see cref="DataViewRow"/>, and column index, return a ValueGetter{TDst} for the column 73public static ValueGetter<TDst> GetGetterAs<TDst>(DataViewType typeDst, DataViewRow row, int col) 85Func<DataViewType, DataViewType, DataViewRow, int, ValueGetter<TDst>> del = GetGetterAsCore<int, TDst>; 90private static ValueGetter<TDst> GetGetterAsCore<TSrc, TDst>(DataViewType typeSrc, DataViewType typeDst, DataViewRow row, int col) 114/// Given a <see cref="DataViewRow"/>, and column index, return a function that utilizes the 121public static ValueGetter<StringBuilder> GetGetterAsStringBuilder(DataViewRow row, int col) 132private static ValueGetter<StringBuilder> GetGetterAsStringBuilderCore<TSrc>(DataViewType typeSrc, DataViewRow row, int col) 151/// <see cref="GetVecGetterAs{TDst}(PrimitiveDataViewType, DataViewRow, int)"/>. 153public static Delegate GetVecGetterAs(PrimitiveDataViewType typeDst, DataViewRow row, int col) 172public static ValueGetter<VBuffer<TDst>> GetVecGetterAs<TDst>(PrimitiveDataViewType typeDst, DataViewRow row, int col) 210public static GetterFactory Create(DataViewRow row, int col) 224private readonly DataViewRow _row; 227public RowImpl(DataViewRow row, int col) 304public static Func<bool> GetIsNewGroupDelegate(DataViewRow cursor, int col) 313private static Func<bool> GetIsNewGroupDelegateCore<T>(DataViewRow cursor, int col) 352public static ValueGetter<Single> GetLabelGetter(DataViewRow cursor, int labelIndex) 374private static ValueGetter<Single> GetLabelGetterNotFloat(DataViewRow cursor, int labelIndex) 453public static T Fetch<T>(IExceptionContext ectx, DataViewRow row, string name) 464/// wish to use some facility normally only exposed to dataviews. (For example, you have an <see cref="DataViewRow"/> 473public static IDataView RowAsDataView(IHostEnvironment env, DataViewRow row) 509private readonly DataViewRow _row; 515public OneRowDataView(IHostEnvironment env, DataViewRow row) 610/// <see cref="DataViewRow.GetIdGetter"/> or <see cref="DataViewRow.GetGetter{TValue}(DataViewSchema.Column)"/>.
DataDebuggerPreview.cs (3)
19private static readonly FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>> _makeSetterMethodInfo 20= FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>>.Create(target => target.MakeSetter<int>); 68private Action<RowInfo, List<object>> MakeSetter<T>(DataViewRow row, int col)
DataView\CompositeRowToRowMapper.cs (5)
52DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 82DataViewRow result = input; 91private readonly DataViewRow _row; 94public SubsetActive(DataViewRow row, Func<int, bool> pred)
DataView\DataViewConstructionUtils.cs (1)
188/// A row that consumes items of type <typeparamref name="TRow"/>, and provides an <see cref="DataViewRow"/>. This
DataView\DataViewExtensions.cs (2)
64public static DataViewRow GetRow(this IRowToRowMapper rowMapper, DataViewRow input, params DataViewSchema.Column[] activeColumns)
DataView\LambdaColumnMapper.cs (1)
154protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
DataView\RowToRowMapperTransform.cs (5)
39/// i'th output column if activeOutput(i) is true, and null otherwise. If creating a <see cref="DataViewRow"/> or 43Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer); 249DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 307public RowImpl(DataViewRow input, RowToRowMapperTransform parent, DataViewSchema schema, Delegate[] getters, Action disposer)
DataView\SimpleRow.cs (8)
12/// An implementation of <see cref="DataViewRow"/> that gets its <see cref="DataViewRow.Position"/>, <see cref="DataViewRow.Batch"/>, 13/// and <see cref="DataViewRow.GetIdGetter"/> from an input row. The constructor requires a schema and array of getter 31/// <param name="input">The row that is being wrapped by this row, where our <see cref="DataViewRow.Position"/>, 32/// <see cref="DataViewRow.Batch"/>, <see cref="DataViewRow.GetIdGetter"/>.</param> 37public SimpleRow(DataViewSchema schema, DataViewRow input, Delegate[] getters, Action disposer = null)
DataView\Transposer.cs (18)
892/// and then can be bound to an <see cref="DataViewRow"/> to provide that splitting functionality. 959/// Given an input <see cref="DataViewRow"/>, create the <see cref="DataViewRow"/> containing the split 962public abstract DataViewRow Bind(DataViewRow row, Func<int, bool> pred); 981public RowBase(TSplitter parent, DataViewRow input) 1022public override DataViewRow Bind(DataViewRow row, Func<int, bool> pred) 1035public RowImpl(NoSplitter<T> parent, DataViewRow input, bool isActive) 1116public override DataViewRow Bind(DataViewRow row, Func<int, bool> pred) 1140public RowImpl(ColumnSplitter<T> parent, DataViewRow input, Func<int, bool> pred) 1259/// The cursor implementation creates the <see cref="DataViewRow"/>s using <see cref="Splitter.Bind"/>, 1265private readonly DataViewRow[] _sliceRows; 1277_sliceRows = new DataViewRow[_slicer._splitters.Length]; 1304var row = _sliceRows[splitInd]; 1321var splitIndRow = _sliceRows[splitInd]; 1386/// to handle <see cref="DataViewRowCursor"/> and <see cref="DataViewRow"/> but that know nothing about
DataView\TypedCursor.cs (11)
15/// This interface is an <see cref="DataViewRow"/> with 'strongly typed' binding. 167public IRowReadableAs<TRow> GetRow(DataViewRow input) 334public TypedRowBase(TypedCursorable<TRow> parent, DataViewRow input, string channelMessage) 356private Action<TRow> GenerateSetter(DataViewRow input, int index, InternalSchemaDefinition.Column column, Delegate poke, Delegate peek) 361Func<DataViewRow, int, Delegate, Delegate, Action<TRow>> del; 424private Action<TRow> CreateConvertingVBufferSetter<TSrc, TDst>(DataViewRow input, int col, Delegate poke, Delegate peek, Func<TSrc, TDst> convert) 446private Action<TRow> CreateDirectVBufferSetter<TDst>(DataViewRow input, int col, Delegate poke, Delegate peek) 484private static Action<TRow> CreateConvertingActionSetter<TSrc, TDst>(DataViewRow input, int col, Delegate poke, Func<TSrc, TDst> convert) 498private static Action<TRow> CreateDirectSetter<TDst>(DataViewRow input, int col, Delegate poke, Delegate peek) 513private Action<TRow> CreateVBufferToVBufferSetter<TDst>(DataViewRow input, int col, Delegate poke, Delegate peek) 554public TypedRow(TypedCursorable<TRow> parent, DataViewRow input)
Dirty\PredictorInterfaces.cs (2)
119DataViewRow GetSummaryIRowOrNull(RoleMappedSchema schema); 121DataViewRow GetStatsIRowOrNull(RoleMappedSchema schema);
EntryPoints\SummarizePredictor.cs (2)
66var row = rowGetter.GetSummaryIRowOrNull(schema); 71var statsRow = rowGetter.GetStatsIRowOrNull(schema);
EntryPoints\TransformModelImpl.cs (3)
247DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 271var row = input;
Evaluators\AnomalyDetectionEvaluator.cs (1)
502internal override void InitializeNextPass(DataViewRow row, RoleMappedSchema schema)
Evaluators\BinaryClassifierEvaluator.cs (2)
620internal override void InitializeNextPass(DataViewRow row, RoleMappedSchema schema) 1148private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer)
Evaluators\ClusteringEvaluator.cs (2)
487internal override void InitializeNextPass(DataViewRow row, RoleMappedSchema schema) 649private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer)
Evaluators\EvaluatorBase.cs (9)
230/// the input getters of the given <see cref="DataViewRow"/> that are needed for the current pass, assuming that all the needed column 266/// This method should get the getters of the new <see cref="DataViewRow"/> that are needed for the next pass. 269internal abstract void InitializeNextPass(DataViewRow row, RoleMappedSchema schema); 340private protected DataViewRow Row; 360/// Gets the stratification column getter for the new <see cref="DataViewRow"/>. 362public abstract void Reset(DataViewRow row); 413public override void Reset(DataViewRow row) 537Delegate[] IRowMapper.CreateGetters(DataViewRow input, Func<int, bool> activeCols, out Action disposer) 541private protected abstract Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer);
Evaluators\EvaluatorUtils.cs (1)
991private static List<string> GetMetricNames(IChannel ch, DataViewSchema schema, DataViewRow row, Func<int, bool> ignoreCol,
Evaluators\Metrics\AnomalyDetectionMetrics.cs (1)
40internal AnomalyDetectionMetrics(IExceptionContext ectx, DataViewRow overallResult)
Evaluators\Metrics\BinaryClassificationMetrics.cs (2)
88private protected static T Fetch<T>(IExceptionContext ectx, DataViewRow row, string name) 98internal BinaryClassificationMetrics(IHost host, DataViewRow overallResult, IDataView confusionMatrix)
Evaluators\Metrics\CalibratedBinaryClassificationMetrics.cs (1)
64internal CalibratedBinaryClassificationMetrics(IHost host, DataViewRow overallResult, IDataView confusionMatrix)
Evaluators\Metrics\ClusteringMetrics.cs (1)
38internal ClusteringMetrics(IExceptionContext ectx, DataViewRow overallResult, bool calculateDbi)
Evaluators\Metrics\MulticlassClassificationMetrics.cs (1)
118internal MulticlassClassificationMetrics(IHost host, DataViewRow overallResult, int topKPredictionCount, IDataView confusionMatrix)
Evaluators\Metrics\RankingMetrics.cs (2)
49private static T Fetch<T>(IExceptionContext ectx, DataViewRow row, string name) 59internal RankingMetrics(IExceptionContext ectx, DataViewRow overallResult)
Evaluators\Metrics\RegressionMetrics.cs (1)
69internal RegressionMetrics(IExceptionContext ectx, DataViewRow overallResult)
Evaluators\MulticlassClassificationEvaluator.cs (2)
412internal override void InitializeNextPass(DataViewRow row, RoleMappedSchema schema) 709private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer)
Evaluators\MultiOutputRegressionEvaluator.cs (2)
302internal override void InitializeNextPass(DataViewRow row, RoleMappedSchema schema) 460private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer)
Evaluators\QuantileRegressionEvaluator.cs (1)
380private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer)
Evaluators\RankingEvaluator.cs (4)
452internal override void InitializeNextPass(DataViewRow row, RoleMappedSchema schema) 785protected override ValueGetter<short> GetLabelGetter(DataViewRow row) 797protected override ValueGetter<Single> GetScoreGetter(DataViewRow row) 802protected override RowCursorState InitializeState(DataViewRow input)
Evaluators\RegressionEvaluator.cs (1)
269private protected override Delegate[] CreateGettersCore(DataViewRow input, Func<int, bool> activeCols, out Action disposer)
Evaluators\RegressionEvaluatorBase.cs (1)
200internal override void InitializeNextPass(DataViewRow row, RoleMappedSchema schema)
Prediction\Calibrator.cs (7)
647private static readonly FuncInstanceMethodInfo1<Bound, DataViewRow, int, Delegate> _getPredictorGetterMethodInfo 648= FuncInstanceMethodInfo1<Bound, DataViewRow, int, Delegate>.Create(target => target.GetPredictorGetter<int>); 689DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 691var predictorRow = _predictor.GetRow(input, activeColumns.Count() > 0 ? OutputSchema : Enumerable.Empty<DataViewSchema.Column>()); 711private Delegate GetPredictorGetter<T>(DataViewRow input, int col) 714private Delegate GetProbGetter(DataViewRow input)
Prediction\CalibratorCatalog.cs (1)
313protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Prediction\PredictionEngine.cs (1)
127var outputRowLocal = mapper.GetRow(inputRow, mapper.OutputSchema);
Scorers\BinaryClassifierScorer.cs (1)
232protected override Delegate GetPredictedLabelGetter(DataViewRow output, out Delegate scoreGetter)
Scorers\ClusteringScorer.cs (1)
93protected override Delegate GetPredictedLabelGetter(DataViewRow output, out Delegate scoreGetter)
Scorers\FeatureContributionCalculation.cs (10)
94private static readonly FuncInstanceMethodInfo1<BindableMapper, DataViewRow, int, Delegate> _getValueGetterMethodInfo 95= FuncInstanceMethodInfo1<BindableMapper, DataViewRow, int, Delegate>.Create(target => target.GetValueGetter<int>); 191public Delegate GetTextContributionGetter(DataViewRow input, int colSrc, VBuffer<ReadOnlyMemory<char>> slotNames) 197Func<DataViewRow, int, VBuffer<ReadOnlyMemory<char>>, ValueGetter<ReadOnlyMemory<char>>> del = GetTextValueGetter<int>; 202public Delegate GetContributionGetter(DataViewRow input, int colSrc) 223private ValueGetter<ReadOnlyMemory<char>> GetTextValueGetter<TSrc>(DataViewRow input, int colSrc, VBuffer<ReadOnlyMemory<char>> slotNames) 262private ValueGetter<VBuffer<float>> GetValueGetter<TSrc>(DataViewRow input, int colSrc) 364DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 378var genericRow = _genericRowMapper.GetRow(input, activeColumns);
Scorers\GenericScorer.cs (1)
265protected override Delegate[] GetGetters(DataViewRow output, Func<int, bool> predicate)
Scorers\MulticlassClassificationScorer.cs (5)
346DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 348var innerRow = _mapper.GetRow(input, activeColumns); 359public RowImpl(DataViewRow row, DataViewSchema schema) 562protected override Delegate GetPredictedLabelGetter(DataViewRow output, out Delegate scoreGetter)
Scorers\PredictedLabelScorerBase.cs (3)
398protected override Delegate[] GetGetters(DataViewRow output, Func<int, bool> predicate) 430protected abstract Delegate GetPredictedLabelGetter(DataViewRow output, out Delegate scoreGetter); 433DataViewRow boundRow, ValueGetter<TScore> scoreGetter)
Scorers\RowToRowScorerBase.cs (9)
22private static readonly FuncStaticMethodInfo1<DataViewRow, int, Delegate> _getGetterFromRowMethodInfo 23= new FuncStaticMethodInfo1<DataViewRow, int, Delegate>(GetGetterFromRow<int>); 165protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp) 170var output = bindings.RowMapper.GetRow(input, activeMapperColumns); 188protected abstract Delegate[] GetGetters(DataViewRow output, Func<int, bool> predicate); 190protected static Delegate[] GetGettersFromRow(DataViewRow row, Func<int, bool> predicate) 204protected static Delegate GetGetterFromRow(DataViewRow row, int col) 214protected static ValueGetter<T> GetGetterFromRow<T>(DataViewRow output, int col) 233private readonly DataViewRow _output;
Scorers\SchemaBindablePredictorWrapper.cs (11)
37private static readonly FuncInstanceMethodInfo2<SchemaBindablePredictorWrapperBase, DataViewRow, int, Delegate> _getValueGetterMethodInfo 38= FuncInstanceMethodInfo2<SchemaBindablePredictorWrapperBase, DataViewRow, int, Delegate>.Create(target => target.GetValueGetter<int, int>); 157protected virtual Delegate GetPredictionGetter(DataViewRow input, int colSrc) 166private ValueGetter<TDst> GetValueGetter<TSrc, TDst>(DataViewRow input, int colSrc) 235DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 553private Delegate[] CreateGetters(DataViewRow input, bool[] active) 596ref float score, ref float prob, DataViewRow input) 609DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 698protected override Delegate GetPredictionGetter(DataViewRow input, int colSrc)
Training\TrainerUtils.cs (9)
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) 493public DataViewRow Row => _cursor;
Transforms\ColumnConcatenatingTransformer.cs (8)
524private static readonly FuncInstanceMethodInfo1<BoundColumn, DataViewRow, Delegate> _makeIdentityGetterMethodInfo 525= FuncInstanceMethodInfo1<BoundColumn, DataViewRow, Delegate>.Create(target => target.MakeIdentityGetter<int>); 527private static readonly FuncInstanceMethodInfo1<BoundColumn, DataViewRow, Delegate> _makeGetterMethodInfo 528= FuncInstanceMethodInfo1<BoundColumn, DataViewRow, Delegate>.Create(target => target.MakeGetter<int>); 675public Delegate MakeGetter(DataViewRow input) 683private Delegate MakeIdentityGetter<T>(DataViewRow input) 689private Delegate MakeGetter<T>(DataViewRow input) 875protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\ColumnCopying.cs (4)
198private static readonly FuncStaticMethodInfo1<DataViewRow, int, Delegate> _makeGetterMethodInfo 199= new FuncStaticMethodInfo1<DataViewRow, int, Delegate>(MakeGetter<int>); 213protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 224private static Delegate MakeGetter<T>(DataViewRow row, int index)
Transforms\ColumnSelecting.cs (3)
626public RowImpl(DataViewRow input, Mapper mapper) 725DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Transforms\FeatureContributionCalculationTransformer.cs (4)
167private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate> _getValueGetterMethodInfo 168= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate>.Create(target => target.GetValueGetter<int>); 203protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> active, out Action disposer) 213private Delegate GetValueGetter<TSrc>(DataViewRow input, int colSrc)
Transforms\Hashing.cs (16)
261private Delegate GetGetterCore(DataViewRow input, int iinfo, out Action disposer) 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) 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) 1279private static ValueGetter<uint> MakeCombinedVectorHashGetter<T, THash>(DataViewRow input, int srcCol, uint seed, uint mask) 1354protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) => _parent.GetGetterCore(input, iinfo, out disposer); 1481protected readonly DataViewRow Row; 1487private InvertHashHelper(DataViewRow row, HashingEstimator.ColumnOptions ex) 1508public static InvertHashHelper Create(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter) 1519var consTypes = new Type[] { typeof(DataViewRow), typeof(HashingEstimator.ColumnOptions), typeof(int), typeof(Delegate) }; 1596protected Impl(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount) 1629public ImplOne(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter) 1663public ImplVec(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter) 1697public ImplVecOrdered(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter)
Transforms\KeyToValue.cs (3)
212protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 299public abstract Delegate GetMappingGetter(DataViewRow input); 354public override Delegate GetMappingGetter(DataViewRow input)
Transforms\KeyToVector.cs (4)
449protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 467private ValueGetter<VBuffer<float>> MakeGetterOne(DataViewRow input, int iinfo) 500private ValueGetter<VBuffer<float>> MakeGetterBag(DataViewRow input, int iinfo) 546private ValueGetter<VBuffer<float>> MakeGetterInd(DataViewRow input, int iinfo)
Transforms\LabelConvertTransform.cs (1)
170protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
Transforms\LabelIndicatorTransform.cs (2)
167protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, 179private ValueGetter<bool> GetGetter(IChannel ch, DataViewRow input, int iinfo)
Transforms\NopTransform.cs (2)
132DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Transforms\NormalizeColumn.cs (7)
424public abstract Delegate GetGetter(DataViewRow input, int icol); 545public abstract Delegate GetGetter(DataViewRow input, int icol); 676public abstract Delegate GetGetter(DataViewRow input, int icol); 799protected SupervisedBinFunctionBuilderBase(IHost host, long lim, int labelColId, DataViewRow dataRow) 809private ValueGetter<int> GetLabelGetter(DataViewRow row, int col, out int labelCardinality) 883DataViewRow dataRow) 911protected VecColumnSupervisedBinFunctionBuilderBase(IHost host, long lim, int valueColId, int labelColId, DataViewRow dataRow)
Transforms\NormalizeColumnDbl.cs (10)
707public override Delegate GetGetter(DataViewRow input, int icol) 783public override Delegate GetGetter(DataViewRow input, int icol) 1025public override Delegate GetGetter(DataViewRow input, int icol) 1080public override Delegate GetGetter(DataViewRow input, int icol) 1209public override Delegate GetGetter(DataViewRow input, int icol) 1294public override Delegate GetGetter(DataViewRow input, int icol) 1980private SupervisedBinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2000public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2018private SupervisedBinVecColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2040public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow)
Transforms\NormalizeColumnSng.cs (10)
865public override Delegate GetGetter(DataViewRow input, int icol) 940public override Delegate GetGetter(DataViewRow input, int icol) 1185public override Delegate GetGetter(DataViewRow input, int icol) 1240public override Delegate GetGetter(DataViewRow input, int icol) 1370public override Delegate GetGetter(DataViewRow input, int icol) 1455public override Delegate GetGetter(DataViewRow input, int icol) 2144private SupervisedBinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2164public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2182private SupervisedBinVecColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2204public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow)
Transforms\Normalizer.cs (1)
756protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\NormalizeUtils.cs (1)
60Delegate GetGetter(DataViewRow input, int icol);
Transforms\PerGroupTransformBase.cs (3)
207protected abstract ValueGetter<TLabel> GetLabelGetter(DataViewRow row); 212protected abstract ValueGetter<TScore> GetScoreGetter(DataViewRow row); 217protected abstract TState InitializeState(DataViewRow input);
Transforms\RowToRowTransformerBase.cs (2)
78public virtual Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 107protected abstract Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer);
Transforms\SlotsDroppingTransformer.cs (11)
454private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate> _makeVecGetterMethodInfo 455= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate>.Create(target => target.MakeVecGetter<int>); 457private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate> _getSrcGetterMethodInfo 458= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate>.Create(target => target.GetSrcGetter<int>); 719protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 738private Delegate MakeOneTrivialGetter(DataViewRow input, int iinfo) 759private Delegate MakeVecTrivialGetter(DataViewRow input, int iinfo) 780private Delegate MakeVecGetter(DataViewRow input, int iinfo) 790private ValueGetter<VBuffer<TDst>> MakeVecGetter<TDst>(DataViewRow input, int iinfo) 807private ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo) 816private Delegate GetSrcGetter(DataViewType typeDst, DataViewRow row, int iinfo)
Transforms\TransformBase.cs (10)
176DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 189protected abstract Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp); 203public RowImpl(DataViewRow input, RowToRowMapperTransformBase parent, DataViewSchema schema, Delegate[] getters, Action disposer) 478private static readonly FuncInstanceMethodInfo1<OneToOneTransformBase, DataViewRow, int, Delegate> _getSrcGetterMethodInfo 479= FuncInstanceMethodInfo1<OneToOneTransformBase, DataViewRow, int, Delegate>.Create(target => target.GetSrcGetter<int>); 692protected abstract Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer); 694protected ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo) 703protected Delegate GetSrcGetter(DataViewType typeDst, DataViewRow row, int iinfo) 818protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disposer)
Transforms\TypeConverting.cs (1)
467protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\ValueMapping.cs (3)
819public abstract Delegate GetGetter(DataViewRow input, int index); 909public override Delegate GetGetter(DataViewRow input, int index) 1048protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Transforms\ValueToKeyMappingTransformer.cs (4)
704private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate> _makeGetterMethodInfo 705= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate>.Create(target => target.MakeGetter<int>); 756protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 765private Delegate MakeGetter<T>(DataViewRow row, int src) => _termMap[src].GetMappingGetter(row);
Transforms\ValueToKeyMappingTransformerImpl.cs (5)
284public static Trainer Create(DataViewRow row, int col, bool autoConvert, int count, Builder bldr) 301private static Trainer CreateOne<T>(DataViewRow row, int col, bool autoConvert, int count, Builder bldr) 317private static Trainer CreateVec<T>(DataViewRow row, int col, int count, Builder bldr) 854public abstract Delegate GetMappingGetter(DataViewRow row); 895public override Delegate GetMappingGetter(DataViewRow input)
Microsoft.ML.DataView (10)
DataViewRowId.cs (1)
17/// <seealso cref="DataViewRow.GetIdGetter"/>
DataViewSchema.cs (1)
15/// Represents the schema of an <see cref="IDataView"/> or an <see cref="DataViewRow"/>.
IDataView.cs (8)
60/// downstream through the use of the <see cref="DataViewRow.Batch"/> property. 64/// the end by exploiting the ordering of the <see cref="DataViewRow.Batch"/> property described above. More typical 81/// Delegate type to get a value. This can be used for efficient access to data in a <see cref="DataViewRow"/> 128/// A getter for a 128-bit ID value. It is common for objects to serve multiple <see cref="DataViewRow"/> 187/// Note that this is also an <see cref="DataViewRow"/>. The <see cref="DataViewRow.Position"/> is 189/// <see cref="MoveNext"/> returns <see langword="false"/>, <see cref="DataViewRow.Position"/> is <c>-1</c>. 190/// Otherwise, when <see cref="MoveNext"/> returns <see langword="true"/>, <see cref="DataViewRow.Position"/> >= 0.
Microsoft.ML.Ensemble (10)
PipelineEnsemble.cs (10)
108DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 114internal abstract Delegate CreateScoreGetter(DataViewRow input, out Action disposer); 130internal override Delegate CreateScoreGetter(DataViewRow input, out Action disposer) 142var pipelineRow = BoundPipelines[i].GetRow(input, inputColumns); 145var predictorRow = Mappers[i].GetRow(pipelineRow, Enumerable.Repeat(Mappers[i].InputSchema[ScoreCols[i]], 1)); 162public ValueGetter<Single> GetLabelGetter(DataViewRow input, int i, out Action disposer) 169var pipelineRow = BoundPipelines[i].GetRow(input, labelCol); 174public ValueGetter<Single> GetWeightGetter(DataViewRow input, int i, out Action disposer) 188var pipelineRow = BoundPipelines[i].GetRow(input, inputColumns);
Microsoft.ML.FastTree (5)
TreeEnsembleFeaturizer.cs (5)
175DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 182private Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 227private readonly DataViewRow _input; 243public State(IExceptionContext ectx, DataViewRow input, TreeEnsembleModelParameters ensemble, int numLeaves, int featureIndex)
Microsoft.ML.ImageAnalytics (9)
ImageGrayscale.cs (1)
162protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
ImageLoader.cs (3)
206protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 216private Delegate MakeGetterImageDataViewType(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 263private Delegate MakeGetterVectorDataViewByteType(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
ImagePixelExtractor.cs (2)
294protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 305private ValueGetter<VBuffer<TValue>> GetGetterCore<TValue>(DataViewRow input, int iinfo, out Action disposer)
ImageResizer.cs (1)
272protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
VectorToImageTransform.cs (2)
325protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 344private ValueGetter<MLImage> GetterFromType<TValue>(PrimitiveDataViewType srcType, DataViewRow input, int iinfo,
Microsoft.ML.Mkl.Components (2)
VectorWhitening.cs (2)
597protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 671private ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo)
Microsoft.ML.OnnxTransformer (15)
OnnxTransform.cs (15)
615protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 618private Delegate CreateGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, OnnxRuntimeOutputCacher outputCacher) 641public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 708private Delegate MakeTensorGetter<T>(DataViewRow input, int iinfo, INamedOnnxValueGetter[] srcNamedValueGetters, 727private Delegate MakeStringTensorGetter(DataViewRow input, int iinfo, INamedOnnxValueGetter[] srcNamedValueGetters, 751private Delegate MakeObjectGetter<T>(DataViewRow input, int iinfo, INamedOnnxValueGetter[] srcNamedValueGetters, 773private static INamedOnnxValueGetter[] GetNamedOnnxValueGetters(DataViewRow input, 795private static INamedOnnxValueGetter CreateNamedOnnxValueGetter(DataViewRow input, Type onnxType, int colIndex, OnnxShape onnxShape) 807/// Function needed by reflection in <see cref="CreateNamedOnnxValueGetter(DataViewRow, Type, int, OnnxShape)"/>. 809private static INamedOnnxValueGetter CreateNamedOnnxValueGetterCore<T>(DataViewRow input, int colIndex, OnnxShape onnxShape) 818private static INamedOnnxValueGetter CreateNamedOnnxValueGetterVec(DataViewRow input, Type onnxType, int colIndex, OnnxShape onnxShape) 830/// Function needed by reflection in <see cref="CreateNamedOnnxValueGetterVec(DataViewRow, Type, int, OnnxShape)"/>. 832private static INamedOnnxValueGetter CreateNamedOnnxValueGetterVecCore<T>(DataViewRow input, int colIndex, OnnxShape onnxShape) 850public NameOnnxValueGetter(DataViewRow input, int colIndex) 876public NamedOnnxValueGetterVec(DataViewRow input, int colIndex, OnnxShape tensorShape)
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
569protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.PerformanceTests (2)
HashBench.cs (2)
90var outRow = mapper.GetRow(_inRow, column); 107var outRow = mapper.GetRow(_inRow, column);
Microsoft.ML.Recommender (3)
MatrixFactorizationPredictor.cs (3)
392private Delegate[] CreateGetter(DataViewRow input, bool[] active) 411DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Microsoft.ML.StandardTrainers (9)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (2)
99DataViewRow ISchemaBoundRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns)
Standard\LinearModelParameters.cs (5)
374private protected virtual DataViewRow GetSummaryIRowOrNull(RoleMappedSchema schema) 387DataViewRow ICanGetSummaryAsIRow.GetSummaryIRowOrNull(RoleMappedSchema schema) => GetSummaryIRowOrNull(schema); 389private protected virtual DataViewRow GetStatsIRowOrNull(RoleMappedSchema schema) => null; 391DataViewRow ICanGetSummaryAsIRow.GetStatsIRowOrNull(RoleMappedSchema schema) => GetStatsIRowOrNull(schema); 547private protected override DataViewRow GetStatsIRowOrNull(RoleMappedSchema schema)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
1109DataViewRow ICanGetSummaryAsIRow.GetSummaryIRowOrNull(RoleMappedSchema schema) 1114DataViewRow ICanGetSummaryAsIRow.GetStatsIRowOrNull(RoleMappedSchema schema)
Microsoft.ML.TensorFlow (9)
TensorflowTransform.cs (9)
215private static ITensorValueGetter CreateTensorValueGetter<T>(DataViewRow input, bool isVector, int colIndex, TensorShape tfShape) 222private static ITensorValueGetter CreateTensorValueGetter(DataViewRow input, TF_DataType tfType, bool isVector, int colIndex, TensorShape tfShape) 229DataViewRow input, 641private Delegate CreateGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, OutputCache outputCache) 653public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 698protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 701private Delegate MakeGetter<T>(DataViewRow input, int iinfo, ITensorValueGetter[] srcTensorGetters, string[] activeOutputColNames, OutputCache outputCache) where T : unmanaged 827public TensorValueGetter(DataViewRow input, int colIndex, TensorShape tfShape) 875public TensorValueGetterVec(DataViewRow input, int colIndex, TensorShape tfShape)
Microsoft.ML.TestFramework (8)
DataPipe\TestDataPipeBase.cs (8)
865protected Func<bool> GetIdComparer(DataViewRow r1, DataViewRow r2, out ValueGetter<DataViewRowId> idGetter) 881protected Func<bool> GetColumnComparer(DataViewRow r1, DataViewRow r2, int col, DataViewType type, bool exactDoubles) 1000protected Func<bool> GetComparerOne<T>(DataViewRow r1, DataViewRow r2, int col, Func<T, T, bool> fn) 1017protected Func<bool> GetComparerVec<T>(DataViewRow r1, DataViewRow r2, int col, int size, Func<T, T, bool> fn)
Microsoft.ML.Tests (2)
Transformers\HashTests.cs (2)
135var inRow = AnnotationUtils.AnnotationsAsRow(builder.ToAnnotations()); 143var outRow = mapper.GetRow(inRow, col);
Microsoft.ML.TimeSeries (26)
PredictionEngine.cs (6)
44Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer); 160internal DataViewRow GetStatefulRows(DataViewRow input, IRowToRowMapper mapper, IEnumerable<DataViewSchema.Column> activeColumns, List<StatefulRow> rows) 183var row = mapper.GetRow(input, activeColumns); 197DataViewRow result = input; 221DataViewRow outputRowLocal = outputRowLocal = GetStatefulRows(inputRow, mapper, mapper.OutputSchema, rows);
SequentialAnomalyDetectionTransformBase.cs (4)
352public Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 364private Delegate MakeGetter(DataViewRow input, AnomalyDetectionStateBase state) 380public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 390private Action<PingerArgument> MakePinger(DataViewRow input, AnomalyDetectionStateBase state)
SequentialForecastingTransformBase.cs (4)
156public Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 198private Delegate MakeGetter(DataViewRow input, ForecastingStateBase state) 221public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 231private Action<PingerArgument> MakePinger(DataViewRow input, ForecastingStateBase state)
SequentialTransformerBase.cs (8)
610DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 622private readonly DataViewRow _input; 635public RowImpl(ColumnBindings bindings, DataViewRow input, Delegate[] getters, Action<PingerArgument> pinger, Action disposer) 928DataViewRow IRowToRowMapper.GetRow(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns) 946private readonly DataViewRow _input; 959public StatefulRowImpl(DataViewRow input, TimeSeriesRowToRowMapperTransform parent,
SrCnnTransformBase.cs (4)
195public Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 207private Delegate MakeGetter(DataViewRow input, SrCnnStateBase state) 223public Action<PingerArgument> CreatePinger(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 233private Action<PingerArgument> MakePinger(DataViewRow input, SrCnnStateBase state)
Microsoft.ML.TorchSharp (22)
AutoFormerV2\ObjectDetectionTrainer.cs (6)
790protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 793private Delegate CreateGetter(DataViewRow input, int iinfo, TensorCacher outputCacher) 804private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 828private Delegate MakePredictedLabelGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 852private Delegate MakeBoundingBoxGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 876public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
NasBert\NasBertTrainer.cs (1)
566protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
NasBert\NerTrainer.cs (2)
370private protected override Delegate CreateGetter(DataViewRow input, int iinfo, TensorCacher outputCacher) 412private Delegate MakePredictedLabelGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
NasBert\SentenceSimilarityTrainer.cs (2)
264private protected override Delegate CreateGetter(DataViewRow input, int iinfo, TensorCacher outputCacher) 270private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
NasBert\TextClassificationTrainer.cs (3)
307private protected override Delegate CreateGetter(DataViewRow input, int iinfo, TensorCacher outputCacher) 316private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 347private Delegate MakePredictedLabelGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
Roberta\QATrainer.cs (5)
761protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 764private Delegate CreateGetter(DataViewRow input, int iinfo, TensorCacher outputCacher) 773private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 800private Delegate MakePredictedAnswerGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 827public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
TorchSharpBaseTrainer.cs (3)
485protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 488private protected abstract Delegate CreateGetter(DataViewRow input, int iinfo, TensorCacher outputCacher); 490public override Delegate[] CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer)
Microsoft.ML.Transforms (101)
CountFeatureSelection.cs (6)
352private static CountAggregator GetOneAggregator(DataViewRow row, DataViewType colType, int colSrc) 354Func<DataViewRow, DataViewType, int, CountAggregator> del = GetOneAggregator<int>; 359private static CountAggregator GetOneAggregator<T>(DataViewRow row, DataViewType colType, int colSrc) 364private static CountAggregator GetVecAggregator(DataViewRow row, VectorDataViewType colType, int colSrc) 366Func<DataViewRow, VectorDataViewType, int, CountAggregator> del = GetVecAggregator<int>; 371private static CountAggregator GetVecAggregator<T>(DataViewRow row, VectorDataViewType colType, int colSrc)
CustomMappingTransformer.cs (2)
130Delegate[] IRowMapper.CreateGetters(DataViewRow input, Func<int, bool> activeOutput, out Action disposer) 166private Delegate GetDstGetter<T>(DataViewRow input, int colIndex, Action refreshAction)
Dracula\CountTableTransformer.cs (4)
222private ValueGetter<long> GetLabelGetter(DataViewRow row, DataViewSchema.Column col) 672protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 680private ValueGetter<VBuffer<float>> ConstructSingleGetter(DataViewRow input, int iinfo) 697private ValueGetter<VBuffer<float>> ConstructVectorGetter(DataViewRow input, int iinfo)
ExpressionTransformer.cs (15)
424private Delegate MakeGetter(IExceptionContext ectx, DataViewRow input, int iinfo) 426Func<IExceptionContext, DataViewRow, DataViewSchema.Column[], Delegate, ValueGetter<int>> d; 459private ValueGetter<TDst> GetGetter<T0, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 474private ValueGetter<TDst> GetGetter<T0, T1, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 492private ValueGetter<TDst> GetGetter<T0, T1, T2, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 513private ValueGetter<TDst> GetGetter<T0, T1, T2, T3, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 537private ValueGetter<TDst> GetGetter<T0, T1, T2, T3, T4, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, Delegate del) 564private Delegate MakeGetterVec(IExceptionContext ectx, DataViewRow input, int iinfo) 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) 666private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 726private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, T2, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 789private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, T2, T3, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 855private ValueGetter<VBuffer<TDst>> GetGetterVec<T0, T1, T2, T3, T4, TDst>(IExceptionContext ectx, DataViewRow input, DataViewSchema.Column[] inputColumns, int[] perm, Delegate del, DataViewType outputColumnItemType) 966protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
GcnTransform.cs (1)
360protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
GroupTransform.cs (8)
395private static readonly FuncStaticMethodInfo1<DataViewRow, int, Func<bool>> _makeSameCheckerMethodInfo 396= new FuncStaticMethodInfo1<DataViewRow, int, Func<bool>>(MakeSameChecker<int>); 400private static Func<bool> MakeSameChecker<T>(DataViewRow row, int col) 426public GroupKeyColumnChecker(DataViewRow row, int col) 439/// This class handles the aggregation of one 'keep' column into a vector. It wraps around an <see cref="DataViewRow"/>'s 448public static KeepColumnAggregator Create(DataViewRow row, int col) 456var cons = type.MakeGenericType(colType.RawType).GetConstructor(new[] { typeof(DataViewRow), typeof(int) }); 467public ListAggregator(DataViewRow row, int col)
HashJoiningTransform.cs (11)
457private static readonly FuncInstanceMethodInfo1<HashJoiningTransform, DataViewRow, int, Delegate> _composeGetterOneToOneMethodInfo 458= FuncInstanceMethodInfo1<HashJoiningTransform, DataViewRow, int, Delegate>.Create(target => target.ComposeGetterOneToOne<int>); 460private static readonly FuncInstanceMethodInfo1<HashJoiningTransform, DataViewRow, int, Delegate> _composeGetterVecToVecMethodInfo 461= FuncInstanceMethodInfo1<HashJoiningTransform, DataViewRow, int, Delegate>.Create(target => target.ComposeGetterVecToVec<int>); 463private static readonly FuncInstanceMethodInfo1<HashJoiningTransform, DataViewRow, int, Delegate> _composeGetterVecToOneMethodInfo 464= FuncInstanceMethodInfo1<HashJoiningTransform, DataViewRow, int, Delegate>.Create(target => target.ComposeGetterVecToOne<int>); 466protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer) 478FuncInstanceMethodInfo1<HashJoiningTransform, DataViewRow, int, Delegate> mi; 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 (3)
336protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 351private ValueGetter<VBuffer<float>> MakeGetterOne(DataViewRow input, int iinfo) 381private ValueGetter<VBuffer<float>> MakeGetterInd(DataViewRow input, int iinfo, VectorDataViewType typeSrc)
MissingValueDroppingTransformer.cs (4)
174private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate> _makeVecGetterMethodInfo 175= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate>.Create(target => target.MakeVecGetter<int>); 217protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 226private ValueGetter<VBuffer<TDst>> MakeVecGetter<TDst>(DataViewRow input, int iinfo)
MissingValueIndicatorTransform.cs (1)
237protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
MissingValueIndicatorTransformer.cs (9)
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>); 235protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 249private ValueGetter<bool> ComposeGetterOne(DataViewRow input, int iinfo) 252private ValueGetter<bool> ComposeGetterOne<T>(DataViewRow input, int iinfo) 271private ValueGetter<VBuffer<bool>> ComposeGetterVec(DataViewRow input, int iinfo) 274private ValueGetter<VBuffer<bool>> ComposeGetterVec<T>(DataViewRow input, int iinfo)
MissingValueReplacing.cs (9)
543private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate> _composeGetterOneMethodInfo 544= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate>.Create(target => target.ComposeGetterOne<int>); 546private static readonly FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate> _composeGetterVecMethodInfo 547= FuncInstanceMethodInfo1<Mapper, DataViewRow, int, Delegate>.Create(target => target.ComposeGetterVec<int>); 622protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 636private Delegate ComposeGetterOne(DataViewRow input, int iinfo) 642private Delegate ComposeGetterOne<T>(DataViewRow input, int iinfo) 662private Delegate ComposeGetterVec(DataViewRow input, int iinfo) 668private Delegate ComposeGetterVec<T>(DataViewRow input, int iinfo)
OptionalColumnTransform.cs (4)
248private static readonly FuncInstanceMethodInfo1<OptionalColumnTransform, DataViewRow, int, Delegate> _getSrcGetterMethodInfo 249= FuncInstanceMethodInfo1<OptionalColumnTransform, DataViewRow, int, Delegate>.Create(target => target.GetSrcGetter<int>); 375protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disposer) 404private ValueGetter<T> GetSrcGetter<T>(DataViewRow input, int iinfo)
RandomFourierFeaturizing.cs (3)
502protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 512private ValueGetter<VBuffer<float>> GetterFromVectorType(DataViewRow input, int iinfo) 529private ValueGetter<VBuffer<float>> GetterFromFloatType(DataViewRow input, int iinfo)
StatefulCustomMappingTransformer.cs (2)
158protected override Delegate[] CreateGetters(DataViewRow input, IEnumerable<DataViewSchema.Column> activeColumns, out Action disp) 195private Delegate GetDstGetter<T>(DataViewRow input, string colName, Action refreshAction)
StatefulFilterTransform.cs (1)
133private readonly DataViewRow _appendedRow;
Text\LdaTransform.cs (2)
596protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 605private ValueGetter<VBuffer<float>> GetTopic(DataViewRow input, int iinfo)
Text\NgramHashingTransformer.cs (1)
558protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\NgramTransform.cs (1)
670protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\StopWordsRemovingTransformer.cs (2)
402protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 1096protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\TextNormalizing.cs (3)
326protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 344private ValueGetter<ReadOnlyMemory<char>> MakeGetterOne(DataViewRow input, int iinfo) 358private ValueGetter<VBuffer<ReadOnlyMemory<char>>> MakeGetterVec(DataViewRow input, int iinfo)
Text\TokenizingByCharacters.cs (3)
464protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 475private ValueGetter<VBuffer<ushort>> MakeGetterOne(DataViewRow input, int iinfo) 504private ValueGetter<VBuffer<ushort>> MakeGetterVec(DataViewRow input, int iinfo)
Text\WordBagTransform.cs (1)
300protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer)
Text\WordEmbeddingsExtractor.cs (2)
543protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 551private ValueGetter<VBuffer<float>> GetGetterVec(DataViewRow input, int iinfo)
Text\WordTokenizing.cs (3)
234protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 249private ValueGetter<VBuffer<ReadOnlyMemory<char>>> MakeGetterOne(DataViewRow input, int iinfo) 275private ValueGetter<VBuffer<ReadOnlyMemory<char>>> MakeGetterVec(DataViewRow input, int iinfo)
Microsoft.ML.Vision (7)
DnnRetrainTransform.cs (7)
463private static ITensorValueGetter CreateTensorValueGetter<T>(DataViewRow input, bool isVector, int colIndex, TensorShape tfShape, bool keyType = false) 470private static ITensorValueGetter CreateTensorValueGetter(DataViewRow input, TF_DataType tfType, bool isVector, int colIndex, TensorShape tfShape) 480DataViewRow input, 856protected override Delegate MakeGetter(DataViewRow input, int iinfo, Func<int, bool> activeOutput, out Action disposer) 870private Delegate MakeGetter<T>(DataViewRow input, int iinfo, ITensorValueGetter[] srcTensorGetters, string[] activeOutputColNames, OutputCache outputCache) where T : unmanaged 980public TensorValueGetter(DataViewRow input, int colIndex, TensorShape tfShape, bool keyType = false) 1062public TensorValueGetterVec(DataViewRow input, int colIndex, TensorShape tfShape)