89 references to DenseValues
DnnAnalyzer (1)
DnnAnalyzer.cs (1)
50string[] inputOpsResult = inputOps.DenseValues()
Microsoft.ML.AutoML (1)
AutoMLExperiment\ITrialResultManager.cs (1)
173var feature = parameter.DenseValues().ToArray();
Microsoft.ML.Core.Tests (8)
UnitTests\ScoreSchemaTest.cs (2)
77Assert.Equal(keyNames.DenseValues(), actualKeyNames.DenseValues());
UnitTests\TestEntryPoints.cs (1)
6886var ndcgArray = ndcgBuffer.DenseValues().ToArray();
UnitTests\TestVBuffer.cs (5)
143float[] aDense = a.DenseValues().ToArray(); 166float[] aDense = a.DenseValues().ToArray(); 183float[] aDense = a.DenseValues().ToArray(); 202float[] aDense = a.DenseValues().ToArray(); 226float[] aDense = a.DenseValues().ToArray();
Microsoft.ML.Data (23)
EntryPoints\PredictorModelImpl.cs (1)
132return keyValues.DenseValues().Select(v => v.ToString()).ToArray();
Evaluators\Metrics\MulticlassClassificationMetrics.cs (2)
128TopKAccuracyForAllK = RowCursorUtils.Fetch<VBuffer<double>>(host, overallResult, MulticlassClassificationEvaluator.AllTopKAccuracy).DenseValues().ToImmutableArray(); 131PerClassLogLoss = perClassLogLoss.DenseValues().ToImmutableArray();
Evaluators\Metrics\RankingMetrics.cs (2)
63DiscountedCumulativeGains = Fetch(RankingEvaluator.Dcg).DenseValues().ToImmutableArray(); 64NormalizedDiscountedCumulativeGains = Fetch(RankingEvaluator.Ndcg).DenseValues().ToImmutableArray();
Transforms\Hashing.cs (17)
555foreach (var value in values.DenseValues()) 589foreach (var value in values.DenseValues()) 624foreach (var value in values.DenseValues()) 648foreach (var value in values.DenseValues()) 672foreach (var value in values.DenseValues()) 696foreach (var value in values.DenseValues()) 728foreach (var value in values.DenseValues()) 762foreach (var value in values.DenseValues()) 782foreach (var value in values.DenseValues()) 802foreach (var value in values.DenseValues()) 826foreach (var value in values.DenseValues()) 860foreach (var value in values.DenseValues()) 897foreach (var value in values.DenseValues()) 917foreach (var value in values.DenseValues()) 937foreach (var value in values.DenseValues()) 957foreach (var value in values.DenseValues()) 981foreach (var value in values.DenseValues())
Transforms\ValueToKeyMappingTransformer.cs (1)
773var termValues = terms.DenseValues();
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
684return v1.DenseValues().Zip(v2.DenseValues(), (x1, x2) => x1.Equals(x2)).All(b => b);
Microsoft.ML.EntryPoints (1)
PermutationFeatureImportance.cs (1)
311var slotValues = slots.DenseValues();
Microsoft.ML.FastTree (2)
FastTree.cs (1)
1722foreach (ulong groupId in groupIds.DenseValues())
GamModelParameters.cs (1)
424foreach (var featureValue in features.DenseValues())
Microsoft.ML.IntegrationTests (4)
Training.cs (4)
296Common.AssertEqual(firstModelWeights[i].DenseValues().ToArray(), firstModelWeightsPrime[i].DenseValues().ToArray()); 300Common.AssertNotEqual(firstModelWeights[i].DenseValues().ToArray(), secondModelWeights[i].DenseValues().ToArray());
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
326tensorC.AddRange(centriod.DenseValues());
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
226IEnumerable<string> slotNamesAsStrings = slotNames.DenseValues().Select(name => name.ToString());
Microsoft.ML.OnnxTransformerTest (2)
DnnImageFeaturizerTest.cs (1)
172var values = softMaxValue.DenseValues();
OnnxTransformTests.cs (1)
217var values = softMaxValue.DenseValues();
Microsoft.ML.Samples (11)
Dynamic\DataOperations\LoadingSvmLight.cs (1)
107Console.WriteLine($"{label} {weight} {string.Join(' ', features.DenseValues())}");
Dynamic\SimpleDataViewImplementation.cs (1)
65$"{string.Join(", ", tokensValue.DenseValues())}");
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
138keys.DenseValues().ToArray());
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
53var originalLabels = keys.DenseValues().ToArray();
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
54var weightsValues = weights.DenseValues().ToArray();
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
63var weightsValues = weights.DenseValues().ToArray();
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (2)
78features.DenseValues().Take(5)) + "...", 80string.Join(",", pixels.DenseValues().Take(5)) + "...");
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (1)
113string.Join(",", pixels.DenseValues().Take(5)) + "...");
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
43Console.WriteLine(string.Join(" ", row.DenseValues().Select(x =>
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
42Console.WriteLine(string.Join(" ", row.DenseValues().Select(x =>
Microsoft.ML.Samples.GPU (1)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
138keys.DenseValues().ToArray());
Microsoft.ML.StandardTrainers (4)
Standard\LinearModelParameters.cs (2)
150node.AddAttribute("coefficients", Weight.DenseValues()); 251predictor["coeff"] = new JArray(Weight.DenseValues());
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
956predictor["coeff"] = new JArray(Weights.Select(w => new JArray(w.DenseValues()))); 994node.AddAttribute("coefficients", Weights.SelectMany(w => w.DenseValues()));
Microsoft.ML.TensorFlow.Tests (2)
TensorflowTests.cs (2)
1047Assert.Equal(buffer.DenseValues().ToArray(), 1048buffer2.DenseValues().ToArray());
Microsoft.ML.Tests (19)
FeatureContributionTests.cs (1)
288foreach (var vbValue in vb.DenseValues())
OnnxConversionTest.cs (2)
1526var mlNetSlotNames = mlNetSlots.DenseValues().ToList(); 1527var onnxSlotNames = onnxSlots.DenseValues().ToList();
PermutationFeatureImportanceTests.cs (1)
912foreach (var vbValue in vb.DenseValues())
Scenarios\Api\TestApi.cs (1)
252Assert.True(retrievedReadOnlyMemoryVBuffer.DenseValues().Select((s, i) => s.ToString() == valueStringArray[i]).All(b => b));
TextLoaderTests.cs (4)
1570var testSingFt1Arr = testSingFt1.DenseValues().ToArray(); 1571var testSingFt2Arr = testSingFt2.DenseValues().ToArray(); 1579var testDoubFt1Arr = testDoubFt1.DenseValues().ToArray(); 1580var testDoubFt2Arr = testDoubFt2.DenseValues().ToArray();
Transformers\HashTests.cs (3)
176Assert.All(vecResult.DenseValues(), v => Assert.Equal(expected, v)); 186Assert.All(vecResult.DenseValues(), v => Assert.True((v == 0) == (expectedOrdered == 0))); 400return buffer.DenseValues().First();
Transformers\TextFeaturizerTests.cs (2)
124transformed[i] = features.DenseValues().ToArray(); 166transformed[i] = features.DenseValues().ToArray();
Transformers\ValueMappingTests.cs (1)
580var allowedKeyPool = new HashSet<ReadOnlyMemory<char>>(allowedKeys.DenseValues());
Transformers\WordBagTransformerTests.cs (4)
48Assert.Equal(expected, ((VBuffer<float>)pred.ColumnView[4].Values[0]).DenseValues().ToArray()); 76Assert.Equal(expected, ((VBuffer<float>)pred.ColumnView[4].Values[0]).DenseValues().ToArray()); 116Assert.Equal(((VBuffer<float>)predDefault.ColumnView[4].Values[0]).DenseValues().ToArray(), ((VBuffer<float>)predNonDefault.ColumnView[4].Values[0]).DenseValues().ToArray());
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
89foreach (var label in labelRow.DenseValues())
AutoFormerV2\ObjectDetectionTrainer.cs (1)
252label.DenseValues().ToList().ForEach(x => uniqueLabels.Add(x));
NasBert\NerTrainer.cs (1)
129var tl = target.DenseValues().Select(item => (long)item).ToList();
Microsoft.ML.Transforms (3)
Dracula\CountTableTransformer.cs (1)
317return keyNames.DenseValues().Select(name => name.ToString()).ToArray();
KeyToVectorMapping.cs (1)
403foreach (uint value in src.DenseValues())
PermutationFeatureImportanceExtensions.cs (1)
706var featureColumnNames = nameBuffer.DenseValues().ToList();