org.apache.ignite.ml.h2o

## Class H2OMojoModel

- java.lang.Object
- - org.apache.ignite.ml.h2o.H2OMojoModel

- All Implemented Interfaces:
    AutoCloseable, Model<NamedVector,Double>

      public class H2OMojoModel
      extends Object
      implements Model<NamedVector,Double>

  H2O MOJO Model imported and wrapped to be compatible with Apache Ignite infrastructure.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `H2OMojoModel(hex.genmodel.easy.EasyPredictModelWrapper easyPredict)` Constructs a new instance of H2O MOJO model wrapper.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `Double` | `predict(NamedVector input)` Make a prediction for the specified input arguments.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### H2OMojoModel

          public H2OMojoModel(hex.genmodel.easy.EasyPredictModelWrapper easyPredict)

      Constructs a new instance of H2O MOJO model wrapper.
      Parameters:
        `easyPredict` - H2O MOJO Model

  - ### Method Detail

    - #### predict

          public Double predict(NamedVector input)

      Make a prediction for the specified input arguments.
      Specified by:
        `predict` in interface `Model<NamedVector,Double>`
      Parameters:
        `input` - Input arguments.
      Returns:
        Prediction result.

    - #### close

          public void close()

      Specified by:
        `close` in interface `AutoCloseable`
      Specified by:
        `close` in interface `Model<NamedVector,Double>`

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.0
Release Date | : October 15 2020