public class DeeplearningMojoModel extends MojoModel
Modifier and Type | Class and Description |
---|---|
static class |
DeeplearningMojoModel.StoreWeightsBias |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
_activation |
double[] |
_all_drop_out_ratios |
java.lang.String[] |
_allActivations |
int[] |
_catNAFill |
int[] |
_catoffsets |
int |
_cats |
DistributionFamily |
_family |
protected java.lang.String |
_genmodel_encoding |
boolean |
_imputeMeans |
int |
_mini_batch_size |
double[] |
_normmul |
double[] |
_normrespmul |
double[] |
_normrespsub |
double[] |
_normsub |
int |
_numLayers |
int |
_nums |
protected java.lang.String[][] |
_orig_domain_values |
protected java.lang.String[] |
_orig_names |
protected double[] |
_orig_projection_array |
int[] |
_units |
boolean |
_use_all_factor_levels |
DeeplearningMojoModel.StoreWeightsBias[] |
_weightsAndBias |
_algoName, _balanceClasses, _category, _defaultThreshold, _h2oVersion, _modelAttributes, _modelClassDistrib, _modelDescriptor, _mojo_version, _nclasses, _nfeatures, _priorClassDistrib, _reproducibilityInformation, _supervised, _uuid
_domains, _foldColumn, _names, _offsetColumn, _responseColumn, _treatmentColumn
Modifier and Type | Method and Description |
---|---|
double |
calculateReconstructionErrorPerRowData(double[] original,
double[] reconstructed)
Calculates average reconstruction error (MSE).
|
CategoricalEncoding |
getCategoricalEncoding()
Return type of encoding expected by the model implementation.
|
java.lang.String[][] |
getOrigDomainValues()
Returns original domain values for all columns including response column.
|
java.lang.String[] |
getOrigNames()
The original names of all columns used, including response and offset columns.
|
double[] |
getOrigProjectionArray()
Returns original Eigen encoder projections array for all columns.
|
int |
getPredsSize(ModelCategory mc) |
void |
init() |
double[] |
modifyOutputs(double[] out,
double[] preds,
double[] dataRow) |
double[] |
score0(double[] row,
double[] preds)
Subclasses implement the scoring logic.
|
double[] |
score0(double[] dataRow,
double offset,
double[] preds)
This method will be derived from the scoring/prediction function of deeplearning model itself.
|
getModelCategory, getUUID, isSupervised, load, load, load, nclasses, nfeatures
bitSetContains, bitSetIsInRange, calibrateClassProbabilities, convertDouble2Float, correctProbabilities, createAuxKey, features, GBM_rescale, getColIdx, getDomainValues, getDomainValues, getDomainValues, getHeader, getModelCategories, getNames, getNumClasses, getNumCols, getNumResponseClasses, getOffsetName, getOrigNumCols, getOutputDomains, getOutputNames, getPrediction, getPredictionBinomial, getPredictionMultinomial, getPredsSize, getResponseIdx, getResponseName, GLM_identityInv, GLM_inverseInv, GLM_logInv, GLM_logitInv, GLM_ologitInv, GLM_tweedieInv, img2pixels, internal_threadSafeInstance, isAutoEncoder, isClassifier, KMeans_closest, KMeans_distance, KMeans_distance, KMeans_distances, Kmeans_preprocessData, Kmeans_preprocessData, KMeans_simplex, log_rescale, mapEnum, nCatFeatures, requiresOffset, setCats, setCats, setInput, setInput
public int _mini_batch_size
public int _nums
public int _cats
public int[] _catoffsets
public double[] _normmul
public double[] _normsub
public double[] _normrespmul
public double[] _normrespsub
public boolean _use_all_factor_levels
public java.lang.String _activation
public java.lang.String[] _allActivations
public boolean _imputeMeans
public int[] _units
public double[] _all_drop_out_ratios
public DeeplearningMojoModel.StoreWeightsBias[] _weightsAndBias
public int[] _catNAFill
public int _numLayers
public DistributionFamily _family
protected java.lang.String _genmodel_encoding
protected java.lang.String[] _orig_names
protected java.lang.String[][] _orig_domain_values
protected double[] _orig_projection_array
public void init()
public final double[] score0(double[] dataRow, double offset, double[] preds)
public double[] modifyOutputs(double[] out, double[] preds, double[] dataRow)
public double[] score0(double[] row, double[] preds)
GenModel
public int getPredsSize(ModelCategory mc)
getPredsSize
in class GenModel
public double calculateReconstructionErrorPerRowData(double[] original, double[] reconstructed)
public CategoricalEncoding getCategoricalEncoding()
GenModel
getCategoricalEncoding
in interface IGeneratedModel
getCategoricalEncoding
in class GenModel
public java.lang.String[] getOrigNames()
GenModel
getOrigNames
in interface IGeneratedModel
getOrigNames
in class GenModel
public double[] getOrigProjectionArray()
GenModel
getOrigProjectionArray
in interface IGeneratedModel
getOrigProjectionArray
in class GenModel
public java.lang.String[][] getOrigDomainValues()
IGeneratedModel
getOrigDomainValues
in interface IGeneratedModel
getOrigDomainValues
in class GenModel