7 types derived from DataViewRowCursor
Microsoft.Data.Analysis (1)
DataFrame.IDataView.cs (1)
68private sealed class RowCursor : DataViewRowCursor
Microsoft.ML.Core (2)
Data\RootCursorBase.cs (1)
18internal abstract class RootCursorBase : DataViewRowCursor
Data\SynchronizedCursorBase.cs (1)
16internal abstract class SynchronizedCursorBase : DataViewRowCursor
Microsoft.ML.Data (3)
DataView\CacheDataView.cs (1)
1137private abstract class RowCursorSeekerBase : DataViewRowCursor
DataView\DataViewConstructionUtils.cs (1)
491public sealed class WrappedCursor : DataViewRowCursor
DataView\TypedCursor.cs (1)
36internal abstract class RowCursor<TRow> : DataViewRowCursor, IRowReadableAs<TRow>
Microsoft.ML.Samples (1)
Dynamic\SimpleDataViewImplementation.cs (1)
242private sealed class Cursor : DataViewRowCursor
614 references to DataViewRowCursor
Microsoft.Data.Analysis (26)
DataFrame.IDataView.cs (4)
43private DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded) 57DataViewRowCursor IDataView.GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand) 62DataViewRowCursor[] IDataView.GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand) 65return new DataViewRowCursor[] { GetRowCursorCore(columnsNeeded) };
DataFrameColumn.cs (3)
334protected internal virtual Delegate GetDataViewGetter(DataViewRowCursor cursor) => throw new NotImplementedException(); 349protected internal virtual void AddValueUsingCursor(DataViewRowCursor cursor, Delegate ValueGetter) => throw new NotImplementedException(); 356protected internal virtual Delegate GetValueGetterUsingCursor(DataViewRowCursor cursor, DataViewSchema.Column schemaColumn) => throw new NotImplementedException();
DataFrameColumns\ArrowStringDataFrameColumn.cs (2)
588protected internal override Delegate GetDataViewGetter(DataViewRowCursor cursor) 593private ValueGetter<ReadOnlyMemory<char>> CreateValueGetterDelegate(DataViewRowCursor cursor) =>
DataFrameColumns\StringDataFrameColumn.cs (4)
499protected internal override Delegate GetDataViewGetter(DataViewRowCursor cursor) 504private ValueGetter<ReadOnlyMemory<char>> CreateValueGetterDelegate(DataViewRowCursor cursor) => 507protected internal override void AddValueUsingCursor(DataViewRowCursor cursor, Delegate getter) 529protected internal override Delegate GetValueGetterUsingCursor(DataViewRowCursor cursor, DataViewSchema.Column schemaColumn)
DataFrameColumns\VBufferDataFrameColumn.cs (4)
172protected internal override Delegate GetDataViewGetter(DataViewRowCursor cursor) 177private ValueGetter<VBuffer<T>> CreateValueGetterDelegate(DataViewRowCursor cursor) => 185protected internal override Delegate GetValueGetterUsingCursor(DataViewRowCursor cursor, DataViewSchema.Column schemaColumn) 190protected internal override void AddValueUsingCursor(DataViewRowCursor cursor, Delegate getter)
IDataView.Extension.cs (1)
129using (DataViewRowCursor cursor = dataView.GetRowCursor(activeDataViewColumns))
PrimitiveDataFrameColumn.cs (8)
859protected internal override Delegate GetDataViewGetter(DataViewRowCursor cursor) 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) => 897protected internal override void AddValueUsingCursor(DataViewRowCursor cursor, Delegate getter) 918protected internal override Delegate GetValueGetterUsingCursor(DataViewRowCursor cursor, DataViewSchema.Column schemaColumn)
Microsoft.ML.AutoML (8)
AutoMLExperiment\ITrialResultManager.cs (1)
149var rowCursor = dataView.GetRowCursor(_schema);
ColumnInference\ColumnTypeInference.cs (1)
275using (var cursor = idv.GetRowCursor(idv.Schema))
ColumnInference\PurposeInference.cs (1)
91using (var cursor = _data.GetRowCursor(new[] { column }))
ColumnInference\TextFileContents.cs (1)
98using (var cursor = idv.GetRowCursor(new[] { column }))
DatasetDimensions\DatasetDimensionsUtil.cs (4)
17using (var cursor = data.GetRowCursor(new[] { column })) 33using (var cursor = data.GetRowCursor(new[] { column })) 51using (var cursor = data.GetRowCursor(new[] { column })) 69using (var cursor = data.GetRowCursor(new[] { data.Schema[0] }))
Microsoft.ML.CodeGenerator (2)
Utils.cs (2)
57var rowCursor = dataView.GetRowCursor(featureColumns); 85internal static string GetValueFromColumn<T>(DataViewRowCursor rowCursor, DataViewSchema.Column column)
Microsoft.ML.Core (13)
Data\LinkedRootCursorBase.cs (5)
10/// Base class for a cursor has an input cursor, but still needs to do work on <see cref="DataViewRowCursor.MoveNext"/>. 17protected DataViewRowCursor Input { get; } 20/// Returns the root cursor of the input. It should be used to perform <see cref="DataViewRowCursor.MoveNext"/> 26protected DataViewRowCursor Root { get; } 30protected LinkedRootCursorBase(IChannelProvider provider, DataViewRowCursor input)
Data\LinkedRowFilterCursorBase.cs (1)
17protected LinkedRowFilterCursorBase(IChannelProvider provider, DataViewRowCursor input, DataViewSchema schema, bool[] active)
Data\LinkedRowRootCursorBase.cs (3)
10/// A base class for a <see cref="DataViewRowCursor"/> that has an input cursor, but still needs to do work on 11/// <see cref="DataViewRowCursor.MoveNext"/>. Note that the default 23protected LinkedRowRootCursorBase(IChannelProvider provider, DataViewRowCursor input, DataViewSchema schema, bool[] active)
Data\SynchronizedCursorBase.cs (4)
12/// It delegates all <see cref="DataViewRowCursor"/> functionality except Dispose() to the root cursor. 27internal readonly DataViewRowCursor Root; 30protected DataViewRowCursor Input { get; } 42protected SynchronizedCursorBase(IChannelProvider provider, DataViewRowCursor input)
Microsoft.ML.Core.Tests (19)
UnitTests\CoreBaseTestClass.cs (8)
214using (var curs2 = view2.GetRowCursor(view2EvenCols)) 225using (var curs2 = view2.GetRowCursor(view2OddCols)) 233using (var curs1 = view1.GetRowCursor(view1.Schema)) 244protected bool CheckSameValues(DataViewRowCursor curs1, DataViewRowCursor curs2, bool exactTypes, bool exactDoubles, bool checkId, bool checkIdCollisions = true) 324protected bool CheckSameValues(DataViewRowCursor curs1, IDataView view2, bool exactTypes = true, bool exactDoubles = true, bool checkId = true) 330var cursors = new DataViewRowCursor[colLim]; 400var c = cursors[col];
UnitTests\TestEntryPoints.cs (11)
103using (var cursor = dataView.GetRowCursor()) 4493using (var curs = view.GetRowCursor(treesCol.Value, leavesCol.Value, pathsCol.Value)) 5001using (var cursor = data.GetRowCursor(aucCol.Value)) 5179using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value, isWeightedCol.Value)) 5361using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value)) 5587using (var cursor = warnings.GetRowCursor(warningCol.Value)) 5770using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value)) 6070using (var cursor = data.GetRowCursor(metricCol.Value, foldCol.Value)) 6122using (var cursor = data.GetRowCursor(nameCol.Value)) 6287using (var cursor = data.GetRowCursor(accCol.Value)) 6459using (var cursor = data.GetRowCursor(accCol.Value))
Microsoft.ML.Data (335)
Commands\DataCommand.cs (1)
159using (var cursor = data.GetRowCursorForAllColumns())
Data\DataViewUtils.cs (29)
87using (var cursor = view.GetRowCursor()) 113public static bool TryCreateConsolidatingCursor(out DataViewRowCursor curs, 149public static DataViewRowCursor[] CreateSplitCursors(IChannelProvider provider, DataViewRowCursor input, int num) 155return new DataViewRowCursor[1] { input }; 159return new DataViewRowCursor[1] { input }; 222public static bool SameSchemaAndActivity(DataViewRowCursor[] cursors) 227var firstCursor = cursors[0]; 256public static DataViewRowCursor ConsolidateGeneric(IChannelProvider provider, DataViewRowCursor[] inputs, int batchSize) 295private static readonly FuncInstanceMethodInfo1<Splitter, DataViewRowCursor, int, InPipe> _createInPipeMethodInfo 296= FuncInstanceMethodInfo1<Splitter, DataViewRowCursor, int, InPipe>.Create(target => target.CreateInPipe<int>); 321public static DataViewRowCursor Consolidate(IChannelProvider provider, DataViewRowCursor[] inputs, int batchSize, ref object[] ourPools) 330private static DataViewRowCursor ConsolidateCore(IChannelProvider provider, DataViewRowCursor[] inputs, ref object[] ourPools, IChannel ch) 337DataViewRowCursor cursor = inputs[0]; 372var localCursor = inputs[t]; 496public static DataViewRowCursor[] Split(IChannelProvider provider, DataViewSchema schema, DataViewRowCursor input, int cthd) 508private DataViewRowCursor[] SplitCore(IChannelProvider ch, DataViewRowCursor input, int cthd) 1148private readonly DataViewRowCursor[] _cursors; 1161private DataViewRowCursor _currentCursor; 1182public SynchronousConsolidatingCursor(IChannelProvider provider, DataViewRowCursor[] cursors) 1205DataViewRowCursor cursor = _cursors[i]; 1222foreach (var cursor in _cursors) 1253var cursor = _cursors[i]; 1328public static ValueGetter<ReadOnlyMemory<char>>[] PopulateGetterArray(DataViewRowCursor cursor, List<int> colIndices)
Data\ITransposeDataView.cs (1)
18/// (naturally, as opposed to row-by-row through an <see cref="DataViewRowCursor"/>). This interface
Data\RowCursorUtils.cs (5)
486/// <param name="columnsNeeded">The subset of columns from the <see cref="DataViewSchema"/> that are needed from this <see cref="DataViewRowCursor"/>.</param> 525public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnNeeded, Random rand = null) 532public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnNeeded, int n, Random rand = null) 535return new DataViewRowCursor[] { GetRowCursor(columnNeeded, rand) }; 614+ nameof(DataViewRowCursor.MoveNext) + ", or at any point after that method returned false.";
Data\SlotCursor.cs (3)
12/// what <see cref="DataViewRowCursor"/> is to <see cref="IDataView"/>. 79/// for <see cref="DataViewRowCursor"/>s. 103/// analogous to the <see cref="RootCursorBase"/> for <see cref="DataViewRowCursor"/>s.
DataDebuggerPreview.cs (1)
44using (var cursor = data.GetRowCursorForAllColumns())
DataLoadSave\Binary\BinaryLoader.cs (4)
1189private DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 1202public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 1208public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 1211return new DataViewRowCursor[] { GetRowCursorCore(columnsNeeded, rand) };
DataLoadSave\Binary\BinarySaver.cs (6)
95public static WritePipe Create(BinarySaver parent, DataViewRowCursor cursor, ColumnCodec col) 116public WritePipe(BinarySaver parent, DataViewRowCursor cursor, ColumnCodec col) 587using (DataViewRowCursor cursor = data.GetRowCursor(data.Schema.Where(c => activeSet.Contains(c.Index)))) 745using (DataViewRowCursor cursor = data.GetRowCursor(data.Schema.Where(x => active.Contains(x.Index)), rand)) 775private delegate void EstimatorDelegate(DataViewRowCursor cursor, ColumnCodec col, 778private void EstimatorCore<T>(DataViewRowCursor cursor, ColumnCodec col,
DataLoadSave\Database\DatabaseLoader.cs (3)
720public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 727public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 729return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) };
DataLoadSave\Database\DatabaseLoaderCursor.cs (1)
96public static DataViewRowCursor Create(DatabaseLoader parent, DatabaseSource source, bool[] active)
DataLoadSave\LegacyCompositeDataLoader.cs (2)
585public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 593public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
DataLoadSave\Text\TextLoader.cs (2)
1662public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 1669public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
DataLoadSave\Text\TextLoaderCursor.cs (5)
138public static DataViewRowCursor Create(TextLoader parent, IMultiStreamSource files, bool[] active) 155public static DataViewRowCursor[] CreateSet(TextLoader parent, IMultiStreamSource files, bool[] active, int n) 170return new DataViewRowCursor[1] { new Cursor(parent, stats, active, reader, srcNeeded, 1) }; 172var cursors = new DataViewRowCursor[cthd]; 185foreach (var curs in cursors)
DataLoadSave\Text\TextSaver.cs (5)
60public static ValueWriter Create(DataViewRowCursor cursor, int col, char sep) 161public VecValueWriter(DataViewRowCursor cursor, VectorDataViewType type, int source, char sep) 226public ValueWriter(DataViewRowCursor cursor, PrimitiveDataViewType type, int source, char sep) 428using (var cursor = data.GetRowCursor(activeCols)) 576public void Run(DataViewRowCursor cursor, ref long count, out int minLen, out int maxLen)
DataLoadSave\Transpose\TransposeLoader.cs (9)
320private static readonly FuncInstanceMethodInfo1<TransposeLoader, DataViewRowCursor, SlotCursor> _getSlotCursorCoreMethodInfo 321= FuncInstanceMethodInfo1<TransposeLoader, DataViewRowCursor, SlotCursor>.Create(target => target.GetSlotCursorCore<int>); 622public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 630public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 634return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) }; 650DataViewRowCursor inputCursor = view.GetRowCursorForAllColumns(); 665private SlotCursor GetSlotCursorCore<T>(DataViewRowCursor inputCursor) 674private readonly DataViewRowCursor _rowCursor; 676public SlotCursor(TransposeLoader parent, DataViewRowCursor cursor)
DataView\AppendRowsDataView.cs (8)
147public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 154public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 156return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) }; 216private DataViewRowCursor _currentCursor; 307private readonly DataViewRowCursor[] _cursorSet; 321_cursorSet = new DataViewRowCursor[counts.Length]; 357var rowCursor = _cursorSet[_currentSourceIndex]; 385foreach (DataViewRowCursor c in _cursorSet)
DataView\ArrayDataViewBuilder.cs (3)
235public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 243public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 248return new DataViewRowCursor[] { new Cursor(_host, this, predicate, rand) };
DataView\BatchDataViewMapperBase.cs (12)
30public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 44var inputCursor = _source.GetRowCursor(_source.Schema.Where(c => activeInput[c.Index]), null); 58public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 64protected abstract TBatch CreateBatch(DataViewRowCursor input); 67protected abstract Func<bool> GetLastInBatchDelegate(DataViewRowCursor lookAheadCursor); 68protected abstract Func<bool> GetIsNewBatchDelegate(DataViewRowCursor lookAheadCursor); 69protected abstract ValueGetter<TInput> GetLookAheadGetter(DataViewRowCursor lookAheadCursor); 70protected abstract Delegate[] CreateGetters(DataViewRowCursor input, TBatch currentBatch, bool[] active); 76private readonly DataViewRowCursor _lookAheadCursor; 77private readonly DataViewRowCursor _input; 92public Cursor(BatchDataViewMapperBase<TInput, TBatch> parent, DataViewRowCursor input, DataViewRowCursor lookAheadCursor, bool[] active)
DataView\CacheDataView.cs (16)
209public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 243private DataViewRowCursor GetRowCursorWaiterCore<TWaiter>(TWaiter waiter, Func<int, bool> predicate, Random rand) 255public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 264return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) }; 272private DataViewRowCursor[] GetRowCursorSetWaiterCore<TWaiter>(TWaiter waiter, Func<int, bool> predicate, int n, Random rand) 280DataViewRowCursor[] cursors = new DataViewRowCursor[n]; 293private DataViewRowCursor CreateCursor<TIndex>(Func<int, bool> predicate, TIndex index) 332DataViewRowCursor cursor; 382private void Filler(DataViewRowCursor cursor, ColumnCache[] caches, OrderedWaiter waiter) 739/// (This in constrast to public <see cref="DataViewRowCursor"/> objects, whose move methods are 1279public static ColumnCache Create(CacheDataView parent, DataViewRowCursor input, int srcCol, OrderedWaiter waiter) 1299new Type[] { typeof(CacheDataView), typeof(DataViewRowCursor), typeof(int), typeof(OrderedWaiter) }, null); 1347public ImplVec(CacheDataView parent, DataViewRowCursor input, int srcCol, OrderedWaiter waiter) 1430public ImplOne(CacheDataView parent, DataViewRowCursor input, int srcCol, OrderedWaiter waiter) 1465public ColumnCache(CacheDataView parent, DataViewRowCursor input, int srcCol, OrderedWaiter waiter)
DataView\DataViewConstructionUtils.cs (5)
484public abstract DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null); 486public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 620public override DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 703public override DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 772public override DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null)
DataView\DataViewExtensions.cs (9)
18/// <param name="columnsNeeded">The columns requested by this <see cref="DataViewRowCursor"/>, or as otherwise called, the active columns. 21public static DataViewRowCursor GetRowCursor(this IDataView dv, params DataViewSchema.Column[] columnsNeeded) 27$" is not present in the {nameof(IDataView)} where the {nameof(DataViewRowCursor)} is being requested."); 37/// <param name="columnNeeded">The column requested by this <see cref="DataViewRowCursor"/>, or as otherwise called, the active column.</param> 39public static DataViewRowCursor GetRowCursor(this IDataView dv, DataViewSchema.Column columnNeeded) 42$" is not present in the {nameof(IDataView)} where the {nameof(DataViewRowCursor)} is being requested."); 48/// Get a row cursor. No colums are needed by this <see cref="DataViewRowCursor"/>. 50public static DataViewRowCursor GetRowCursor(this IDataView dv) => dv.GetRowCursor(Enumerable.Empty<DataViewSchema.Column>()); 55public static DataViewRowCursor GetRowCursorForAllColumns(this IDataView dv) => dv.GetRowCursor(dv.Schema);
DataView\EmptyDataView.cs (2)
33public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 39public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
DataView\LambdaFilter.cs (5)
111protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 120var input = Source.GetRowCursor(inputCols, rand); 124public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 137var cursors = new DataViewRowCursor[inputs.Length]; 161public Cursor(Impl<T1, T2> parent, DataViewRowCursor input, bool[] active)
DataView\OpaqueDataView.cs (2)
28public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 31public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
DataView\RowToRowMapperTransform.cs (5)
40/// <see cref="DataViewRowCursor"/> out of this, the <paramref name="disposer"/> delegate (if non-null) should be called 189protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 197public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 211var cursors = new DataViewRowCursor[inputs.Length]; 368public Cursor(IChannelProvider provider, DataViewRowCursor input, RowToRowMapperTransform parent, bool[] active)
DataView\Transposer.cs (18)
287public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 290public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 384using (var cursor = _view.GetRowCursor(currentColumn)) 536using (var cursor = _view.GetRowCursor(currentColumn)) 831public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 842public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 1269public Cursor(IChannelProvider provider, DataViewSlicer slicer, DataViewRowCursor input, Func<int, bool> pred, bool[] activeSplitters) 1330private static readonly FuncStaticMethodInfo1<IChannelProvider, SlotCursor, DataViewRowCursor> _getRowCursorShimCoreMethodInfo 1331= new FuncStaticMethodInfo1<IChannelProvider, SlotCursor, DataViewRowCursor>(GetRowCursorShimCore<int>); 1386/// to handle <see cref="DataViewRowCursor"/> and <see cref="DataViewRow"/> but that know nothing about 1394public static DataViewRowCursor GetRowCursorShim(IChannelProvider provider, SlotCursor cursor) 1402private static DataViewRowCursor GetRowCursorShimCore<T>(IChannelProvider provider, SlotCursor cursor) 1412private static readonly FuncInstanceMethodInfo1<SlotDataView, bool, DataViewRowCursor> _getRowCursorMethodInfo 1413= FuncInstanceMethodInfo1<SlotDataView, bool, DataViewRowCursor>.Create(target => target.GetRowCursor<int>); 1449public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 1455private DataViewRowCursor GetRowCursor<T>(bool active) 1460public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 1462return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) };
DataView\TypedCursor.cs (3)
187var cursor = _data.GetRowCursor(inputCols, rand); 630private readonly DataViewRowCursor _input; 632public TypedCursor(TypedCursorable<TRow> parent, DataViewRowCursor input)
DataView\ZipDataView.cs (9)
75public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 93/// Create an <see cref="DataViewRowCursor"/> with no requested columns on a data view. 97private DataViewRowCursor GetMinimumCursor(IDataView dv) 103public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 105return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) }; 110private readonly DataViewRowCursor[] _cursors; 117public Cursor(ZipDataView parent, DataViewRowCursor[] srcCursors, Func<int, bool> predicate) 153foreach (var cursor in _cursors) 185var rowCursor = _cursors[dv];
Dirty\ChooseColumnsByIndexTransform.cs (5)
245protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 254var input = Source.GetRowCursor(inputCols, rand); 258public sealed override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 272var cursors = new DataViewRowCursor[inputs.Length]; 283public Cursor(IChannelProvider provider, Bindings bindings, DataViewRowCursor input, bool[] active)
Evaluators\AnomalyDetectionEvaluator.cs (3)
606using (var cursor = overall.GetRowCursorForAllColumns()) 670using (var cursor = top.GetRowCursorForAllColumns()) 726using (var cursor = overall.GetRowCursor(overall.Schema.Where(col => col.Name.Equals(AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies) ||
Evaluators\BinaryClassifierEvaluator.cs (7)
830using (var cursor = overall.GetRowCursorForAllColumns()) 879using (var cursor = prCurveView.GetRowCursorForAllColumns()) 896using (var cursor = overall.GetRowCursorForAllColumns()) 909DataViewRowCursor cursor, 957using (var cursor = overall.GetRowCursorForAllColumns()) 1005using (var cursor = prCurveView.GetRowCursorForAllColumns()) 1021using (var cursor = overall.GetRowCursorForAllColumns())
Evaluators\ClusteringEvaluator.cs (1)
86using (var cursor = overall.GetRowCursorForAllColumns())
Evaluators\EvaluatorBase.cs (1)
148using (var cursor = data.GetRowCursor(activeCols))
Evaluators\EvaluatorUtils.cs (4)
276using (var cursor = metricsView.GetRowCursorForAllColumns()) 1103using (var cursor = data.GetRowCursorForAllColumns()) 1476using (var cursor = confusionDataView.GetRowCursor(confusionDataView.Schema.Where(col => col.Index == countIndex || hasStrat && col.Index == stratCol))) 1739using (var cursor = warnings.GetRowCursor(warnings.Schema[MetricKinds.ColumnNames.WarningText]))
Evaluators\MulticlassClassificationEvaluator.cs (1)
568using (var cursor = overall.GetRowCursorForAllColumns())
Evaluators\MultiOutputRegressionEvaluator.cs (1)
679using (var cursor = fold.GetRowCursorForAllColumns())
Evaluators\RankingEvaluator.cs (3)
269using (var cursor = overall.GetRowCursorForAllColumns()) 622public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 625public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
Evaluators\RegressionEvaluator.cs (1)
188using (var cursor = overall.GetRowCursorForAllColumns())
Prediction\Calibrator.cs (1)
966using (var cursor = scored.GetRowCursor(cols))
Scorers\RowToRowScorerBase.cs (5)
129protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 138var input = Source.GetRowCursor(inputCols, rand); 142public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 159var cursors = new DataViewRowCursor[inputs.Length]; 238public Cursor(IChannelProvider provider, RowToRowScorerBase parent, DataViewRowCursor input, bool[] active, IEnumerable<DataViewSchema.Column> activeMapperColumns)
Training\TrainerUtils.cs (17)
248public static DataViewRowCursor CreateRowCursor(this RoleMappedData data, CursOpt opt, Random rand, IEnumerable<int> extraCols = null) 255public static DataViewRowCursor[] CreateRowCursorSet(this RoleMappedData data, 481/// "convenience" cursor-like objects, less general than a <see cref="DataViewRowCursor"/> but 495private readonly DataViewRowCursor _cursor; 506protected TrainingCursorBase(DataViewRowCursor input, Action<CursOpt> signal) 514protected static DataViewRowCursor CreateCursor(RoleMappedData data, CursOpt opt, Random rand, params int[] extraCols) 568/// <see cref="DataViewRowCursor"/> directly. That is, this is only for very advanced scenarios. 629var input = _data.CreateRowCursor(opt, rand, extraCols); 680protected abstract TCurs CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal); 741protected StandardScalarCursor(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null) 806protected override StandardScalarCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal) 831protected FeatureFloatVectorCursor(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null) 872protected override FeatureFloatVectorCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal) 898protected FloatLabelCursor(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null) 938protected override FloatLabelCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal) 967protected MulticlassLabelCursor(int classCount, DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal = null) 1016protected override MulticlassLabelCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal)
Transforms\BindingsWrappedRowCursor.cs (1)
28public BindingsWrappedRowCursor(IChannelProvider provider, DataViewRowCursor input, ColumnBindingsBase bindings)
Transforms\BootstrapSamplingTransformer.cs (7)
168protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 172var input = Source.GetRowCursor(columnsNeeded, _shuffleInput ? new TauswortheHybrid(rgen) : null); 173DataViewRowCursor cursor = new Cursor(this, input, rgen); 179public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 181var cursor = GetRowCursorCore(columnsNeeded, rand); 182return new DataViewRowCursor[] { cursor }; 195public Cursor(BootstrapSamplingTransformer parent, DataViewRowCursor input, Random rgen)
Transforms\ColumnSelecting.cs (6)
679public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 685var inputRowCursor = Source.GetRowCursor(inputCols, rand); 692public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 705var cursors = new DataViewRowCursor[inputs.Length]; 757private readonly DataViewRowCursor _inputCursor; 759public Cursor(IChannelProvider provider, Mapper mapper, DataViewRowCursor input, bool[] active)
Transforms\GenerateNumberTransform.cs (7)
337protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 346var input = Source.GetRowCursor(inputCols); 350public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 359DataViewRowCursor input; 368var cursors = new DataViewRowCursor[inputs.Length]; 378return new DataViewRowCursor[] { new Cursor(Host, _bindings, input, active) }; 390public Cursor(IChannelProvider provider, Bindings bindings, DataViewRowCursor input, bool[] active)
Transforms\Hashing.cs (1)
227using (DataViewRowCursor srcCursor = input.GetRowCursor(sourceColumnsForInvertHash))
Transforms\NAFilter.cs (5)
207protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 215var input = Source.GetRowCursor(inputCols, rand); 219public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 231var cursors = new DataViewRowCursor[inputs.Length]; 386public Cursor(NAFilter parent, DataViewRowCursor input, bool[] active)
Transforms\NopTransform.cs (2)
120public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 123public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
Transforms\NormalizeColumn.cs (13)
967int icol, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 980int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1004int icol, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1018int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1044int icol, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1057int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1084int icol, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1098int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1124int icol, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1151string labelColumn, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1158int labelColumnId, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1196int icol, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 1211int srcIndex, DataViewType srcType, DataViewRowCursor cursor)
Transforms\Normalizer.cs (8)
144internal abstract IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor); 187internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 205internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 223internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 239internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 263internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 283internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 564using (var cursor = data.GetRowCursor(activeCols))
Transforms\PerGroupTransformBase.cs (9)
157public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 160return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) }; 163public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 177var inputCursor = Source.GetRowCursor(activeCols, null); 183private DataViewRowCursor GetRowCursorCore(Func<int, bool> predicate) 233private readonly DataViewRowCursor _groupCursor; 234private readonly DataViewRowCursor _input; 249public Cursor(PerGroupTransformBase<TLabel, TScore, TState> parent, DataViewRowCursor input, DataViewRowCursor groupCursor, bool[] active)
Transforms\RangeFilter.cs (17)
208protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 216var input = Source.GetRowCursor(inputCols, rand); 220public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 233var cursors = new DataViewRowCursor[inputs.Length]; 239private DataViewRowCursor CreateCursorCore(DataViewRowCursor input, bool[] active) 274protected RowCursorBase(RangeFilter parent, DataViewRowCursor input, bool[] active) 333public static DataViewRowCursor CreateKeyRowCursor(RangeFilter filter, DataViewRowCursor input, bool[] active) 336Func<RangeFilter, DataViewRowCursor, bool[], DataViewRowCursor> del = CreateKeyRowCursor<int>; 338return (DataViewRowCursor)methodInfo.Invoke(null, new object[] { filter, input, active }); 341private static DataViewRowCursor CreateKeyRowCursor<TSrc>(RangeFilter filter, DataViewRowCursor input, bool[] active) 354public SingleRowCursor(RangeFilter parent, DataViewRowCursor input, bool[] active) 387public DoubleRowCursor(RangeFilter parent, DataViewRowCursor input, bool[] active) 422public KeyRowCursor(RangeFilter parent, DataViewRowCursor input, bool[] active)
Transforms\RowShufflingTransformer.cs (8)
225public static DataViewRowCursor GetShuffledCursor(IChannelProvider provider, int poolRows, DataViewRowCursor cursor, Random rand) 251protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 281var input = _subsetInput.GetRowCursor(columnsNeeded, sourceRand); 290public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 293return new DataViewRowCursor[] { GetRowCursorCore(columnsNeeded, rand) }; 466private readonly DataViewRowCursor _input; 502public Cursor(IChannelProvider provider, int poolRows, DataViewRowCursor input, Random rand)
Transforms\SkipTakeFilter.cs (5)
211protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 215var input = Source.GetRowCursor(columnsNeeded); 220public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 223return new DataViewRowCursor[] { GetRowCursorCore(columnsNeeded) }; 238public Cursor(IChannelProvider provider, DataViewRowCursor input, DataViewSchema schema, bool[] active, long skip, long take)
Transforms\TransformBase.cs (10)
65public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 78DataViewRowCursor curs; 99protected abstract DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null); 101public abstract DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null); 261/// a <see cref="DataViewSchema"/> or a <see cref="DataViewRowCursor"/>, 734protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 742var input = Source.GetRowCursor(inputCols, rand); 746public sealed override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 760var cursors = new DataViewRowCursor[inputs.Length]; 853public Cursor(IChannelProvider provider, OneToOneTransformBase parent, DataViewRowCursor input, bool[] active)
Transforms\ValueMapping.cs (5)
463using (var cursor = dataView.GetRowCursor(dataView.Schema[keyColumn.Index], dataView.Schema[valueColumn.Index])) 480using (var cursor = loader.GetRowCursorForAllColumns()) 562using (var cursor = idv.GetRowCursorForAllColumns()) 817public abstract void Train(IHostEnvironment env, DataViewRowCursor cursor); 855public override void Train(IHostEnvironment env, DataViewRowCursor cursor)
Transforms\ValueToKeyMappingTransformer.cs (2)
483using (var cursor = keyData.GetRowCursor(keyData.Schema[0])) 587using (var cursor = trainingData.GetRowCursor(trainingData.Schema.Where(c => toTrain.Contains(c.Index))))
Utilities\ColumnCursor.cs (4)
104using (var cursor = data.GetRowCursor(column)) 122using (var cursor = data.GetRowCursor(column)) 140using (var cursor = data.GetRowCursor(column)) 162using (var cursor = data.GetRowCursor(column))
Utilities\ModelFileUtils.cs (1)
301using (var cursor = loader.GetRowCursorForAllColumns())
Microsoft.ML.DataView (6)
IDataView.cs (6)
48DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null); 72DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null); 82/// or <see cref="DataViewRowCursor"/>. 93/// -1 when the object is in a state where values cannot be fetched. In particular, for an <see cref="DataViewRowCursor"/>, 94/// this will be before <see cref="DataViewRowCursor.MoveNext"/> if ever called for the first time, or after the first time 95/// <see cref="DataViewRowCursor.MoveNext"/> is called and returns <see langword="false"/>.
Microsoft.ML.KMeansClustering (2)
KMeansPlusPlusTrainer.cs (2)
1695/// helper wraps some of the behavior common to parallel operations over a <see cref="DataViewRowCursor"/> set, 1696/// including building the set, creating separate Random instances, and <see cref="DataViewRowCursor"/> disposal.
Microsoft.ML.Mkl.Components (2)
VectorWhitening.cs (2)
253using (var cursor = inputData.GetRowCursor()) 335using (var cursor = inputData.GetRowCursor(inputData.Schema.Where(c => cols.Any(col => c.Index == col))))
Microsoft.ML.OnnxTransformerTest (11)
DnnImageFeaturizerTest.cs (2)
117using (var cursor = result.GetRowCursor(result.Schema["output_1"])) 163using (var cursor = loadedView.GetRowCursor(loadedView.Schema[outputNames]))
OnnxTransformTests.cs (9)
208using (var cursor = loadedView.GetRowCursor(sofMaxOut1Col)) 272using (var cursor = result.GetRowCursor(softmaxOutCol)) 323using (var cursor = result.GetRowCursor(softmaxOutCol)) 374using (var curs = onnx.GetRowCursor(scoreCol)) 442using (var curs = onnx.GetRowCursor(outaCol, onnx.Schema["outb"])) 482using (var curs = onnx.GetRowCursor(outaCol, onnx.Schema["outb"])) 507using (var curs = onnx.GetRowCursor(outbCol)) 700using (var curs = transformedDataView.GetRowCursor(outputColumn, transformedDataView.Schema["output"])) 753using (var curs = transformedDataView.GetRowCursor(outputColumn, transformedDataView.Schema["output"]))
Microsoft.ML.Parquet (7)
ParquetLoader.cs (3)
394public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 400public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 403return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) };
PartitionedFileLoader.cs (4)
297public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 302public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 305return new DataViewRowCursor[] { cursor }; 384private DataViewRowCursor _subCursor; // Sub cursor of the current file.
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
417using (var cursor = trainingData.GetRowCursor(inputCols))
Microsoft.ML.PerformanceTests (2)
CacheDataViewBench.cs (2)
19private DataViewRowCursor _cursor; 41using (var cursor = cacheDv.GetRowCursor(col))
Microsoft.ML.Predictor.Tests (5)
TestPredictors.cs (4)
699var cursors = new DataViewRowCursor[predCount]; 707using (var curs = scored.GetRowCursor(cols)) 880var cursors = new DataViewRowCursor[predCount]; 888using (var curs = scored.GetRowCursor(cols))
TestTransposer.cs (1)
34using (var cursor = view.GetRowCursor(view.Schema[col]))
Microsoft.ML.Recommender (4)
SafeTrainingAndModelBuffer.cs (4)
258private MFNode[] ConstructLabeledNodesFrom(IChannel ch, DataViewRowCursor cursor, ValueGetter<float> labGetter, 315DataViewRowCursor cursor, ValueGetter<float> labGetter, 345DataViewRowCursor cursor, ValueGetter<float> labGetter, 347DataViewRowCursor validCursor, ValueGetter<float> validLabGetter,
Microsoft.ML.Samples (12)
Dynamic\DataOperations\LoadingSvmLight.cs (1)
90using (var cursor = svmData.GetRowCursor(svmData.Schema))
Dynamic\DataOperations\LoadingText.cs (1)
189using (var cursor = idv.GetRowCursor(idv.Schema))
Dynamic\SimpleDataViewImplementation.cs (5)
42using (var cursor = transformedDataView.GetRowCursor( 138/// The <see cref="DataViewRowCursor"/> derived class has more documentation 142/// <see cref="DataViewRowCursor"/> derived class, does almost no validation 171public DataViewRowCursor GetRowCursor( 178public DataViewRowCursor[] GetRowCursorSet(
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (1)
65using (var cursor = transformedData.GetRowCursor(transformedData
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
53using (var cursor = transformedData.GetRowCursor(transformedData
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (1)
72using (var cursor = transformedData.GetRowCursor(transformedData
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (1)
64using (var cursor = transformedData.GetRowCursor(transformedData
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (1)
67using (var cursor = transformedData.GetRowCursor(transformedData
Microsoft.ML.TensorFlow.Tests (6)
TensorFlowEstimatorTests.cs (2)
172using (var cursor = result.GetRowCursor(result.Schema["Output"])) 265using (var cursor = result.GetRowCursor(result.Schema["Output"]))
TensorflowTests.cs (4)
513using (var curs = tf.GetRowCursor(tf.Schema["image_tensor"], tf.Schema["detection_boxes"], tf.Schema["detection_scores"], tf.Schema["detection_classes"], tf.Schema["num_detections"])) 561using (var curs = tf.GetRowCursor(tf.Schema[inputName], tf.Schema[outputName])) 1031using (var cursor = idv.GetRowCursor(idv.Schema["Output"])) 1032using (var cursor2 = idv.GetRowCursor(idv.Schema["Output"]))
Microsoft.ML.TestFramework (12)
BaseTestBaseline.cs (2)
732using (var expectedCursor = left.GetRowCursor(leftColumn)) 733using (var actualCursor = right.GetRowCursor(rightColumn))
DataPipe\TestDataPipe.cs (2)
1208using (DataViewRowCursor cursor = view.GetRowCursorForAllColumns()) 1509using (var cursor = loader.GetRowCursor(loader.Schema["DT"], loader.Schema["DT1"]))
DataPipe\TestDataPipeBase.cs (8)
266using (var c1 = newPipe.GetRowCursor(newPipe.Schema, new Random(123))) 671using (var curs2 = view2.GetRowCursor(view2EvenCols)) 682using (var curs2 = view2.GetRowCursor(view2OddCols)) 701protected bool CheckSameValues(DataViewRowCursor curs1, DataViewRowCursor curs2, bool exactTypes, bool exactDoubles, bool checkId, bool checkIdCollisions = true) 782protected bool CheckSameValues(DataViewRowCursor curs1, IDataView view2, bool exactTypes = true, bool exactDoubles = true, bool checkId = true) 788var cursors = new DataViewRowCursor[colLim]; 858var c = cursors[col];
Microsoft.ML.Tests (20)
SvmLightTests.cs (9)
239using (var curs = view.GetRowCursor(view.Schema)) 259using (var curs = data.GetRowCursor(data.Schema["Label"])) 278using (var curs = data.GetRowCursor(data.Schema["GroupId"])) 326using (var curs = data.GetRowCursor(data.Schema["Features"])) 352using (var curs = data.GetRowCursor(data.Schema["Features"])) 371using (var curs = data.GetRowCursor(data.Schema["Features"])) 390using (var curs = data.GetRowCursor(data.Schema["Features"])) 421using (var curs = data.GetRowCursor(data.Schema["Features"])) 434using (var curs = data.GetRowCursor())
TextLoaderTests.cs (7)
907using DataViewRowCursor cursorPeriod = textDataDecimalMarkerPeriod.GetRowCursor(columnsPeriod); 957using DataViewRowCursor cursorComma = textDataDecimalMarkerComma.GetRowCursor(columnsComma); 1012using DataViewRowCursor cursor = textData.GetRowCursor(columns); 1079using (var cursorPeriod = dataViewPeriod.GetRowCursor(dataViewPeriod.Schema)) 1080using (var cursorComma = dataViewComma.GetRowCursor(dataViewComma.Schema)) 1496using (var cursorBaseline = baselineDV.GetRowCursor(baselineDV.Schema)) 1497using (var cursorTest = testDV.GetRowCursor(testDV.Schema))
Transformers\CountTargetEncodingTests.cs (2)
129using (var curs = transformedData.GetRowCursor(transformedData.Schema)) 130using (var curs1 = transformedData1.GetRowCursor(transformedData.Schema))
Transformers\TextFeaturizerTests.cs (2)
117using (var cursor = dataView.GetRowCursor(dataView.Schema)) 159using (var cursor = dataView.GetRowCursor(dataView.Schema))
Microsoft.ML.TimeSeries (21)
SeasonalityDetector.cs (1)
66var rowCursor = input.GetRowCursor(new List<DataViewSchema.Column>() { column.Value });
SequentialTransformBase.cs (5)
377protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 379var srcCursor = _transform.GetRowCursor(columnsNeeded, rand); 390public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 391=> new DataViewRowCursor[] { GetRowCursorCore(columnsNeeded, rand) }; 400public Cursor(SequentialTransformBase<TInput, TOutput, TState> parent, DataViewRowCursor input)
SequentialTransformerBase.cs (9)
565protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 567var srcCursor = _transform.GetRowCursor(columnsNeeded, rand); 582public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 583=> new DataViewRowCursor[] { GetRowCursorCore(columnsNeeded, rand) }; 695public Cursor(IHost host, SequentialDataTransform parent, DataViewRowCursor input) 866protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 875public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 891var cursors = new DataViewRowCursor[inputs.Length]; 1027public Cursor(IChannelProvider provider, DataViewRowCursor input, TimeSeriesRowToRowMapperTransform parent, bool[] active)
SrCnnEntireAnomalyDetector.cs (6)
224protected override Delegate[] CreateGetters(DataViewRowCursor input, Batch currentBatch, bool[] active) 231protected override Batch CreateBatch(DataViewRowCursor input) 234protected override Func<bool> GetIsNewBatchDelegate(DataViewRowCursor input) 239protected override Func<bool> GetLastInBatchDelegate(DataViewRowCursor input) 244protected override ValueGetter<double> GetLookAheadGetter(DataViewRowCursor input) 337public ValueGetter<VBuffer<double>> CreateGetter(DataViewRowCursor input, string inputCol)
Microsoft.ML.TorchSharp (14)
AutoFormerV2\ObjectDetectionMetrics.cs (2)
300var cursor = idv.GetRowCursor(predictedLabelCol, predictedBoundingBoxColumn, scoreCol); 345var cursor = idv.GetRowCursor(labelCol, actualBoundingBoxColumn);
AutoFormerV2\ObjectDetectionTrainer.cs (2)
288DataViewRowCursor cursor = input.GetRowCursor(input.Schema[Parent.Option.LabelColumnName], input.Schema[Parent.Option.BoundingBoxColumnName], input.Schema[Parent.Option.ImageColumnName]); 320DataViewRowCursor cursor,
NasBert\NasBertTrainer.cs (2)
216private protected override DataViewRowCursor GetRowCursor(IDataView input) 224private protected override void InitializeDataGetters(IDataView input, DataViewRowCursor cursor)
Roberta\QATrainer.cs (2)
272DataViewRowCursor cursor = input.GetRowCursor(input.Schema[Parent.Option.ContextColumnName], input.Schema[Parent.Option.QuestionColumnName], input.Schema[Parent.Option.TrainingAnswerColumnName], input.Schema[Parent.Option.AnswerIndexStartColumnName]); 303DataViewRowCursor cursor,
TorchSharpBaseTrainer.cs (6)
200DataViewRowCursor cursor = GetRowCursor(validationSet); 223private protected abstract void InitializeDataGetters(IDataView input, DataViewRowCursor cursor); 225private bool ValidateStep(DataViewRowCursor cursor, 272DataViewRowCursor cursor = GetRowCursor(input); 300DataViewRowCursor cursor, 355private protected abstract DataViewRowCursor GetRowCursor(IDataView input);
Microsoft.ML.TorchSharp.Tests (1)
QATests.cs (1)
91using (var cursor = transformedData.GetRowCursor(transformedData.Schema["Answer"], transformedData.Schema["Score"], transformedData.Schema["TrainingAnswer"], transformedData.Schema["Context"], transformedData.Schema["Question"]))
Microsoft.ML.Transforms (83)
CountFeatureSelection.cs (1)
326using (var cursor = input.GetRowCursor(activeCols))
CustomMappingFilter.cs (14)
37public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 45var input = Input.GetRowCursor(inputCols, rand); 49protected abstract DataViewRowCursor GetRowCursorCore(DataViewRowCursor input, bool[] active); 51public abstract DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null); 68protected override DataViewRowCursor GetRowCursorCore(DataViewRowCursor input, bool[] active) 73public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 86var cursors = new DataViewRowCursor[inputs.Length]; 96public Cursor(CustomMappingFilter<TSrc> parent, DataViewRowCursor input, bool[] active) 148protected override DataViewRowCursor GetRowCursorCore(DataViewRowCursor input, bool[] active) 153public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 162public Cursor(StatefulCustomMappingFilter<TSrc, TState> parent, DataViewRowCursor input, bool[] active)
Dracula\CountTableTransformer.cs (1)
182using (var cursor = trainingData.GetRowCursor(cols.Prepend(labelColumn)))
GroupTransform.cs (5)
158protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 174public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 177return new DataViewRowCursor[] { GetRowCursorCore(columnsNeeded) }; 505private readonly DataViewRowCursor _leadingCursor; 506private readonly DataViewRowCursor _trailingCursor;
MissingValueReplacing.cs (1)
329using (var cursor = input.GetRowCursor(sourceColumns))
MissingValueReplacingUtils.cs (25)
17private static StatAggregator CreateStatAggregator(IChannel ch, DataViewType type, ReplacementKind? kind, bool bySlot, DataViewRowCursor cursor, int col) 185protected StatAggregator(IChannel ch, DataViewRowCursor cursor, int col) 213protected StatAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 234protected StatAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 270protected MinMaxAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 307protected MinMaxAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 335protected MinMaxAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col, bool returnMax) 537public MeanAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 557public MeanAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 577public MeanAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 603public MinMaxAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 624public MinMaxAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 656public MinMaxAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col, bool returnMax) 695public ModeAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 714public ModeAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 733public ModeAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 763public MeanAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 781public MeanAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 799public MeanAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 821public MinMaxAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 842public MinMaxAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 874public MinMaxAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col, bool returnMax) 919public ModeAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 938public ModeAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 957public ModeAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col)
OptionalColumnTransform.cs (6)
323protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 336public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 345DataViewRowCursor input; 354var cursors = new DataViewRowCursor[inputs.Length]; 364return new DataViewRowCursor[] { new Cursor(Host, _bindings, input, active) }; 440public Cursor(IChannelProvider provider, Bindings bindings, DataViewRowCursor input, bool[] active)
PermutationFeatureImportance.cs (1)
143using (var cursor = data.GetRowCursor(featuresColumn))
ProduceIdTransform.cs (4)
140protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 153public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 160DataViewRowCursor[] cursors = Source.GetRowCursorSet(inputCols, n, rand); 180public Cursor(IChannelProvider provider, Bindings bindings, DataViewRowCursor input, bool active)
RandomFourierFeaturizing.cs (1)
297using (var cursor = input.GetRowCursor(activeColumns))
StatefulCustomMappingTransformer.cs (6)
129public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 137DataViewRowCursor input; 145var cursors = new DataViewRowCursor[inputs.Length]; 155return new DataViewRowCursor[] { new Cursor(this, input, active) }; 229protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 272public Cursor(RowToRowMapper parent, DataViewRowCursor input, bool[] active)
StatefulFilterTransform.cs (2)
103public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 115public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null)
SvmLight\SvmLightLoader.cs (6)
424public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 431public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) 435return new DataViewRowCursor[] { GetRowCursor(columnsNeeded, rand) }; 681using (var cursor = view.GetRowCursor(col.Value)) 791public DataViewRowCursor GetRowCursor(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) => _view.GetRowCursor(columnsNeeded, rand); 793public DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, int n, Random rand = null) => _view.GetRowCursorSet(columnsNeeded, n, rand);
SvmLight\SvmLightSaver.cs (1)
128using (var cursor = data.GetRowCursor(columns))
Text\LdaTransform.cs (2)
863using (var cursor = inputData.GetRowCursor(activeColumns)) 940using (var cursor = inputData.GetRowCursor(activeColumns))
Text\NgramHashingTransformer.cs (1)
233using (var rowCursor = input.GetRowCursor(sourceColumnsForInvertHash))
Text\NgramTransform.cs (1)
240using (var cursor = trainingData.GetRowCursor(activeCols))
Text\StopWordsRemovingTransformer.cs (1)
874using (var cursor = loader.GetRowCursor(loader.Schema[srcCol]))
UngroupTransform.cs (4)
180protected override DataViewRowCursor GetRowCursorCore(IEnumerable<DataViewSchema.Column> columnsNeeded, Random rand = null) 190public override DataViewRowCursor[] GetRowCursorSet(IEnumerable<DataViewSchema.Column> columnsNeeded, 198return Utils.BuildArray<DataViewRowCursor>(inputCursors.Length, 479public Cursor(IChannelProvider provider, DataViewRowCursor input, UngroupBinding schema, Func<int, bool> predicate)
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (1)
334using (var cursor = input.GetRowCursor(cols))
ImageClassificationTrainer.cs (1)
832using (var cursor = input.GetRowCursor(