hex
Class NewRowVecTask.DataFrame

java.lang.Object
  extended by water.Iced
      extended by hex.NewRowVecTask.DataFrame
All Implemented Interfaces:
java.lang.Cloneable, Freezable
Enclosing class:
NewRowVecTask<T extends Iced>

public static final class NewRowVecTask.DataFrame
extends Iced

Struct to keep info about our data. Contains column ids and info about data preprocessing and expansion of vategoricals. The last element is ALWAYS treated as response variable and is never normalized nor expanded (if categorical).


Field Summary
 boolean _standardized
           
 
Constructor Summary
NewRowVecTask.DataFrame(ValueArray ary, int[] colIds, RowVecTask.Sampling s, boolean standardize, boolean expandCat)
           
 
Method Summary
 int[] betaColMap()
           
 int compactSz()
           
 double[] denormalizeBeta(double[] beta)
           
 int dense()
           
 int expandedSz()
           
 RowVecTask.Sampling getSampling()
           
 RowVecTask.Sampling getSamplingComplement()
           
 int largestCatSz()
           
static NewRowVecTask.DataFrame makePCAData(ValueArray ary, int[] colIds, boolean standardize)
           
 Frame modelAsFrame()
           
 
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

_standardized

public final boolean _standardized
Constructor Detail

NewRowVecTask.DataFrame

public NewRowVecTask.DataFrame(ValueArray ary,
                               int[] colIds,
                               RowVecTask.Sampling s,
                               boolean standardize,
                               boolean expandCat)
Method Detail

makePCAData

public static NewRowVecTask.DataFrame makePCAData(ValueArray ary,
                                                  int[] colIds,
                                                  boolean standardize)

largestCatSz

public int largestCatSz()

getSampling

public RowVecTask.Sampling getSampling()

getSamplingComplement

public RowVecTask.Sampling getSamplingComplement()

expandedSz

public int expandedSz()

compactSz

public int compactSz()

dense

public int dense()

betaColMap

public int[] betaColMap()

denormalizeBeta

public double[] denormalizeBeta(double[] beta)

modelAsFrame

public Frame modelAsFrame()