5 references to Float1
Microsoft.ML.Tests (5)
Transformers\CustomMappingTests.cs (5)
40
output.Together = $"{input.
Float1
} + {string.Join(", ", input.Float4)}";
82
Assert.True(inputs.Zip(outputs, (x, y) => y.Together == $"{x.
Float1
} + {string.Join(", ", x.Float4)}").All(x => x));
100
Action<MyInput, MyOutput> mapping = (input, output) => output.Together = input.
Float1
.ToString();
201
var filteredData = ML.Data.FilterByCustomPredicate<MyInput>(data, input => input.
Float1
% 2 == 0);
202
Assert.True(filteredData.GetColumn<float>(filteredData.Schema[nameof(MyInput.
Float1
)]).All(x => x % 2 == 1));