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