29 references to GetItemOrDefault
Microsoft.ML.Core.Tests (11)
UnitTests\TestVBuffer.cs (11)
333b.GetItemOrDefault(i, ref values[ii]); 336a.GetItemOrDefault(i, ref temp); 378a.GetItemOrDefault(i, ref temp); 379b.GetItemOrDefault(i, ref values[ii]); 425a.GetItemOrDefault(index, ref aValue); 426b.GetItemOrDefault(index, ref bValue); 510a.GetItemOrDefault(indices[i], ref aValue); 511b.GetItemOrDefault(indices[i], ref bValue); 742a.GetItemOrDefault(iv.Key + copyMin, ref value); 770a.GetItemOrDefault(iv.Key, ref value); 804a.GetItemOrDefault(iv.Key, ref value);
Microsoft.ML.Data (4)
DataLoadSave\Transpose\TransposeLoader.cs (1)
824buff.GetItemOrDefault(0, ref value);
Transforms\InvertHashUtils.cs (1)
67keyValues.GetItemOrDefault((int)(intermediate - 1), ref value);
Transforms\ValueToKeyMappingTransformerImpl.cs (2)
1140srcMeta.GetItemOrDefault((int)(convKeyVal - 1), ref editor.Values[pair.Key]); 1224srcMeta.GetItemOrDefault((int)(convKeyVal - 1), ref metaVal);
Microsoft.ML.DataView (1)
VBuffer.cs (1)
387/// A variant of <see cref="GetItemOrDefault(int, ref T)"/> that returns the value instead of passing it
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1720groupIds.GetItemOrDefault(0, ref last);
Microsoft.ML.StandardTrainers (7)
Standard\LinearModelParameters.cs (1)
75_pred.Weight.GetItemOrDefault(index, ref value);
Standard\LogisticRegression\LogisticRegression.cs (2)
194x.GetItemOrDefault(0, ref bias); 454CurrentWeights.GetItemOrDefault(0, ref bias);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
253x.GetItemOrDefault(c, ref bias); 471weights.GetItemOrDefault(i, ref Biases[i]);
Standard\PoissonRegression\PoissonRegression.cs (2)
170x.GetItemOrDefault(0, ref bias); 194CurrentWeights.GetItemOrDefault(0, ref bias);
Microsoft.ML.Tests (4)
Transformers\NAIndicatorTests.cs (4)
149value.GetItemOrDefault(0, ref mem); 151value.GetItemOrDefault(1, ref mem); 153value.GetItemOrDefault(2, ref mem); 155value.GetItemOrDefault(3, ref mem);
Microsoft.ML.Transforms (1)
Text\LdaTransform.cs (1)
364mapping.GetItemOrDefault(p.Key, ref slotName);