1 write to Features
Microsoft.ML.IntegrationTests (1)
SchemaDefinitionTests.cs (1)
81
dst.
Features
= new float[src.Features.Length * 2];
10 references to Features
Microsoft.ML.IntegrationTests (10)
SchemaDefinitionTests.cs (10)
53
Assert.Equal((engine1.OutputSchema["Features"].Type as VectorDataViewType).Size, prediction.
Features
.Length);
54
Assert.True(prediction.
Features
.All(x => x == 0));
56
Assert.Equal((engine2.OutputSchema["Features"].Type as VectorDataViewType).Size, prediction.
Features
.Length);
57
Assert.True(prediction.
Features
.Select((x, i) => i == 3 && x == 1 || x == 0).All(b => b));
81
dst.Features = new float[src.
Features
.Length * 2];
82
for (int i = 0; i < src.
Features
.Length; i++)
84
dst.
Features
[2 * i] = src.
Features
[i];
85
dst.
Features
[2 * i + 1] = (float)Math.Log(src.
Features
[i]);