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

hex.schemas.ExampleModelV3 Maven / Gradle / Ivy

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

import hex.example.ExampleModel;
import water.api.API;
import water.api.ModelOutputSchema;
import water.api.ModelSchema;

public class ExampleModelV3 extends ModelSchema {

  public static final class ExampleModelOutputV3 extends ModelOutputSchema {
    // Output fields
    @API(help="Iterations executed") public int iterations;
    @API(help="") public double[] maxs;
  } // ExampleModelOutputV2


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

  // TOOD: I think we can implement the following two in ModelSchema, using reflection on the type parameters.
  public ExampleV3.ExampleParametersV3 createParametersSchema() { return new ExampleV3.ExampleParametersV3(); }
  public ExampleModelOutputV3 createOutputSchema() { return new ExampleModelOutputV3(); }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy