public interface IGeneratedModel
Modifier and Type | Method and Description |
---|---|
CategoricalEncoding |
getCategoricalEncoding() |
int |
getColIdx(java.lang.String name)
Returns index of column with give name or -1 if column is not found.
|
java.lang.String[][] |
getDomainValues()
Returns domain values for all columns including response column.
|
java.lang.String[] |
getDomainValues(int i)
Returns domain values for i-th column.
|
java.lang.String[] |
getDomainValues(java.lang.String name)
Gets domain of given column.
|
java.lang.String[] |
getNames()
The names of columns used in the model.
|
int |
getNumClasses(int i)
Get number of classes in in given column.
|
int |
getNumCols()
Returns number of columns used as input for training (i.e., exclude response and offset columns).
|
int |
getNumResponseClasses()
Return a number of classes in response column.
|
java.lang.String |
getOffsetName()
The name of the offset column.
|
java.lang.String[][] |
getOrigDomainValues()
Returns original domain values for all columns including response column.
|
java.lang.String[] |
getOrigNames()
The original names of columns used in the model.
|
double[] |
getOrigProjectionArray()
Returns original Eigen encoder projections array for all columns.
|
int |
getPredsSize()
Returns the expected size of preds array which is passed to `predict(double[], float[])` function.
|
int |
getResponseIdx()
Returns an index of the response column inside getDomains().
|
java.lang.String |
getResponseName()
Deprecated.
|
java.lang.String |
getUUID()
Returns model's unique identifier.
|
boolean |
isAutoEncoder() |
boolean |
isClassifier() |
int |
mapEnum(int colIdx,
java.lang.String categoricalValue)
Maps given column's categorical to integer used by this model.
|
java.lang.String getUUID()
int getNumCols()
java.lang.String[] getNames()
java.lang.String[] getOrigNames()
@Deprecated java.lang.String getResponseName()
java.lang.String getOffsetName()
int getResponseIdx()
int getNumClasses(int i)
int getNumResponseClasses()
java.lang.UnsupportedOperationException
- if called on a non-classifier model.CategoricalEncoding getCategoricalEncoding()
boolean isClassifier()
boolean isAutoEncoder()
java.lang.String[] getDomainValues(java.lang.String name)
name
- column namejava.lang.String[] getDomainValues(int i)
i
- index of columnjava.lang.String[][] getDomainValues()
java.lang.String[][] getOrigDomainValues()
double[] getOrigProjectionArray()
int getColIdx(java.lang.String name)
int mapEnum(int colIdx, java.lang.String categoricalValue)
int getPredsSize()