Skip to content

Commit 4f15594

Browse files
committed
Tiny fix
1 parent 70dd519 commit 4f15594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.SamplesUtils/SamplesDatasetUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static IEnumerable<BinaryLabelFloatFeatureVectorSample> GenerateBinaryLa
257257
// Initialize an example with a random label and an empty feature vector.
258258
var sample = new BinaryLabelFloatFeatureVectorSample() { Label = rnd.Next() % 2 == 0, Features = new float[_simpleBinaryClassSampleFeatureLength] };
259259
// Fill feature vector according the assigned label.
260-
for (int j = 0; j < 10; ++j)
260+
for (int j = 0; j < _simpleBinaryClassSampleFeatureLength; ++j)
261261
{
262262
var value = (float)rnd.NextDouble();
263263
// Positive class gets larger feature value.

0 commit comments

Comments
 (0)