hex
Class NeuralNet.NeuralNetModel

java.lang.Object
  extended by water.Iced
      extended by water.Model
          extended by hex.NeuralNet.NeuralNetModel
All Implemented Interfaces:
java.lang.Cloneable, Freezable
Enclosing class:
NeuralNet

public static class NeuralNet.NeuralNetModel
extends Model


Nested Class Summary
 
Nested classes/interfaces inherited from class water.Model
Model.SB
 
Field Summary
 float[][] bs
           
 long[][] confusion_matrix
           
 long items
           
 Layer[] layers
           
 double train_classification_error
           
 double train_sqr_error
           
 double validation_classification_error
           
 double validation_sqr_error
           
 float[][] ws
           
 
Fields inherited from class water.Model
_dataKey, _domains, _names, _selfKey, DOC_FIELDS
 
Method Summary
 ConfusionMatrix cm()
          For classifiers, confusion matrix on validation set.
protected  float[] score0(Chunk[] chunks, int rowInChunk, double[] tmp, float[] preds)
          Bulk scoring API for one row.
protected  float[] score0(double[] data, float[] preds)
          Subclasses implement the scoring logic.
 
Methods inherited from class water.Model
adapt, classNames, delete, getDomainMapping, isClassifier, nclasses, responseName, score, score, score, score, score, testJavaScoring, toJava, toJavaInit, toJavaInit, toJavaPredictBody
 
Methods inherited from class water.Iced
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layers

public Layer[] layers

ws

public float[][] ws

bs

public float[][] bs

items

public long items

train_classification_error

public double train_classification_error

train_sqr_error

public double train_sqr_error

validation_classification_error

public double validation_classification_error

validation_sqr_error

public double validation_sqr_error

confusion_matrix

public long[][] confusion_matrix
Method Detail

score0

protected float[] score0(Chunk[] chunks,
                         int rowInChunk,
                         double[] tmp,
                         float[] preds)
Description copied from class: Model
Bulk scoring API for one row. Chunks are all compatible with the model, and expect the last Chunks are for the final distribution & prediction. Default method is to just load the data into the tmp array, then call subclass scoring logic.

Overrides:
score0 in class Model

score0

protected float[] score0(double[] data,
                         float[] preds)
Description copied from class: Model
Subclasses implement the scoring logic. The data is pre-loaded into a re-used temp array, in the order the model expects. The predictions are loaded into the re-used temp array, which is also returned.

Specified by:
score0 in class Model

cm

public ConfusionMatrix cm()
Description copied from class: Model
For classifiers, confusion matrix on validation set.

Overrides:
cm in class Model