441 references to GetValues
Microsoft.Data.Analysis.Tests (5)
VBufferColumnTests.cs (5)
26Assert.Equal(5, vBufferColumn[0].GetValues().Length); 27Assert.Equal(0, vBufferColumn[0].GetValues()[0]); 39Assert.Equal(5, vBufferColumn[0].GetValues().Length); 40Assert.Equal(0, vBufferColumn[0].GetValues()[4]); 55var values = vBufferColumn[index].GetValues();
Microsoft.ML.Core (21)
Data\AnnotationUtils.cs (1)
399var catIndicesValues = catIndices.GetValues();
Utilities\VBufferUtils.cs (20)
25var values = buffer.GetValues(); 36var values = buffer.GetValues(); 47var values = buffer.GetValues(); 58var values = buffer.GetValues(); 89var aValues = a.GetValues(); 107/// <see cref="VBuffer{T}.GetValues"/> corresponding to that index. 118var aValues = a.GetValues(); 119var bValues = b.GetValues(); 169var aValues = a.GetValues(); 170var bValues = b.GetValues(); 360var values = dst.GetValues(); 402var dstValues = dst.GetValues(); 459var srcValues = src.GetValues(); 620var srcValues = src.GetValues(); 621var dstValues = dst.GetValues(); 883var srcValues = src.GetValues(); 884var dstValues = dst.GetValues(); 1129var srcValues = src.GetValues(); 1183var aValues = a.GetValues(); 1184var bValues = b.GetValues();
Microsoft.ML.Core.Tests (62)
UnitTests\TestEntryPoints.cs (10)
2270var dense1Values = dense1.GetValues(); 2271var dense2Values = dense2.GetValues(); 4505Assert.Equal(5, treeValues.GetValues().Length); 4507Assert.Equal(5, leafIndicators.GetValues().Length); 4551Assert.Equal(150, feat.GetValues().Length); 4552Assert.NotEqual(0, feat.GetValues()[0]); 5410var slotNameValues = slotNames.GetValues(); 6091var stdevValues = stdev.GetValues(); 6111var avgValues = avg.GetValues(); 6112var sumValues = sum.GetValues();
UnitTests\TestVBuffer.cs (52)
38Assert.Equal(4, buffer.GetValues().Length); 39Assert.Equal(1, buffer.GetValues()[2]); 101float infNorm = a.GetValues().Length == 0 ? 0 : a.Items().Max(iv => Math.Abs(iv.Value)); 293var actualValues = a.GetValues().ToArray(); 317Assert.Equal(values, a.GetValues().ToArray()); 472TDst[] values = new TDst[a.GetValues().Length]; 546if (a.GetValues().Length == 0 || c == 0) 554var editor = VBufferEditor.Create(ref aa, b.Length, aa.GetValues().Length, requireIndicesOnDense: true); 908while (index < a.GetValues().Length) 915expectedValues.Add(a.GetValues()[index]); 928Assert.True(expectedIndices.Count <= a.GetValues().Length); 1014var editor = VBufferEditor.Create(ref dst, src.Length, src.GetValues().Length); 1018src.GetValues().CopyTo(values); 1030Assert.Equal(expected.GetValues().Length, actual.GetValues().Length); 1037for (int i = 0; i < expected.GetValues().Length; ++i) 1039var result = equalityFunc(expected.GetValues()[i], actual.GetValues()[i]); 1040Assert.True(result, $"Value [{i}] mismatch on expected {expected.GetValues()[i]} vs. actual {actual.GetValues()[i]}"); 1118GenerateVBuffer(rgen, len, a.GetValues().Length, out b); 1127GenerateVBuffer(rgen, a.GetValues().Length, rgen.Next(a.GetValues().Length), out b); 1128bEditor = VBufferEditor.Create(ref b, len, b.GetValues().Length); 1141int boundary = rgen.Next(a.GetValues().Length + 1); 1142GenerateVBuffer(rgen, len, a.GetValues().Length - boundary, out b); 1143if (a.GetValues().Length != 0 && b.GetValues().Length != 0 && a.GetValues().Length != b.GetValues().Length) 1183Assert.True(equalityFunc(expected.GetValues()[i], actual.GetValues()[i])); 1189int j = actual.GetValues().Length == 0 ? length : actual.GetIndices()[jj]; 1194Assert.True(equalityFunc(expected.GetValues()[i], actual.GetValues()[jj])); 1195j = ++jj == actual.GetValues().Length ? length : actual.GetIndices()[jj]; 1198Assert.True(equalityFunc(expected.GetValues()[i], default(T))); 1205int i = expected.GetValues().Length == 0 ? length : expected.GetIndices()[ii]; 1210Assert.True(equalityFunc(expected.GetValues()[ii], actual.GetValues()[j])); 1211i = ++ii == expected.GetValues().Length ? length : expected.GetIndices()[ii]; 1214Assert.True(equalityFunc(actual.GetValues()[j], default(T))); 1222int i = expected.GetValues().Length == 0 ? length : expected.GetIndices()[ii]; 1223int j = actual.GetValues().Length == 0 ? length : actual.GetIndices()[jj]; 1230Assert.True(equalityFunc(expected.GetValues()[ii], actual.GetValues()[jj])); 1231i = ++ii == expected.GetValues().Length ? length : expected.GetIndices()[ii]; 1232j = ++jj == actual.GetValues().Length ? length : actual.GetIndices()[jj]; 1236Assert.True(equalityFunc(expected.GetValues()[ii], default(T))); 1237i = ++ii == expected.GetValues().Length ? length : expected.GetIndices()[ii]; 1242Assert.True(equalityFunc(actual.GetValues()[ii], default(T))); 1243j = ++jj == actual.GetValues().Length ? length : actual.GetIndices()[jj];
Microsoft.ML.Data (121)
Commands\ShowSchemaCommand.cs (1)
280itw.Write(": Length={0}, Count={0}", value.Length, value.GetValues().Length);
Data\BufferBuilder.cs (1)
397var values = buffer.GetValues();
Data\Conversion.cs (6)
771private bool HasNA(in VBuffer<R4> src) { var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (R4.IsNaN(srcValues[i])) return true; } return false; } 772private bool HasNA(in VBuffer<R8> src) { var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (R8.IsNaN(srcValues[i])) return true; } return false; } 795private bool HasZero(in VBuffer<U1> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 796private bool HasZero(in VBuffer<U2> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 797private bool HasZero(in VBuffer<U4> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 798private bool HasZero(in VBuffer<U8> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; }
Data\RowCursorUtils.cs (1)
278var srcValues = src.GetValues();
DataLoadSave\Binary\Codecs.cs (1)
918var valueValues = value.GetValues();
DataLoadSave\Text\TextSaver.cs (2)
179var srcValues = _src.GetValues(); 203var slotNamesValues = _slotNames.GetValues();
DataView\CacheDataView.cs (1)
1370_values.AddRange(_temp.GetValues());
DataView\Transposer.cs (6)
571var rbuffValues = rbuff.GetValues(); 609if (rbuff.GetValues().Length > 0) 623var rbuffValues = rbuff.GetValues(); 643countSum += _rbuff[irbuff].GetValues().Length; 1191_inputValue.GetValues().Slice(min, len).CopyTo(editor.Values); 1217_inputValue.GetValues().Slice(smin, scount).CopyTo(editor.Values);
DataView\TypedCursor.cs (1)
472value.GetValues().CopyTo(buf);
Deprecated\Instances\HeaderSchema.cs (1)
166var nameValues = names.GetValues();
Deprecated\Vector\VBufferMathUtils.cs (17)
21var aValues = a.GetValues(); 50var aValues = a.GetValues(); 62var aValues = a.GetValues(); 73var aValues = a.GetValues(); 86if (c == 1 || dst.GetValues().Length == 0) 103var srcValues = src.GetValues(); 143var srcValues = src.GetValues(); 171var srcValues = src.GetValues(); 197var srcValues = src.GetValues(); 209CpuMathUtils.AddScaleCopy(c, srcValues, dst.GetValues(), editor.Values, length); 226if (c == 0 || b.GetValues().Length == 0) 228else if (a.GetValues().Length == 0) 245var srcValues = src.GetValues(); 295var dstValues = dst.GetValues(); 387else if (src.GetValues().Length == 0 || c == 0) 412var srcValues = src.GetValues(); 448var srcValues = src.GetValues();
Deprecated\Vector\VectorUtils.cs (21)
33var bValues = b.GetValues(); 45var aValues = a.GetValues(); 46var bValues = b.GetValues(); 81var aValues = a.GetValues(); 167CpuMathUtils.MulElementWise(a.GetValues(), dst.GetValues(), editor.Values, a.Length); 256var aValues = a.GetValues(); 257var bValues = b.GetValues(); 308var bValues = b.GetValues(); 400return L2DiffSquaredDense(a.GetValues(), b.GetValues(), b.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()); 419return L2DiffSquaredDense(a, b.GetValues(), b.Length); 420return L2DistSquaredHalfSparse(a.AsSpan(0, a.Length), b.GetValues(), b.GetIndices()); 446var srcValues = src.GetValues(); 474var srcValues = src.GetValues();
Evaluators\EvaluatorUtils.cs (2)
694var srcValues = src.GetValues(); 1451var values = labelNames.GetValues();
Evaluators\MultiOutputRegressionEvaluator.cs (2)
349label = _label.GetValues(); 357score = _score.GetValues();
Evaluators\QuantileRegressionEvaluator.cs (5)
145var scoreValues = score.GetValues(); 176var lossValues = loss.GetValues(); 198var srcValues = src.GetValues(); 340var quantiles = _quantiles.GetValues(); 373var quantiles = _quantiles.GetValues();
Training\TrainerUtils.cs (1)
856if (!_keepBad && !FloatUtils.IsFinite(Features.GetValues()))
Transforms\ColumnConcatenatingTransformer.cs (2)
723dstCount = checked(dstCount + tmpBufs[i].GetValues().Length); 745var bufferValues = buffer.GetValues();
Transforms\Hashing.cs (12)
1042var srcValues = src.GetValues(); 1064var srcValues = src.GetValues(); 1096var srcValues = src.GetValues(); 1118var srcValues = src.GetValues(); 1160var srcValues = src.GetValues(); 1190var srcValues = src.GetValues(); 1224var srcValues = src.GetValues(); 1254var srcValues = src.GetValues(); 1676var valueValues = _value.GetValues(); 1677var hashValues = _hash.GetValues(); 1721var valueValues = _value.GetValues(); 1722var hashValues = _hash.GetValues();
Transforms\InvertHashUtils.cs (1)
419writer.WriteLine("# Number of terms = {0} of length {1}", v.GetValues().Length, v.Length);
Transforms\KeyToValue.cs (9)
340MapKey(in src, _values.GetValues(), ref dst); 389var srcValues = src.GetValues(); 392var keyValues = _values.GetValues(); 478var keyValues = _values.GetValues(); 536string[] values = Array.ConvertAll<TValue, string>(_values.GetValues().ToArray(), item => Convert.ToString(item)); 544float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item)); 550float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item)); 559string[] values = Array.ConvertAll<TValue, string>(_values.GetValues().ToArray(), item => Convert.ToString(item)); 564float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item));
Transforms\KeyToVector.cs (2)
530var values = src.GetValues(); 575var values = src.GetValues();
Transforms\NormalizeColumn.cs (2)
935var values = _buffer.GetValues(); 942var values = _buffer.GetValues();
Transforms\NormalizeColumnDbl.cs (9)
358var values = value.GetValues(); 469var values = value.GetValues(); 827var values = input.GetValues(); 857var values = input.GetValues(); 902var values = input.GetValues(); 1101var values = input.GetValues(); 1312var values = input.GetValues(); 1936var values = buffer.GetValues(); 2144var span = val.GetValues();
Transforms\NormalizeColumnSng.cs (9)
358var values = value.GetValues(); 470var values = value.GetValues(); 984var values = input.GetValues(); 1015var values = input.GetValues(); 1061var values = input.GetValues(); 1261var values = input.GetValues(); 1473var values = input.GetValues(); 2099var values = buffer.GetValues(); 2306var span = val.GetValues();
Transforms\ValueMapping.cs (1)
922var values = src.GetValues();
Transforms\ValueToKeyMappingTransformerImpl.cs (4)
398var values = _val.GetValues(); 792var srcValues = src.GetValues(); 963var values = src.GetValues(); 1001var values = src.GetValues();
Utilities\SlotDropper.cs (1)
124var srcValues = src.GetValues();
Microsoft.ML.DataView (6)
VBuffer.cs (6)
17/// <see cref="GetValues"/> and, if not dense, <see cref="GetIndices"/>. 54/// as returned from <see cref="GetValues"/>, since all values are explicitly represented in a dense representation. If 69/// For a sparse representation it is parallel to that returned from <see cref="GetValues"/> and specifies the 75/// To give one example, if <see cref="GetIndices"/> returns [3, 5] and <see cref="GetValues"/>() produces [98, 76], 367/// <see cref="GetValues"/> does is not a free operation, it may be more efficient to use this method. However 369/// <see cref="GetValues"/> and, if appropriate, <see cref="GetIndices"/> directly.
Microsoft.ML.Ensemble (1)
EnsembleUtils.cs (1)
53var srcValues = src.GetValues();
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
132var metadataValues = metadata.GetValues();
Microsoft.ML.FastTree (14)
BinFile\BinFinder.cs (2)
56var explicitValues = values.GetValues(); 232var valuesCount = values.GetValues().Length;
FastTree.cs (4)
1206var valuesValues = values.GetValues(); 1310var srcValues = src.GetValues(); 1506var doubleTempValues = doubleTemp.GetValues(); 1589var tempValues = temp.GetValues();
GamModelParameters.cs (2)
207var featuresValues = features.GetValues(); 239var featuresValues = features.GetValues();
TreeEnsemble\InternalRegressionTree.cs (6)
784return GetLeafCore(feat.GetValues()); 785return GetLeafCore(feat.GetIndices(), feat.GetValues()); 800return GetLeafCore(feat.GetValues(), root: root); 801return GetLeafCore(feat.GetIndices(), feat.GetValues(), root: root); 818return GetLeafCore(feat.GetValues(), path); 819return GetLeafCore(feat.GetIndices(), feat.GetValues(), path);
Microsoft.ML.ImageAnalytics (2)
VectorToImageTransform.cs (2)
359if (src.GetValues().Length == 0) 366var values = dense.GetValues();
Microsoft.ML.IntegrationTests (2)
IntrospectiveTraining.cs (1)
354foreach (var slotName in categoricalSlotNames.GetValues())
ModelFiles.cs (1)
308var ageIndex = FindIndex(slotNames.GetValues(), "age");
Microsoft.ML.KMeansClustering (5)
KMeansModelParameters.cs (3)
91Host.CheckParam(FloatUtils.IsFinite(centroids[i].GetValues()), 186var values = _centroids[i].GetValues(); 244var values = _centroids[i].GetValues();
KMeansPlusPlusTrainer.cs (2)
1433var reducedStateCacheValues = reducedState.CachedSumDebug[i].GetValues(); 1434var cachedSumCopyValues = cachedSumCopy[i].GetValues();
Microsoft.ML.Mkl.Components (4)
OlsLinearRegression.cs (3)
837var weightValues = Weight.GetValues(); 915var coeffs = Weight.GetValues(); 930var coeffs = Weight.GetValues();
VectorWhitening.cs (1)
682var values = src.GetValues();
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
907return OnnxUtils.CreateNamedOnnxValue(_colName, _vBufferDense.GetValues(), _tensorShape); 915return OnnxUtils.CreateNamedOnnxValue(_colName, _vBufferDense.GetValues(), _tensorShape);
Microsoft.ML.OnnxTransformerTest (5)
OnnxTransformTests.cs (5)
455Assert.Equal(0, buffera.GetValues().ToArray().Sum()); 456Assert.Equal(30, bufferb.GetValues().ToArray().Sum()); 495Assert.Equal(0, buffera.GetValues().ToArray().Sum()); 496Assert.Equal(30, bufferb.GetValues().ToArray().Sum()); 516Assert.Equal(30, bufferb.GetValues().ToArray().Sum());
Microsoft.ML.PCA (4)
PcaTrainer.cs (3)
464Host.CheckParam(_eigenVectors[i].GetValues().All(FloatUtils.IsFinite), 538writer.WriteSinglesNoCount(_mean.GetValues().Slice(0, _dimension)); 544writer.WriteSinglesNoCount(_eigenVectors[i].GetValues().Slice(0, _dimension));
PcaTransformer.cs (1)
438var featureValues = features.GetValues();
Microsoft.ML.Predictor.Tests (1)
TestTransposer.cs (1)
45var tempValues = temp.GetValues();
Microsoft.ML.Samples (13)
Dynamic\NgramExtraction.cs (1)
74var slots = names.GetValues();
Dynamic\TextTransform.cs (1)
85foreach (var value in featureRow.GetValues())
Dynamic\Trainers\Clustering\KMeans.cs (2)
81string.Join(", ", centroids[0].GetValues().ToArray().Take(3))); 85string.Join(", ", centroids[1].GetValues().ToArray().Take(3)));
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (2)
89string.Join(", ", centroids[0].GetValues().ToArray().Take(3))); 93string.Join(", ", centroids[1].GetValues().ToArray().Take(3)));
Dynamic\Transforms\Conversion\Hash.cs (1)
84var categoryNames = slotNames.GetValues();
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
98var categoryNames = slotNames.GetValues();
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (1)
97foreach (var value in row.GetValues())
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
80var slots = slotNames.GetValues();
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
81var slots = slotNames.GetValues();
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
87var slots = slotNames.GetValues();
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
87var slots = slotNames.GetValues();
Microsoft.ML.StandardTrainers (32)
LdSvm\LdSvmModelParameters.cs (1)
217ctx.Writer.WriteSinglesNoCount(vector.GetValues());
LdSvm\LdSvmTrainer.cs (2)
602var noNaNs = FloatUtils.IsFinite(features.GetValues()); 655if (FloatUtils.IsFinite(example.Features.GetValues()))
Optimizer\SgdOptimizer.cs (5)
168Contracts.Check(FloatUtils.IsFinite(initial.GetValues()), "The initial vector contains NaNs or infinite values."); 365Contracts.Check(FloatUtils.IsFinite(initial.GetValues()), "The initial vector contains NaNs or infinite values."); 399Contracts.Assert(FloatUtils.IsFinite(xprev.GetValues())); 401var xValues = x.GetValues(); 405var xprevValues = xprev.GetValues();
Standard\LinearModelParameters.cs (2)
123Host.CheckParam(FloatUtils.IsFinite(weights.GetValues()), nameof(weights), "Cannot initialize linear predictor with non-finite weights"); 228ctx.Writer.WriteSingleArray(Weight.GetValues());
Standard\LinearPredictorUtils.cs (2)
53if (featureNames.GetValues().Length > 0) 120inputBuilder.AppendLine("Name=" + (featureNames.GetValues().Length == 0 ? "Feature_" + idx : name.IsEmpty ? $"f{idx}" : name.ToString()));
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
775var values = xDense.GetValues();
Standard\LogisticRegression\LogisticRegression.cs (1)
235var currentWeightsValues = CurrentWeights.GetValues();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (6)
203ReadOnlySpan<ReadOnlyMemory<char>> values = labelNames.GetValues(); 327var regLoss = VectorUtils.NormSquared(CurrentWeights.GetValues().Slice(BiasCount)) * L2Weight; 665ctx.Writer.WriteSinglesNoCount(fv.GetValues()); 695var fwValues = fw.GetValues(); 723var fwValues = fw.GetValues(); 758var values = vector.GetValues();
Standard\ModelStatistics.cs (5)
319var coeffStdErrorValues = _coeffStdError.GetValues(); 332ctx.Writer.WriteSinglesNoCount(_weights.GetValues()); 343var stdError = _coeffStdError.GetValues()[0]; 373ReadOnlySpan<float> coeffStdErrorValues = _coeffStdError.GetValues(); 410ReadOnlySpan<float> stdErrorValues = _coeffStdError.GetValues();
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
600var srcValues = src.GetValues();
Standard\Online\LinearSvm.cs (2)
193if (_weightsUpdate.GetValues().Length == 0) 206Contracts.Assert(_weightsUpdate.GetValues().Length == 0);
Standard\Online\OnlineLinear.cs (1)
229ch.Assert(FloatUtils.IsFinite(feat.GetValues()));
Standard\SdcaBinary.cs (2)
878var featureValues = features.GetValues(); 1007metrics[(int)MetricKind.L1Sparsity] = SdcaTrainerOptions.L1Regularization == 0 ? 1 : (Double)firstWeights.GetValues().Count(w => w != 0) / weights.Length;
Standard\SdcaMulticlass.cs (1)
439weight => weight.GetValues().Count(w => w != 0)) / (numClasses * numFeatures);
Microsoft.ML.TensorFlow.Tests (26)
TensorFlowEstimatorTests.cs (3)
311var aValues = avalue.GetValues(); 312var bValues = bvalue.GetValues(); 313var cValues = cvalue.GetValues();
TensorflowTests.cs (23)
210var cValues = c.GetValues(); 220cValues = c.GetValues(); 319var oneDimValues = oneDim.GetValues(); 323var twoDimValues = twoDim.GetValues(); 327var threeDimValues = threeDim.GetValues(); 331var fourDimValues = fourDim.GetValues(); 335var fourDimKnownValues = fourDimKnown.GetValues(); 460var f64Values = f64.GetValues(); 463var f32Values = f32.GetValues(); 466var i64Values = i64.GetValues(); 469var i32Values = i32.GetValues(); 472var i16Values = i16.GetValues(); 475var i8Values = i8.GetValues(); 478var u64Values = u64.GetValues(); 481var u32Values = u32.GetValues(); 484var u16Values = u16.GetValues(); 487var u8Values = u8.GetValues(); 490var bValues = b.GetValues(); 608Assert.Equal("conv2d/kernel", inputOps.GetValues()[0].ToString()); 622Assert.Equal("reshape/Reshape", inputOps.GetValues()[0].ToString()); 623Assert.Equal("conv2d/Conv2D/ReadVariableOp", inputOps.GetValues()[1].ToString()); 637Assert.Equal("sequential/dense_1/BiasAdd", inputOps.GetValues()[0].ToString()); 747Assert.NotEqual(trainedBias.GetValues().ToArray(), new float[] { 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f });
Microsoft.ML.TestFramework (8)
DataPipe\TestDataPipe.cs (6)
930TestCommon.CompareVec(in buffer, in expected[index++], buffer.GetValues().Length, (s1, s2) => s1.Span.SequenceEqual(s2.Span)); 1228Assert.Equal(barValues[row][s], value2.GetValues()[s]); 1519Assert.Equal(2 * buffer.GetValues()[0], buffer1.GetValues()[0]); 1520Assert.Equal(2 * buffer.GetValues()[1], buffer1.GetValues()[1]);
TestSparseDataView.cs (2)
60Assert.True(value.GetValues().Length == 3); 100Assert.True(value.GetValues().Length == 3);
Microsoft.ML.TestFrameworkCommon (2)
TestCommon.cs (2)
142var v1Values = v1.GetValues(); 143var v2Values = v2.GetValues();
Microsoft.ML.Tests (14)
SvmLightTests.cs (2)
334Assert.True(features.GetValues().Length == 1); 336Assert.True(features.GetValues()[0] == 6);
TermEstimatorTests.cs (1)
149Assert.True(names1.GetValues().Length > 0);
TextLoaderTests.cs (7)
780foreach (var val in featureValue.GetValues()) 799var vals4 = featureValue.GetValues(); 923features[count] = featuresPeriod.GetValues().ToArray(); 971Assert.Equal(features[count], featuresComma.GetValues().ToArray()); 1020foreach (float feature in featuresPeriod.GetValues().ToArray()) 1089var featuresPeriodArray = featuresPeriod.GetValues().ToArray(); 1090var featuresCommaArray = featuresComma.GetValues().ToArray();
Transformers\CountTargetEncodingTests.cs (2)
149var values = buffer.GetValues(); 150var values1 = buffer1.GetValues();
Transformers\ValueMappingTests.cs (2)
123Assert.True(dValue.GetValues().SequenceEqual(new int[] { 2, 3, 1 })); 158Assert.True(dValue.GetValues().SequenceEqual(new uint[] { 2, 3, 1 }));
Microsoft.ML.TimeSeries (6)
AdaptiveSingularSpectrumSequenceModeler.cs (6)
1506var meanForecast = forecast.PointForecast.GetValues(); 1508var sdForecast = forecast.ForecastStandardDeviation.GetValues(); 1538return result.PointForecast.GetValues().ToArray(); 1547forecast = result.PointForecast.GetValues().ToArray(); 1548confidenceIntervalLowerBounds = ssaResult.LowerBound.GetValues().ToArray(); 1549confidenceIntervalUpperBounds = ssaResult.UpperBound.GetValues().ToArray();
Microsoft.ML.TorchSharp (8)
AutoFormerV2\ObjectDetectionMetrics.cs (5)
317var boxes = box.GetValues(); 323obj.Confidence = score.GetValues()[i]; 324obj.Category = predLab.GetValues()[i].ToString(); 359var boxes = box.GetValues(); 366obj.Category = predLab.GetValues()[i].ToString();
AutoFormerV2\ObjectDetectionTrainer.cs (2)
396var labelValues = labels.GetValues(); 397var boxValues = boxes.GetValues();
NasBert\NerTrainer.cs (1)
152targetArray[i, j] = targets[i].GetValues()[j];
Microsoft.ML.TorchSharp.Tests (2)
QATests.cs (2)
114if (trainingAnswer.ToString().Contains(answer.GetValues()[0].ToString()) || answer.GetValues()[0].ToString().Contains(trainingAnswer.ToString()))
Microsoft.ML.Transforms (73)
Dracula\CountTableTransformer.cs (4)
282var values = srcBuffer.GetValues(); 656var featureNamesValues = featureNames.GetValues(); 713var srcValues = src.GetValues(); 719var srcValues = src.GetValues();
ExpressionTransformer.cs (21)
620int count = src0.GetValues().Length; 624editor.Values[i] = fn(src0.GetValues()[i]); 643editor.Values[i] = fn(src0.GetValues()[i]); 647int count = src0.GetValues().Length; 654editor.Values[i] = fn(src0.GetValues()[ii]); 688editor.Values[i] = fn(src0.GetValues()[i], src1); 694int count = src0.GetValues().Length; 700editor.Values[i] = fn(src0.GetValues()[i], src1); 714editor.Values[i] = fn(src0.GetValues()[ii], src1); 751editor.Values[i] = fn(src0.GetValues()[i], src1, src2); 757int count = src0.GetValues().Length; 763editor.Values[i] = fn(src0.GetValues()[i], src1, src2); 777editor.Values[i] = fn(src0.GetValues()[ii], src1, src2); 817editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3); 823int count = src0.GetValues().Length; 829editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3); 843editor.Values[i] = fn(src0.GetValues()[ii], src1, src2, src3); 886editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3, src4); 892int count = src0.GetValues().Length; 898editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3, src4); 912editor.Values[i] = fn(src0.GetValues()[ii], src1, src2, src3, src4);
GcnTransform.cs (10)
384var srcValues = src.GetValues(); 395var srcValues = src.GetValues(); 406var srcValues = src.GetValues(); 417var srcValues = src.GetValues(); 436var divisor = StdDev(src.GetValues(), src.Length); 445var divisor = L2Norm(src.GetValues()); 454var divisor = L1Norm(src.GetValues()); 463var divisor = LInfNorm(src.GetValues()); 475var srcValues = src.GetValues(); 506CpuMathUtils.Scale(normScale, src.GetValues(), dstValues, count);
HashJoiningTransform.cs (1)
430var srcSlotNameValues = srcSlotNames.GetValues();
KeyToVectorMapping.cs (1)
324foreach (var key in bits.GetValues())
LearnerFeatureSelection.cs (1)
125var scoresValues = scores.GetValues();
MissingValueDroppingTransformer.cs (3)
257var srcValues = src.GetValues(); 277Host.Assert(dst.GetValues().Length == newCount); 301var srcValues = src.GetValues();
MissingValueIndicatorTransform.cs (1)
299var values = buffer.GetValues();
MissingValueIndicatorTransformer.cs (1)
306var srcValues = src.GetValues();
MissingValueReplacing.cs (3)
260var srcValues = src.GetValues(); 713var srcValues = src.GetValues(); 787var srcValues = src.GetValues();
MissingValueReplacingUtils.cs (2)
220var srcValues = src.GetValues(); 244var srcValues = src.GetValues();
MutualInformationFeatureSelection.cs (6)
729var featureValues = features.GetValues(); 730var labelsValues = _labels.GetValues(); 800var bounds = _binFinder.FindBins(numBins, _singles, input.Length - input.GetValues().Length); 818var inputValues = input.GetValues(); 844var inputValues = input.GetValues(); 893var inputValues = input.GetValues();
PermutationFeatureImportance.cs (1)
103var values = weights.GetValues().ToArray();
RandomFourierFeaturizing.cs (2)
568featuresAligned.CopyFrom(src.GetValues()); 576var srcValues = src.GetValues();
SvmLight\SvmLightLoader.cs (4)
306var inputValues = input.FeatureKeys.GetValues(); 371var keysValues = keys.GetValues(); 372var valuesValues = values.GetValues(); 691var values = result.GetValues();
Text\LdaTransform.cs (3)
425var inputValues = input.GetValues(); 483var srcValues = src.GetValues(); 883var srcValues = src.GetValues();
Text\NgramUtils.cs (1)
75var srcValues = src.GetValues();
Text\StopWordsRemovingTransformer.cs (2)
425var srcValues = src.GetValues(); 1113var srcValues = src.GetValues();
Text\TextNormalizing.cs (1)
371var srcValues = src.GetValues();
Text\TokenizingByCharacters.cs (2)
519var srcValues = src.GetValues(); 558var srcValues = src.GetValues();
Text\WordEmbeddingsExtractor.cs (1)
578var srcValues = src.GetValues();
Text\WordTokenizing.cs (1)
292var srcValues = src.GetValues();
UngroupTransform.cs (1)
653var rowValues = row.GetValues();
Microsoft.ML.Vision (1)
ImageClassificationTrainer.cs (1)
776fixed (byte* src = buffer.GetValues())