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

water.automl.api.AutoMLBuilderHandler Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package water.automl.api;

import ai.h2o.automl.AutoML;
import ai.h2o.automl.AutoMLBuildSpec;
import water.api.Handler;
import water.api.schemas3.JobV3;
import water.automl.api.schemas3.AutoMLBuildSpecV99;


public class AutoMLBuilderHandler extends Handler {

  @SuppressWarnings("unused") // called through reflection by RequestServer
  public AutoMLBuildSpecV99 build(int version, AutoMLBuildSpecV99 schema) {
    AutoMLBuildSpec buildSpec = schema.createAndFillImpl();
    AutoML aml = AutoML.startAutoML(buildSpec);
    // update schema with changes during validation
    schema.fillFromImpl(buildSpec);
    schema.job = new JobV3().fillFromImpl(aml.job());
    return schema;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy