6 references to InputRow
Microsoft.ML.Tests (6)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (6)
725
public class CustomMappings : CustomMappingFactory<
InputRow
, OutputRow>
728
public static void IncomeMapping(
InputRow
input, OutputRow output) => output.Label = input.Income > 50000;
731
public override Action<
InputRow
, OutputRow> GetMapping()
741
var estimator = mlContext.Transforms.CustomMapping<
InputRow
, OutputRow>(CustomMappings.IncomeMapping, nameof(CustomMappings.IncomeMapping))
768
Action<
InputRow
, OutputRow> mapping = (input, output) => output.Label = input.Income > 50000;
777
Action<
InputRow
, OutputRow> mapping = (input, output) => output.Label = input.Income > 50000;