public interface IGeneratedModel
Modifier and Type | Method and Description |
---|---|
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.
|
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()
@Deprecated java.lang.String getResponseName()
int getResponseIdx()
int getNumClasses(int i)
int getNumResponseClasses()
java.lang.UnsupportedOperationException
- if called on a non-classifier model.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()
int getColIdx(java.lang.String name)
int mapEnum(int colIdx, java.lang.String categoricalValue)
int getPredsSize()