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