We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70dd519 commit 4f15594Copy full SHA for 4f15594
src/Microsoft.ML.SamplesUtils/SamplesDatasetUtils.cs
@@ -257,7 +257,7 @@ public static IEnumerable<BinaryLabelFloatFeatureVectorSample> GenerateBinaryLa
257
// Initialize an example with a random label and an empty feature vector.
258
var sample = new BinaryLabelFloatFeatureVectorSample() { Label = rnd.Next() % 2 == 0, Features = new float[_simpleBinaryClassSampleFeatureLength] };
259
// Fill feature vector according the assigned label.
260
- for (int j = 0; j < 10; ++j)
+ for (int j = 0; j < _simpleBinaryClassSampleFeatureLength; ++j)
261
{
262
var value = (float)rnd.NextDouble();
263
// Positive class gets larger feature value.
0 commit comments