195 references to GetIndices
Microsoft.ML.Core (23)
Utilities\VBufferUtils.cs (23)
97var aIndices = a.GetIndices(); 127var aIndices = a.GetIndices(); 133var bIndices = b.GetIndices(); 142var aIndices = a.GetIndices(); 143var bIndices = b.GetIndices(); 179var aIndices = a.GetIndices(); 189var bIndices = b.GetIndices(); 201var aIndices = a.GetIndices(); 202var bIndices = b.GetIndices(); 282var dstIndices = dst.GetIndices(); 359var indices = dst.GetIndices(); 403var dstIndices = dst.GetIndices(); 622var dstIndices = dst.GetIndices(); 657var srcIndices = src.GetIndices(); 906var srcIndices = src.GetIndices(); 950var srcIndices = src.GetIndices(); 987var dstIndices = dst.GetIndices(); 1036var srcIndices = src.GetIndices(); 1151var srcIndices = src.GetIndices(); 1204aIndices = a.GetIndices(); 1214bIndices = b.GetIndices(); 1233aIndices = a.GetIndices(); 1234bIndices = b.GetIndices();
Microsoft.ML.Core.Tests (21)
UnitTests\TestVBuffer.cs (21)
291Assert.Equal(expectedIndices, a.GetIndices().ToArray()); 315Assert.True(a.GetIndices().IsEmpty); 471List<int> indices = new List<int>(a.GetIndices().Length); 910int logicalIndex = a.IsDense ? index : a.GetIndices()[index]; 1017src.GetIndices().CopyTo(indices); 1034for (int i = 0; i < expected.GetIndices().Length; ++i) 1035Assert.Equal(expected.GetIndices()[i], actual.GetIndices()[i]); 1120for (int i = 0; i < a.GetIndices().Length; ++i) 1121bEditor.Indices[i] = a.GetIndices()[i]; 1130bEditor.Indices[i] = a.GetIndices()[bEditor.Indices[i]]; 1189int j = actual.GetValues().Length == 0 ? length : actual.GetIndices()[jj]; 1195j = ++jj == actual.GetValues().Length ? length : actual.GetIndices()[jj]; 1205int i = expected.GetValues().Length == 0 ? length : expected.GetIndices()[ii]; 1211i = ++ii == expected.GetValues().Length ? length : expected.GetIndices()[ii]; 1222int i = expected.GetValues().Length == 0 ? length : expected.GetIndices()[ii]; 1223int j = actual.GetValues().Length == 0 ? length : actual.GetIndices()[jj]; 1231i = ++ii == expected.GetValues().Length ? length : expected.GetIndices()[ii]; 1232j = ++jj == actual.GetValues().Length ? length : actual.GetIndices()[jj]; 1237i = ++ii == expected.GetValues().Length ? length : expected.GetIndices()[ii]; 1243j = ++jj == actual.GetValues().Length ? length : actual.GetIndices()[jj];
Microsoft.ML.Data (79)
Data\BufferBuilder.cs (1)
420var indices = buffer.GetIndices();
Data\RowCursorUtils.cs (1)
290var srcIndices = src.GetIndices();
DataLoadSave\Binary\Codecs.cs (1)
929var valueIndices = value.GetIndices();
DataLoadSave\Text\TextSaver.cs (2)
190var srcIndices = _src.GetIndices(); 207var slotNamesIndices = _slotNames.GetIndices();
DataView\CacheDataView.cs (1)
1369_indices.AddRange(_temp.GetIndices());
DataView\Transposer.cs (5)
583var rbuffIndices = rbuff.GetIndices(); 610heap.Add(new KeyValuePair<int, int>(rbuff.IsDense ? 0 : rbuff.GetIndices()[0], r)); 624var rbuffIndices = rbuff.GetIndices(); 1209_inputValue.GetIndices().Slice(smin, scount).CopyTo(editor.Indices); 1232var indices = _inputValue.GetIndices();
Deprecated\Instances\HeaderSchema.cs (1)
175var nameIndices = names.GetIndices();
Deprecated\Vector\VBufferMathUtils.cs (9)
127src.GetIndices().CopyTo(editor.Indices); 153CpuMathUtils.Add(srcValues, src.GetIndices(), editor.Values, srcValues.Length); 181CpuMathUtils.AddScale(c, srcValues, src.GetIndices(), editor.Values, srcValues.Length); 258CpuMathUtils.AddScale(c, srcValues, src.GetIndices(), values, srcValues.Length); 267var dstIndices = dst.GetIndices(); 278var srcIndices = src.GetIndices(); 339var srcIndices = src.GetIndices(); 423var srcIndices = src.GetIndices(); 459var srcIndices = src.GetIndices();
Deprecated\Vector\VectorUtils.cs (17)
38return CpuMathUtils.DotProductSparse(a, bValues, b.GetIndices(), bValues.Length); 54return CpuMathUtils.DotProductSparse(aValues, bValues, b.GetIndices(), bValues.Length); 58return CpuMathUtils.DotProductSparse(bValues, aValues, a.GetIndices(), aValues.Length); 59return DotProductSparse(aValues, a.GetIndices(), 0, aValues.Length, bValues, b.GetIndices(), 0, bValues.Length); 82var aIndices = a.GetIndices(); 264return CpuMathUtils.DotProductSparse(aValues.Slice(offset), bValues, b.GetIndices(), bValues.Length); 269var aIndices = a.GetIndices(); 278var bIndices = b.GetIndices(); 314return CpuMathUtils.DotProductSparse(a.AsSpan(offset), bValues, b.GetIndices(), bValues.Length); 401return L2DistSquaredHalfSparse(a.GetValues(), b.GetValues(), b.GetIndices()); 404return L2DistSquaredHalfSparse(b.GetValues(), a.GetValues(), a.GetIndices()); 405return L2DistSquaredSparse(a.GetValues(), a.GetIndices(), b.GetValues(), b.GetIndices()); 420return L2DistSquaredHalfSparse(a.AsSpan(0, a.Length), b.GetValues(), b.GetIndices()); 454var srcIndices = src.GetIndices(); 485var srcIndices = src.GetIndices();
Evaluators\EvaluatorUtils.cs (1)
711var srcIndices = src.GetIndices();
Evaluators\QuantileRegressionEvaluator.cs (2)
160var scoreIndices = score.GetIndices(); 186var lossIndices = loss.GetIndices();
Transforms\ColumnConcatenatingTransformer.cs (1)
758var bufferIndices = buffer.GetIndices();
Transforms\Hashing.cs (9)
1053src.GetIndices().CopyTo(editor.Indices); 1079var srcIndices = src.GetIndices(); 1107src.GetIndices().CopyTo(editor.Indices); 1133var srcIndices = src.GetIndices(); 1175var srcIndices = src.GetIndices(); 1198var srcIndices = src.GetIndices(); 1239var srcIndices = src.GetIndices(); 1262var srcIndices = src.GetIndices(); 1735var hashIndices = _hash.GetIndices();
Transforms\KeyToValue.cs (2)
417var srcIndices = src.GetIndices(); 442var srcIndices = src.GetIndices();
Transforms\KeyToVector.cs (1)
595var indices = src.GetIndices();
Transforms\NormalizeColumn.cs (1)
941var indices = _buffer.GetIndices();
Transforms\NormalizeColumnDbl.cs (9)
374var indices = value.GetIndices(); 484var indices = value.GetIndices(); 843var indices = input.GetIndices(); 878var indices = input.GetIndices(); 923var indices = input.GetIndices(); 1126var indices = input.GetIndices(); 1342var indices = input.GetIndices(); 1364var indices = input.GetIndices(); 1948var indices = buffer.GetIndices();
Transforms\NormalizeColumnSng.cs (9)
375var indices = value.GetIndices(); 486var indices = value.GetIndices(); 1001var indices = input.GetIndices(); 1037var indices = input.GetIndices(); 1083var indices = input.GetIndices(); 1287var indices = input.GetIndices(); 1504var indices = input.GetIndices(); 1526var indices = input.GetIndices(); 2112var indices = buffer.GetIndices();
Transforms\ValueMapping.cs (1)
923src.GetIndices().CopyTo(editor.Indices);
Transforms\ValueToKeyMappingTransformerImpl.cs (3)
418var valIndices = _val.GetIndices(); 964var indices = src.GetIndices(); 1013var indices = src.GetIndices();
Utilities\SlotDropper.cs (2)
154var indices = dst.GetIndices(); 155var srcIndices = src.GetIndices();
Microsoft.ML.DataView (4)
VBuffer.cs (4)
17/// <see cref="GetValues"/> and, if not dense, <see cref="GetIndices"/>. 75/// To give one example, if <see cref="GetIndices"/> returns [3, 5] and <see cref="GetValues"/>() produces [98, 76], 364/// items, which is to say, the <see cref="ReadOnlySpan{Int32}.Length"/> of the return value of <see cref="GetIndices"/>. 369/// <see cref="GetValues"/> and, if appropriate, <see cref="GetIndices"/> directly.
Microsoft.ML.Ensemble (1)
EnsembleUtils.cs (1)
89var srcIndices = src.GetIndices();
Microsoft.ML.FastTree (10)
FastTree.cs (5)
1214var nonZeroValues = NonZeroBinnedValuesForSparse(valuesValues, values.GetIndices(), binUpperBounds); 1230var valuesIndices = values.GetIndices(); 1316src.GetIndices().CopyTo(editor.Indices); 1507var doubleTempIndices = doubleTemp.GetIndices(); 1590var tempIndices = temp.GetIndices();
GamModelParameters.cs (2)
219var featuresIndices = features.GetIndices(); 250var featuresIndices = features.GetIndices();
TreeEnsemble\InternalRegressionTree.cs (3)
785return GetLeafCore(feat.GetIndices(), feat.GetValues()); 801return GetLeafCore(feat.GetIndices(), feat.GetValues(), root: root); 819return GetLeafCore(feat.GetIndices(), feat.GetValues(), path);
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
247writer.WriteIntsNoCount(_centroids[i].GetIndices());
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
695var indices = src.GetIndices();
Microsoft.ML.Predictor.Tests (1)
TestTransposer.cs (1)
46var tempIndices = temp.GetIndices();
Microsoft.ML.Samples (2)
Dynamic\Transforms\Conversion\Hash.cs (1)
83var indices = slotNames.GetIndices();
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
97var indices = slotNames.GetIndices();
Microsoft.ML.StandardTrainers (14)
Optimizer\SgdOptimizer.cs (4)
416var xIndices = x.GetIndices(); 439var xprevIndices = xprev.GetIndices(); 463var xIndices = x.GetIndices(); 464var xprevIndices = xprev.GetIndices();
Standard\LinearModelParameters.cs (1)
227ctx.Writer.WriteIntArray(Weight.GetIndices());
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
709var fwIndices = fw.GetIndices();
Standard\ModelStatistics.cs (6)
324ctx.Writer.WriteIntsNoCount(_coeffStdError.GetIndices()); 334ctx.Writer.WriteIntsNoCount(_coeffStdError.GetIndices()); 372ReadOnlySpan<int> stdErrorIndices = _coeffStdError.GetIndices(); 394ReadOnlySpan<int> stdErrorIndices2 = _coeffStdError.GetIndices(); 415ReadOnlySpan<int> stdErrorIndices = _coeffStdError.GetIndices(); 438ReadOnlySpan<int> stdErrorIndices = _coeffStdError.GetIndices();
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
601var srcIndices = src.GetIndices();
Standard\SdcaBinary.cs (1)
882CpuMathUtils.SdcaL1UpdateSparse(primalUpdate, featureValues.Length, featureValues, features.GetIndices(), l1Threshold, l1IntermediateWeightsEditor.Values, weightsEditor.Values);
Microsoft.ML.TestFrameworkCommon (2)
TestCommon.cs (2)
160var v1Indices = v1.GetIndices(); 161var v2Indices = v2.GetIndices();
Microsoft.ML.Tests (2)
SvmLightTests.cs (2)
335Assert.True(features.GetIndices().Length == 1); 337Assert.True(features.GetIndices()[0] == 3);
Microsoft.ML.Transforms (34)
Dracula\CountTableTransformer.cs (2)
283var indices = srcBuffer.GetIndices(); 720var srcIndices = src.GetIndices();
ExpressionTransformer.cs (15)
627src0.GetIndices().CopyTo(editor.Indices); 651ectx.Assert(ii == count || src0.GetIndices()[ii] >= i); 652if (ii < count && src0.GetIndices()[ii] == i) 701src0.GetIndices().CopyTo(editor.Indices); 711ectx.Assert(ii == count || src0.GetIndices()[ii] >= i); 712if (ii < count && src0.GetIndices()[ii] == i) 764src0.GetIndices().CopyTo(editor.Indices); 774ectx.Assert(ii == count || src0.GetIndices()[ii] >= i); 775if (ii < count && src0.GetIndices()[ii] == i) 830src0.GetIndices().CopyTo(editor.Indices); 840ectx.Assert(ii == count || src0.GetIndices()[ii] >= i); 841if (ii < count && src0.GetIndices()[ii] == i) 899src0.GetIndices().CopyTo(editor.Indices); 909ectx.Assert(ii == count || src0.GetIndices()[ii] >= i); 910if (ii < count && src0.GetIndices()[ii] == i)
GcnTransform.cs (1)
503src.GetIndices().CopyTo(editor.Indices);
LearnerFeatureSelection.cs (1)
182var scoresIndices = scores.GetIndices();
MissingValueDroppingTransformer.cs (1)
342var srcIndices = src.GetIndices();
MissingValueIndicatorTransform.cs (1)
329var indices = buffer.GetIndices();
MissingValueIndicatorTransformer.cs (2)
319var srcIndices = src.GetIndices(); 330var srcIndices = src.GetIndices();
MissingValueReplacing.cs (2)
744var srcIndices = src.GetIndices(); 818var srcIndices = src.GetIndices();
MissingValueReplacingUtils.cs (1)
255var srcIndices = src.GetIndices();
MutualInformationFeatureSelection.cs (2)
744var featureIndices = features.GetIndices(); 903input.GetIndices().CopyTo(editor.Indices);
PermutationFeatureImportance.cs (1)
102var indexes = weights.GetIndices().ToArray();
RandomFourierFeaturizing.cs (1)
577var srcIndices = src.GetIndices();
Text\LdaTransform.cs (2)
450actualSize = _ldaTrainer.LoadDoc(input.GetIndices(), inputValues, termNum, input.Length); 522retTopics = _ldaTrainer.TestDoc(src.GetIndices(), srcValues, termNum, numBurninIter, reset);
Text\NgramUtils.cs (1)
95var srcIndices = src.GetIndices();
UngroupTransform.cs (1)
661var rowIndices = row.GetIndices();