hex
Class NeuralNet.NeuralNetModel
java.lang.Object
water.Iced
water.Model
hex.NeuralNet.NeuralNetModel
- All Implemented Interfaces:
- java.lang.Cloneable, Freezable
- Enclosing class:
- NeuralNet
public static class NeuralNet.NeuralNetModel
- extends Model
Nested classes/interfaces inherited from class water.Model |
Model.SB |
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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