Modifier and Type | Class and Description |
---|---|
static class |
GLMModel.GLMValidationTask<T extends GLMModel.GLMValidationTask<T>> |
static class |
GLMModel.GLMXValidationTask |
Model.ModelCategory
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
coefficients_names |
static DocGen.FieldDoc[] |
DOC_FIELDS |
_dataKey, _domains, _modelClassDist, _names, _priorClassDist, training_duration_in_ms, training_start_time
Constructor and Description |
---|
GLMModel(GLM2 job,
Key selfKey,
FrameTask.DataInfo dinfo,
GLMParams glm,
double beta_eps,
double alpha,
double lambda_max,
double[] lambda,
double ymu,
double prior) |
Modifier and Type | Method and Description |
---|---|
double |
aic() |
double |
auc() |
double[] |
beta() |
GLMModel |
clone() |
java.util.HashMap<java.lang.String,java.lang.Double> |
coefficients()
get beta coefficients in a map indexed by name
|
int |
compareTo(GLMModel m) |
double |
devExplained() |
GLM2 |
get_params() |
GLMParams |
getParams() |
int |
iteration() |
Request2 |
job() |
double |
lambda() |
double |
lambdaMax() |
double |
lambdaMin() |
int |
ncoefs() |
double[] |
norm_beta(int lambdaIdx) |
int |
rank() |
int |
rank(int lambdaIdx) |
protected float[] |
score0(double[] data,
float[] preds)
Subclasses implement the scoring logic.
|
boolean |
setAndTestValidation(int lambdaIdx,
GLMValidation val) |
void |
setLambdaIdx(int l) |
void |
setLambdaSubmodel(int lambdaIdx,
double[] beta,
double[] norm_beta,
int iteration,
boolean sparseCoef) |
java.lang.String |
toString() |
GLMValidation |
validation() |
adapt, calcError, classNames, cm, delete_impl, errStr, getDomainMapping, getDomainMapping, getModelCategory, getUniqueId, isClassifier, missingColumnsType, mse, nclasses, nfeatures, responseName, score, score, score, score, score, score, score0, setModelClassDistribution, start_training, start_training, stop_training, testJavaScoring, toJava, toJava, toJavaDefaultMaxIters, toJavaInit, toJavaInit, toJavaPredictBody, toJavaSuper, varimp
delete_and_lock, delete, delete, delete, delete, is_unlocked, is_wlocked, read_lock, read_lock, unlock_all, unlock, update, write_lock
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public static DocGen.FieldDoc[] DOC_FIELDS
@Request.API(help="column names including expanded categorical values") public java.lang.String[] coefficients_names
public GLMModel(GLM2 job, Key selfKey, FrameTask.DataInfo dinfo, GLMParams glm, double beta_eps, double alpha, double lambda_max, double[] lambda, double ymu, double prior)
public final GLM2 get_params()
get_params
in class Model
public double auc()
public double aic()
public double devExplained()
public int compareTo(GLMModel m)
compareTo
in interface java.lang.Comparable<GLMModel>
public void setLambdaSubmodel(int lambdaIdx, double[] beta, double[] norm_beta, int iteration, boolean sparseCoef)
public double lambda()
public double lambdaMax()
public double lambdaMin()
public GLMValidation validation()
public int iteration()
public double[] beta()
public double[] norm_beta(int lambdaIdx)
protected float[] score0(double[] data, float[] preds)
Model
public final int ncoefs()
public GLMParams getParams()
public java.lang.String toString()
toString
in class java.lang.Object
public int rank()
public int rank(int lambdaIdx)
public boolean setAndTestValidation(int lambdaIdx, GLMValidation val)
public void setLambdaIdx(int l)
public java.util.HashMap<java.lang.String,java.lang.Double> coefficients()