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

water.api.ModelBuilderV3 Maven / Gradle / Ivy

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

import hex.ModelBuilder;
import hex.schemas.ModelBuilderSchema;

/**
 * Job which includes the standard validation error fields, to allow us to capture
 * validation and other errors after the job building task has been forked.  Some of
 * these will come from init(true); others may after the model build really begins.
 * @see H2OModelBuilderErrorV3
 */
public class ModelBuilderV3> extends Schema {
  @API(help="Model builder parameters.", direction = API.Direction.OUTPUT)
  public ModelParametersSchema parameters;
  
  @API(help="Info, warning and error messages; NOTE: can be appended to while the Job is running", direction=API.Direction.OUTPUT)
  public ValidationMessageBase messages[];

  @API(help="Count of error messages", direction=API.Direction.OUTPUT)
  public int error_count;

  @Override
  public S fillFromImpl(J builder) {
    super.fillFromImpl(builder);

    ModelBuilder.ValidationMessage[] vms = builder._messages;
    this.messages = new ValidationMessageBase[vms.length];
    for( int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy