125 references to RowCursorUtils
Microsoft.ML.Data (125)
Commands\DataCommand.cs (1)
169var getter = RowCursorUtils.GetGetterAs<double>(NumberDataViewType.Double, cursor, currentIndex);
Data\DataViewUtils.cs (3)
389inPipes[i] = outPipes[i].CreateInPipe(RowCursorUtils.GetGetterAsDelegate(localCursor, activeToCol[i])); 1237Ch.Check(_icursor >= 0, RowCursorUtils.FetchValueStateError); 1263Ch.Check(_icursor >= 0, RowCursorUtils.FetchValueStateError);
Data\RowCursorUtils.cs (3)
400var getSrc = RowCursorUtils.GetGetterAs<ulong>(NumberDataViewType.UInt64, cursor, labelIndex); 429var getSrc = RowCursorUtils.GetVecGetterAs<ulong>(NumberDataViewType.UInt64, cursor); 601Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
DataLoadSave\Binary\BinaryLoader.cs (5)
1664Ectx.Check(_curr != null, RowCursorUtils.FetchValueStateError); 1953Contracts.Check(_curr != null, RowCursorUtils.FetchValueStateError); 2056ValueGetter<T> del = (ref T value) => throw Ch.Except(RowCursorUtils.FetchValueStateError); 2067Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 2086Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
DataLoadSave\Database\DatabaseLoaderCursor.cs (1)
110Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
DataLoadSave\Text\TextLoaderCursor.cs (1)
204Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
DataLoadSave\Transpose\TransposeLoader.cs (1)
849Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
DataView\AppendRowsDataView.cs (3)
255Ch.Check(Position >= 0, RowCursorUtils.FetchValueStateError); 342Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 354Ch.Check(Position >= 0, RowCursorUtils.FetchValueStateError);
DataView\ArrayDataViewBuilder.cs (5)
237var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 245var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 292Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 301Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 337Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
DataView\BatchDataViewMapperBase.cs (1)
35var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, SchemaBindings.AsSchema);
DataView\CacheDataView.cs (4)
213var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 259var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 495Ch.Check(Position >= 0, RowCursorUtils.FetchValueStateError); 545Ch.Check(Position >= 0, RowCursorUtils.FetchValueStateError);
DataView\DataViewConstructionUtils.cs (9)
182Host.Check(Position >= 0, RowCursorUtils.FetchValueStateError); 622var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 653Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 662Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 670Ch.Check(0 <= Position && Position < _data.Count, RowCursorUtils.FetchValueStateError); 705var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 726Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 775var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 794Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
DataView\EmptyDataView.cs (2)
62return (ref DataViewRowId val) => throw Ch.Except(RowCursorUtils.FetchValueStateError); 82return (ref TValue value) => throw Ch.Except(RowCursorUtils.FetchValueStateError);
DataView\LambdaFilter.cs (2)
114var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 128var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema);
DataView\RowToRowMapperTransform.cs (3)
191var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 201var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 242var predicate = RowCursorUtils.FromColumnsToPredicate(dependingColumns, OutputSchema);
DataView\Transposer.cs (7)
380Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 512Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 697Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 833var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 846var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 1516Ch.Check(_slotCursor.SlotIndex >= 0, RowCursorUtils.FetchValueStateError); 1571Ch.Check(_slotCursor.SlotIndex >= 0, RowCursorUtils.FetchValueStateError);
DataView\ZipDataView.cs (2)
77var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, Schema); 146Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
Dirty\ChooseColumnsByIndexTransform.cs (2)
248var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 262var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema);
EntryPoints\SummarizePredictor.cs (2)
70summary = RowCursorUtils.RowAsDataView(env, row); 73stats = RowCursorUtils.RowAsDataView(env, statsRow);
Evaluators\AnomalyDetectionEvaluator.cs (2)
509_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index); 734stratGetter = RowCursorUtils.GetGetterAs<uint>(type, cursor, stratCol);
Evaluators\BinaryClassifierEvaluator.cs (2)
627_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index); 1163RowCursorUtils.GetLabelGetter(input, LabelIndex) : nanGetter;
Evaluators\ClusteringEvaluator.cs (1)
506_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index);
Evaluators\EvaluatorUtils.cs (5)
289stratColGetter = RowCursorUtils.GetGetterAs<uint>(type, cursor, stratCol); 308getters[i] = RowCursorUtils.GetGetterAs<double>(NumberDataViewType.Double, cursor, i); 1013getters[i] = RowCursorUtils.GetGetterAs<double>(NumberDataViewType.Double, row, i); 1116stratColGetter = RowCursorUtils.GetGetterAs<uint>(type, cursor, stratCol); 1485stratGetter = RowCursorUtils.GetGetterAs<uint>(stratType, cursor, stratCol);
Evaluators\Metrics\AnomalyDetectionMetrics.cs (1)
42double FetchDouble(string name) => RowCursorUtils.Fetch<double>(ectx, overallResult, name);
Evaluators\Metrics\ClusteringMetrics.cs (1)
40double Fetch(string name) => RowCursorUtils.Fetch<double>(ectx, overallResult, name);
Evaluators\Metrics\MulticlassClassificationMetrics.cs (3)
120double FetchDouble(string name) => RowCursorUtils.Fetch<double>(host, overallResult, name); 128TopKAccuracyForAllK = RowCursorUtils.Fetch<VBuffer<double>>(host, overallResult, MulticlassClassificationEvaluator.AllTopKAccuracy).DenseValues().ToImmutableArray(); 130var perClassLogLoss = RowCursorUtils.Fetch<VBuffer<double>>(host, overallResult, MulticlassClassificationEvaluator.PerClassLogLoss);
Evaluators\Metrics\RegressionMetrics.cs (1)
71double Fetch(string name) => RowCursorUtils.Fetch<double>(ectx, overallResult, name);
Evaluators\MulticlassClassificationEvaluator.cs (2)
419_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index); 724var labelGetter = activeCols(LogLossCol) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) :
Evaluators\MultiOutputRegressionEvaluator.cs (3)
309_labelGetter = RowCursorUtils.GetVecGetterAs<float>(NumberDataViewType.Single, row, schema.Label.Value.Index); 473? RowCursorUtils.GetVecGetterAs<float>(NumberDataViewType.Single, input, LabelIndex) 692stratGetter = RowCursorUtils.GetGetterAs<uint>(type, cursor, stratCol);
Evaluators\QuantileRegressionEvaluator.cs (1)
393var labelGetter = activeCols(L1Col) || activeCols(L2Col) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : nanGetter;
Evaluators\RankingEvaluator.cs (4)
460_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index); 462_newGroupDel = RowCursorUtils.GetIsNewGroupDelegate(row, schema.Group.Value.Index); 468ValueGetter<StringBuilder> groupIdBuilder = RowCursorUtils.GetGetterAsStringBuilder(row, schema.Group.Value.Index); 787var lb = RowCursorUtils.GetLabelGetter(row, _bindings.LabelIndex);
Evaluators\RegressionEvaluator.cs (1)
281var labelGetter = activeCols(L1Col) || activeCols(L2Col) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : nan;
Evaluators\RegressionEvaluatorBase.cs (1)
207_labelGetter = RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index);
Prediction\Calibrator.cs (4)
716var scoreGetter = RowCursorUtils.GetGetterAs<Single>(NumberDataViewType.Single, input, _scoreCol); 968var labelGetter = RowCursorUtils.GetLabelGetter(cursor, labelCol.Index); 969var scoreGetter = RowCursorUtils.GetGetterAs<Single>(NumberDataViewType.Single, cursor, scoreCol.Index); 971RowCursorUtils.GetGetterAs<Single>(NumberDataViewType.Single, cursor, weightCol.Value.Index);
Scorers\FeatureContributionCalculation.cs (1)
382getters[i] = RowCursorUtils.GetGetterAsDelegate(genericRow, i);
Scorers\RowToRowScorerBase.cs (1)
146var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema);
Training\TrainerUtils.cs (3)
292return RowCursorUtils.GetLabelGetter(row, schema.Label.Value.Index); 317return RowCursorUtils.GetGetterAs<float>(NumberDataViewType.Single, row, col.Value.Index); 338return RowCursorUtils.GetGetterAs<ulong>(NumberDataViewType.UInt64, row, col.Value.Index);
Transforms\ColumnBindingsBase.cs (1)
625var predicate = RowCursorUtils.FromColumnsToPredicate(inputColumns, AsSchema);
Transforms\GenerateNumberTransform.cs (4)
340var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 353var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 455Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 474Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
Transforms\KeyToVector.cs (3)
477var getSrc = RowCursorUtils.GetGetterAs<uint>(NumberDataViewType.UInt32, input, srcCol); 518var getSrc = RowCursorUtils.GetVecGetterAs<uint>(NumberDataViewType.UInt32, input, srcCol); 564var getSrc = RowCursorUtils.GetVecGetterAs<uint>(NumberDataViewType.UInt32, input, srcCol);
Transforms\LabelConvertTransform.cs (4)
83: base(env, RegistrationName, Contracts.CheckRef(args, nameof(args)).Columns, input, RowCursorUtils.TestGetLabelGetter) 179Contracts.Assert(RowCursorUtils.TestGetLabelGetter(typeSrc) == null); 180return RowCursorUtils.GetLabelGetter(input, col); 214_getter = RowCursorUtils.GetLabelGetter(cursor);
Transforms\NAFilter.cs (2)
210var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 222var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema);
Transforms\NormalizeColumn.cs (2)
822var getSrc = RowCursorUtils.GetGetterAs<ulong>(NumberDataViewType.UInt64, row, col); 842var getSrc = RowCursorUtils.GetGetterAs<Double>(NumberDataViewType.Double, row, col);
Transforms\PerGroupTransformBase.cs (4)
165var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 269_newGroupInGroupCursorDel = RowCursorUtils.GetIsNewGroupDelegate(_groupCursor, bindings.GroupIndex); 270_newGroupInInputCursorDel = RowCursorUtils.GetIsNewGroupDelegate(_input, bindings.GroupIndex); 318Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
Transforms\RangeFilter.cs (5)
212var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 225var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 362Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 395Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); 431Ch.Check(IsGood, RowCursorUtils.FetchValueStateError);
Transforms\RowShufflingTransformer.cs (1)
531input.Schema[c].Type, RowCursorUtils.GetGetterAsDelegate(input, c));
Transforms\TransformBase.cs (2)
69var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema); 750var predicate = RowCursorUtils.FromColumnsToPredicate(columnsNeeded, OutputSchema);
Transforms\TypeConverting.cs (2)
473return RowCursorUtils.GetGetterAs(_types[iinfo], input, _srcCols[iinfo]); 474return RowCursorUtils.GetVecGetterAs(vectorType.ItemType, input, _srcCols[iinfo]);
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
310inputGetter = RowCursorUtils.GetGetterAs<T>(bldr.ItemType, row, col);