1 write to Indices
Microsoft.ML.DataView (1)
VBufferEditor.cs (1)
123Indices = !isDense || requireIndicesOnDense ? _indices.AsSpan(0, physicalValuesCount) : default;
99 references to Indices
Microsoft.ML.Core (22)
Utilities\VBufferUtils.cs (22)
317if (dstValuesCount > 0 && Utils.TryFindIndexSorted(editor.Indices, 0, dstValuesCount, slot, out idx)) 342editor.Indices.Slice(idx, sliceLength).CopyTo(editor.Indices.Slice(idx + 1)); 346editor.Indices[idx] = slot; 417Utils.FillIdentity(newIndicesEditor.Indices, denseCount); 434editor.Indices.Slice(lim, sliceLength).CopyTo(editor.Indices.Slice(denseCount)); 439editor.Indices[ii] = ii; 481editor.Indices[j] = i; 694manip(editor.Indices[i] = srcIndices[i], srcValues[i], ref editor.Values[i]); 750var indices = editor.Indices; 851editor.Indices[dI] = sI++; 860srcIndices.CopyTo(editor.Indices); 907srcIndices.CopyTo(editor.Indices); 911editor.Indices[ii] = i; 997editor.Indices[jj] = j; 1005editor.Indices[jj] = dstIndices[jj]; 1081editor.Indices[kk] = i; 1089editor.Indices[kk] = i; 1097editor.Indices[kk] = j; 1150Span<int> indices = editor.Indices; 1254Span<int> indices = editor.Indices;
Microsoft.ML.Core.Tests (12)
UnitTests\TestVBuffer.cs (12)
555var indices = editor.Indices; 561for (int i = 0; i < editor.Indices.Length; ++i) 1015var indices = editor.Indices; 1121bEditor.Indices[i] = a.GetIndices()[i]; 1130bEditor.Indices[i] = a.GetIndices()[bEditor.Indices[i]]; 1147Utils.Shuffle(rgen, aEditor.Indices); 1148aEditor.Indices.Slice(boundary).CopyTo(bEditor.Indices); 1150GenericSpanSortHelper<int>.Sort(aEditor.Indices, 0, boundary); 1151GenericSpanSortHelper<int>.Sort(bEditor.Indices, 0, bEditor.Indices.Length);
Microsoft.ML.Data (29)
Data\BufferBuilder.cs (1)
462_indices.AsSpan(0, _count).CopyTo(editor.Indices);
Data\RowCursorUtils.cs (1)
291srcIndices.CopyTo(editor.Indices);
DataLoadSave\Binary\Codecs.cs (1)
1110.CopyTo(editor.Indices);
DataLoadSave\Text\TextLoaderParser.cs (1)
433_indices.AsSpan(0, _count).CopyTo(editor.Indices);
DataView\CacheDataView.cs (1)
1406_indices.CopyTo(_indexBoundaries[idx], editor.Indices, indexCount);
DataView\Transposer.cs (2)
1209_inputValue.GetIndices().Slice(smin, scount).CopyTo(editor.Indices); 1214editor.Indices[i] -= min;
Deprecated\Instances\HeaderSchema.cs (1)
62indexList.CopyTo(editor.Indices);
Deprecated\Vector\VBufferMathUtils.cs (2)
127src.GetIndices().CopyTo(editor.Indices); 301var indices = editor.Indices;
Deprecated\Vector\VectorUtils.cs (4)
121aEditor.Indices[count] = pair.Key; 128aEditor.Indices[count] = pair.Key; 152if (!aEditor.Indices.IsEmpty) 153GenericSpanSortHelper<int>.Sort(aEditor.Indices, aEditor.Values, 0, newCount);
Evaluators\EvaluatorUtils.cs (1)
718editor.Indices[j] = srcIndices[j];
Scorers\FeatureContributionCalculation.cs (1)
239var indices = contributions.IsDense ? Utils.GetIdentityPermutation(contributions.Length) : editor.Indices;
Transforms\ColumnConcatenatingTransformer.cs (3)
753editor.Indices[count++] = offset + i; 762editor.Indices[count++] = offset + bufferIndices[i]; 772editor.Indices[count++] = offset;
Transforms\Hashing.cs (4)
1053src.GetIndices().CopyTo(editor.Indices); 1107src.GetIndices().CopyTo(editor.Indices); 1178srcIndices.CopyTo(editor.Indices); 1242srcIndices.CopyTo(editor.Indices);
Transforms\KeyToValue.cs (1)
452editor.Indices[islotDst++] = srcIndices[islotSrc];
Transforms\KeyToVector.cs (3)
491editor.Indices[0] = (int)src - 1; 590editor.Indices[count++] = slot * size + (int)key; 603editor.Indices[count++] = indices[islot] * size + (int)key;
Transforms\ValueMapping.cs (1)
923src.GetIndices().CopyTo(editor.Indices);
Utilities\SlotDropper.cs (1)
180editor.Indices[iiDst] = index - iOffset;
Microsoft.ML.DataView (6)
VBuffer.cs (2)
210_indices.AsSpan(0, _count).CopyTo(editor.Indices); 254editor.Indices[i] = _indices[i + copyMin] - sourceIndex;
VBufferEditor.cs (4)
74/// <see cref="Values"/> (and <see cref="Indices"/> if the buffer is not dense). 104/// Gets a value indicating whether a new <see cref="Indices"/> array was allocated. 130/// Commits the edits and creates a new <see cref="VBuffer{T}"/> using the current <see cref="Values"/> and <see cref="Indices"/>. 142/// of <see cref="Values"/> and, if sparse, <see cref="Indices"/>.
Microsoft.ML.Ensemble (2)
EnsembleUtils.cs (2)
75editor.Indices[count] = i; 95editor.Indices[count] = srcIndices[i];
Microsoft.ML.FastTree (3)
FastTree.cs (3)
1316src.GetIndices().CopyTo(editor.Indices); 2537editor.Indices[i] = _sparse[i].Key; 2540Contracts.Assert(Utils.IsIncreasing(0, editor.Indices, count, length));
Microsoft.ML.StandardTrainers (3)
Standard\LogisticRegression\LogisticRegression.cs (1)
214Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.Indices[BiasCount - 1] == BiasCount - 1));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
272Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.Indices[BiasCount - 1] == BiasCount - 1));
Standard\PoissonRegression\PoissonRegression.cs (1)
179Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.Indices[BiasCount - 1] == BiasCount - 1));
Microsoft.ML.Transforms (22)
ExpressionTransformer.cs (5)
627src0.GetIndices().CopyTo(editor.Indices); 701src0.GetIndices().CopyTo(editor.Indices); 764src0.GetIndices().CopyTo(editor.Indices); 830src0.GetIndices().CopyTo(editor.Indices); 899src0.GetIndices().CopyTo(editor.Indices);
GcnTransform.cs (1)
503src.GetIndices().CopyTo(editor.Indices);
MissingValueDroppingTransformer.cs (1)
349editor.Indices[iDst] = srcIndices[i] - offset;
MissingValueIndicatorTransform.cs (6)
282editor.Indices[0] = 1; 287editor.Indices[0] = 0; 315editor.Indices[iivDst] = 2 * ivSrc + 1; 320editor.Indices[iivDst] = 2 * ivSrc; 343editor.Indices[iivDst] = 2 * iv + 1; 348editor.Indices[iivDst] = 2 * iv;
MissingValueIndicatorTransformer.cs (2)
369indices.CopyTo(editor.Indices); 397editor.Indices[iiDst++] = i;
MissingValueReplacing.cs (4)
759dstEditor.Indices[iivDst++] = iv; 765dstEditor.Indices[iivDst++] = iv; 833dstEditor.Indices[iivDst++] = iv; 839dstEditor.Indices[iivDst++] = iv;
MutualInformationFeatureSelection.cs (1)
903input.GetIndices().CopyTo(editor.Indices);
Text\LdaTransform.cs (2)
537Contracts.Assert(i == 0 || editor.Indices[i - 1] < index); 538editor.Indices[i] = index;