Esempio n. 1
0
        public override IEstimator <ITransformer> BuildFromOption(MLContext context, ConvertTypeOption param)
        {
            var inputOutputPairs = AutoMlUtils.CreateInputOutputColumnPairsFromStrings(param.InputColumnNames, param.OutputColumnNames);

            return(context.Transforms.Conversion.ConvertType(inputOutputPairs));
        }
        public override IEstimator <ITransformer> BuildFromOption(MLContext context, ReplaceMissingValueOption param)
        {
            var inputOutputPairs = AutoMlUtils.CreateInputOutputColumnPairsFromStrings(param.InputColumnNames, param.OutputColumnNames);

            return(context.Transforms.ReplaceMissingValues(inputOutputPairs));
        }
Esempio n. 3
0
        public override IEstimator <ITransformer> BuildFromOption(MLContext context, OneHotOption param)
        {
            var inputOutputPairs = AutoMlUtils.CreateInputOutputColumnPairsFromStrings(param.InputColumnNames, param.OutputColumnNames);

            return(context.Transforms.Categorical.OneHotEncoding(inputOutputPairs));
        }