All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.h2o.automl.preprocessing.PreprocessingStepDefinition Maven / Gradle / Ivy

The newest version!
package ai.h2o.automl.preprocessing;

import ai.h2o.automl.AutoML;
import water.Iced;

public class PreprocessingStepDefinition extends Iced {
    
    public enum Type {
        TargetEncoding
    }

    Type _type;

    public PreprocessingStepDefinition() { /* for reflection */ }

    public PreprocessingStepDefinition(Type type) { 
        _type = type;
    }

    public PreprocessingStep newPreprocessingStep(AutoML aml) {
        switch (_type) {
            case TargetEncoding:
                return new TargetEncoding(aml);
            default:
                throw new IllegalStateException();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy