hex.pca
Class PCAModel

java.lang.Object
  extended by water.Iced
      extended by water.Model
          extended by hex.pca.PCAModel
All Implemented Interfaces:
java.lang.Cloneable, Freezable

public class PCAModel
extends Model


Nested Class Summary
 
Nested classes/interfaces inherited from class water.Model
Model.SB
 
Field Summary
static DocGen.FieldDoc[] DOC_FIELDS
           
 
Fields inherited from class water.Model
_dataKey, _domains, _names, _selfKey
 
Constructor Summary
PCAModel(Key selfKey, Key dataKey, Frame fr, Gram.GramTask gramt, double[] sdev, double[] propVar, double[] cumVar, double[][] eigVec, int rank, int num_pc, PCAParams params)
           
 
Method Summary
 void delete()
          Called when deleting this model, to cleanup any internal keys
 double[][] eigVec()
           
 void generateHTML(java.lang.String title, java.lang.StringBuilder sb)
           
 java.lang.String[] namesExp()
           
protected  float[] score0(double[] data, float[] preds)
          Subclasses implement the scoring logic.
 void screevarString(java.lang.StringBuilder sb)
           
 double[] sdev()
           
 java.lang.String toString()
           
 
Methods inherited from class water.Model
adapt, adapt, classNames, cm, getDomainMapping, isClassifier, nclasses, responseName, score, score, score, score, score, score0, testJavaScoring, toJava, toJavaInit, toJavaInit, toJavaPredictBody, varimp
 
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, wait, wait, wait
 

Field Detail

DOC_FIELDS

public static DocGen.FieldDoc[] DOC_FIELDS
Constructor Detail

PCAModel

public PCAModel(Key selfKey,
                Key dataKey,
                Frame fr,
                Gram.GramTask gramt,
                double[] sdev,
                double[] propVar,
                double[] cumVar,
                double[][] eigVec,
                int rank,
                int num_pc,
                PCAParams params)
Method Detail

sdev

public double[] sdev()

eigVec

public double[][] eigVec()

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

delete

public void delete()
Description copied from class: Model
Called when deleting this model, to cleanup any internal keys

Overrides:
delete in class Model

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

namesExp

public java.lang.String[] namesExp()

generateHTML

public void generateHTML(java.lang.String title,
                         java.lang.StringBuilder sb)

screevarString

public void screevarString(java.lang.StringBuilder sb)