16 overrides of Position
Microsoft.Data.Analysis (1)
DataFrame.IDataView.cs (1)
92public override long Position => _position;
Microsoft.ML.Core (4)
Data\AnnotationUtils.cs (1)
469public override long Position => 0;
Data\RootCursorBase.cs (1)
27public sealed override long Position => _position;
Data\SynchronizedCursorBase.cs (1)
32public sealed override long Position => Root.Position;
Data\WrappingRow.cs (1)
26public sealed override long Position => Input.Position;
Microsoft.ML.Data (7)
DataView\CacheDataView.cs (2)
512public override long Position => _internal.Position; 1153public sealed override long Position => PositionCore;
DataView\CompositeRowToRowMapper.cs (1)
103public override long Position => _row.Position;
DataView\DataViewConstructionUtils.cs (3)
145public override long Position => _position; 497public override long Position => _toWrap.Position; 540public override long Position => _position;
DataView\TypedCursor.cs (1)
593public override long Position => _cursor.Position;
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
23public override long Position => PositionValue;
Microsoft.ML.Samples (1)
Dynamic\SimpleDataViewImplementation.cs (1)
249public override long Position => _position;
Microsoft.ML.TimeSeries (2)
SequentialTransformerBase.cs (2)
631public override long Position => _input.Position; 955public override long Position => _input.Position;
135 references to Position
Microsoft.Data.Analysis (12)
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
594(ref ReadOnlyMemory<char> value) => value = this[cursor.Position].AsMemory();
DataFrameColumns\StringDataFrameColumn.cs (2)
505(ref ReadOnlyMemory<char> value) => value = this[cursor.Position].AsMemory(); 509long row = cursor.Position;
DataFrameColumns\VBufferDataFrameColumn.cs (2)
178(ref VBuffer<T> value) => value = this[cursor.Position]; 192long row = cursor.Position;
IDataView.Extension.cs (1)
139while (cursor.MoveNext() && cursor.Position < maxRows)
PrimitiveDataFrameColumn.cs (6)
883(ref T value) => value = this[cursor.Position].GetValueOrDefault(); 886(ref float value) => value = column[cursor.Position] ?? float.NaN; 889(ref double value) => value = column[cursor.Position] ?? double.NaN; 892(ref ushort value) => value = column[cursor.Position].GetValueOrDefault(); 895(ref double value) => value = (double?)column[cursor.Position] ?? double.NaN; 899long row = cursor.Position;
Microsoft.ML.Core (3)
Data\SynchronizedCursorBase.cs (1)
32public sealed override long Position => Root.Position;
Data\WrappingRow.cs (2)
12/// as their input. The <see cref="DataViewRow.Position"/>, <see cref="DataViewRow.Batch"/>, and <see cref="DataViewRow.GetIdGetter"/> 26public sealed override long Position => Input.Position;
Microsoft.ML.Core.Tests (13)
UnitTests\CoreBaseTestClass.cs (12)
283Fail("Left has more rows at position: {0}", curs1.Position); 285Fail("Right has more rows at position: {0}", curs2.Position); 305Contracts.Assert(curs1.Position == curs2.Position); 312Fail("Different values in column {0} of row {1}", col, curs1.Position); 317Fail("Different values in ID of row {0}", curs1.Position); 368Fail("Left has more rows at position: {0}", curs1.Position); 370Fail("Right {0} has more rows at position: {1}", col, cursors[2].Position); 380Contracts.Assert(curs1.Position == cursors[col].Position); 384Fail("Different values in column {0} of row {1}", col, curs1.Position); 390Fail("Different values in ID values for column {0} cursor of row {1}", col, curs1.Position);
UnitTests\TestEntryPoints.cs (1)
6130if (cursor.Position > 4)
Microsoft.ML.Data (34)
Data\DataViewUtils.cs (2)
373ch.Assert(localCursor.Position < 0); 1206Ch.Assert(cursor.Position < 0);
DataLoadSave\Transpose\TransposeLoader.cs (1)
710long pos = _rowCursor.Position;
DataView\CompositeRowToRowMapper.cs (1)
103public override long Position => _row.Position;
DataView\DataViewConstructionUtils.cs (6)
315peek(GetCurrentRowObject(), Position, ref buf); 331peek(GetCurrentRowObject(), Position, ref buf); 343peek(GetCurrentRowObject(), Position, ref buf); 362peek(GetCurrentRowObject(), Position, ref buf); 372peek(GetCurrentRowObject(), Position, ref dst)); 394peek(GetCurrentRowObject(), Position, ref rawKeyValue);
DataView\SimpleRow.cs (2)
12/// An implementation of <see cref="DataViewRow"/> that gets its <see cref="DataViewRow.Position"/>, <see cref="DataViewRow.Batch"/>, 31/// <param name="input">The row that is being wrapped by this row, where our <see cref="DataViewRow.Position"/>,
DataView\Transposer.cs (1)
640int idx = checked((int)cursor.Position);
Evaluators\BinaryClassifierEvaluator.cs (4)
1182if (cachedPosition != input.Position) 1187cachedPosition = input.Position; 1197if (cachedPosition != input.Position) 1201cachedPosition = input.Position;
Evaluators\ClusteringEvaluator.cs (2)
667if (cachedPosition != input.Position) 674cachedPosition = input.Position;
Evaluators\MulticlassClassificationEvaluator.cs (2)
730if (cachedPosition != input.Position) 738cachedPosition = input.Position;
Evaluators\MultiOutputRegressionEvaluator.cs (2)
481if (cachedPosition != input.Position) 485cachedPosition = input.Position;
Evaluators\QuantileRegressionEvaluator.cs (2)
402if (cachedPosition != input.Position) 410cachedPosition = input.Position;
Evaluators\RegressionEvaluator.cs (2)
290if (cachedPosition != input.Position) 294cachedPosition = input.Position;
Scorers\PredictedLabelScorerBase.cs (2)
435if (cachedPosition != boundRow.Position) 438cachedPosition = boundRow.Position;
Scorers\SchemaBindablePredictorWrapper.cs (2)
599if (cachedPosition != input.Position) 605cachedPosition = input.Position;
Transforms\PerGroupTransformBase.cs (3)
332if (_groupCursor.Position < 0) 339Ch.Assert(_groupCursor.Position >= 0); 342while (_groupCursor.Position >= 0 && !_newGroupInGroupCursorDel())
Microsoft.ML.DataView (3)
IDataView.cs (3)
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.FastTree (11)
TreeEnsembleFeaturizer.cs (11)
282_ectx.Assert(_input.Position >= 0); 283_ectx.Assert(_cachedPosition == _input.Position); 285if (_cachedLeafBuilderPosition != _input.Position) 299_cachedLeafBuilderPosition = _input.Position; 308_ectx.Assert(_input.Position >= 0); 309_ectx.Assert(_cachedPosition == _input.Position); 311if (_cachedPathBuilderPosition != _input.Position) 333_cachedPathBuilderPosition = _input.Position; 341_ectx.Check(_input.Position >= 0, RowCursorUtils.FetchValueStateError); 342if (_cachedPosition != _input.Position) 352_cachedPosition = _input.Position;
Microsoft.ML.OnnxTransformer (3)
OnnxTransform.cs (3)
715UpdateCacheIfNeeded(input.Position, srcNamedValueGetters, listActiveOutputColumns, outputCacher); 735UpdateCacheIfNeeded(input.Position, srcNamedValueGetters, listActiveOutputColumns, outputCacher); 759UpdateCacheIfNeeded(input.Position, srcNamedValueGetters, listActiveOutputColumns, outputCacher);
Microsoft.ML.PerformanceTests (2)
CacheDataViewBench.cs (2)
49if (val != cursor.Position) 50throw new Exception($"Unexpected value {val} at {cursor.Position}");
Microsoft.ML.Predictor.Tests (4)
TestTransposer.cs (4)
43Assert.True(0 <= offset && offset < rc && offset == cursor.Position); 57Assert.True(0 <= cursor.Position && cursor.Position < rc); 58getter(ref retval[(int)cursor.Position]);
Microsoft.ML.TensorFlow (3)
TensorflowTransform.cs (3)
708UpdateCacheIfNeeded(input.Position, srcTensorGetters, activeOutputColNames, outputCache); 720UpdateCacheIfNeeded(input.Position, srcTensorGetters, activeOutputColNames, outputCache); 735UpdateCacheIfNeeded(input.Position, srcTensorGetters, activeOutputColNames, outputCache);
Microsoft.ML.TestFramework (14)
DataPipe\TestDataPipe.cs (1)
1235Assert.Equal((long)row, cursor.Position);
DataPipe\TestDataPipeBase.cs (13)
740Fail("Left has more rows at position: {0}", curs1.Position); 742Fail("Right has more rows at position: {0}", curs2.Position); 758Log("Id collision {0} at {1}, further collisions will not be logged", id, curs1.Position); 763Contracts.Assert(curs1.Position == curs2.Position); 770Fail("Different values in column {0} of row {1}", col, curs1.Position); 775Fail("Different values in ID of row {0}", curs1.Position); 826Fail("Left has more rows at position: {0}", curs1.Position); 828Fail("Right {0} has more rows at position: {1}", col, cursors[2].Position); 838Contracts.Assert(curs1.Position == cursors[col].Position); 842Fail("Different values in column {0} of row {1}", col, curs1.Position); 848Fail("Different values in ID values for column {0} cursor of row {1}", col, curs1.Position);
Microsoft.ML.TimeSeries (7)
SequentialTransformerBase.cs (2)
631public override long Position => _input.Position; 955public override long Position => _input.Position;
SrCnnEntireAnomalyDetector.cs (5)
236return () => _options.BatchSize == -1 ? input.Position == 0 : input.Position % _options.BatchSize == 0; 241return () => _options.BatchSize == -1 ? input.Position == -1 : (input.Position + 1) % _options.BatchSize == 0; 346_results[input.Position % _batchSize].CopyTo(result.Values);
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
815UpdateCacheIfNeeded(input.Position, outputCacher, ref image, ref getImage); 839UpdateCacheIfNeeded(input.Position, outputCacher, ref image, ref getImage); 863UpdateCacheIfNeeded(input.Position, outputCacher, ref image, ref getImage);
NasBert\NerTrainer.cs (1)
427UpdateCacheIfNeeded(input.Position, outputCacher, ref sentence1, ref sentence2, ref getSentence1, ref getSentence2, tokenizer);
NasBert\SentenceSimilarityTrainer.cs (1)
287UpdateCacheIfNeeded(input.Position, outputCacher, ref sentence1, ref sentence2, ref getSentence1, ref getSentence2, tokenizer);
NasBert\TextClassificationTrainer.cs (2)
334UpdateCacheIfNeeded(input.Position, outputCacher, ref sentence1, ref sentence2, ref getSentence1, ref getSentence2, tokenizer); 364UpdateCacheIfNeeded(input.Position, outputCacher, ref sentence1, ref sentence2, ref getSentence1, ref getSentence2, tokenizer);
Roberta\QATrainer.cs (2)
787UpdateCacheIfNeeded(input.Position, outputCacher, ref context, ref question, ref getContext, ref getQuestion); 814UpdateCacheIfNeeded(input.Position, outputCacher, ref context, ref question, ref getContext, ref getQuestion);
Microsoft.ML.Transforms (13)
CustomMappingFilter.cs (4)
107if (lastServedPosition != input.Position) 110lastServedPosition = input.Position; 175if (lastServedPosition != input.Position) 178lastServedPosition = input.Position;
CustomMappingTransformer.cs (2)
147if (lastServedPosition != input.Position) 153lastServedPosition = input.Position;
GroupTransform.cs (3)
579if (_leadingCursor.Position < 0 && !_leadingCursor.MoveNext()) 581Ch.Assert(_leadingCursor.Position >= 0); 586while (_leadingCursor.Position >= 0 && IsSameGroup())
StatefulCustomMappingTransformer.cs (4)
174if (lastServedPosition != input.Position) 180lastServedPosition = input.Position; 293if (lastServedPosition != input.Position) 299lastServedPosition = input.Position;
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (4)
353if (((cursor.Position + 1) % options.BatchSize) == 0) 878UpdateCacheIfNeeded(input.Position, srcTensorGetters, activeOutputColNames, outputCache); 891UpdateCacheIfNeeded(input.Position, srcTensorGetters, activeOutputColNames, outputCache); 906UpdateCacheIfNeeded(input.Position, srcTensorGetters, activeOutputColNames, outputCache);