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

hex.schemas.ExampleV2 Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package hex.schemas;

import hex.example.Example;
import hex.example.ExampleModel;
import water.api.API;
import water.api.ModelParametersSchema;
import water.fvec.Frame;

public class ExampleV2 extends ModelBuilderSchema {

  public static final class ExampleParametersV2 extends ModelParametersSchema {
    public String[] fields() { return new String[] {"training_frame","ignored_columns","max_iters"}; }

    // Input fields
    @API(help="Maximum training iterations.")  public int max_iters;
  } // ExampleParametersV2


  //==========================
  // Custom adapters go here

  // Return a URL to invoke Example on this Frame
  @Override protected String acceptsFrame( Frame fr ) { return "/v2/Example?training_frame="+fr._key; }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy