hanaml.LogisticRegression {hana.ml.r} | R Documentation |
hanaml.LogisticRegression is a R wrapper for PAL Logistic Regression.
hanaml.LogisticRegression (conn.context, data = NULL, formula = NULL, features = NULL, label = NULL, key = NULL, enet.alpha = NULL, enet.lambda = NULL, tol = NULL, epsilon = NULL, solver = NULL, max.iter = NULL, thread.ratio = NULL, standardize = NULL, max.pass.number = NULL, lbfgs.m = NULL, pmml.export = NULL, stat.inf = NULL, categorical.variable = NULL, class.map0 = NULL, class.map1 = NULL, multi.class = FALSE, sgd.batch.number = NULL, precompute = NULL, handle.missing = NULL)
conn.context |
|
data |
|
key |
|
features |
|
label |
|
formula |
|
enet.alpha |
Defaults to 1.0 . |
enet.lambda |
|
tol |
Defaults to 1.0e-7 when 'solver' is cyclical, otherwise it defaults to '1.0e-6'. |
epsilon |
Defaults to 1.0e-6 when "solver" is newton, or '1.0e-5' when 'solver' is lbfgs. |
solver |
All values are available when Defaults to 'auto' when |
max.iter |
For multi.class the default is '100'. For binary.class the default is '100000' when solver is cyclical, '1000' when solver is proximal, or otherwise is '100'. |
thread.ratio |
|
standardize |
|
max.pass.number |
|
lbfgs.m |
|
pmml.export |
For multi.class, valid options are:
For binary.class:
Defaults to 'no'. |
stat.inf |
Defaults to FALSE. |
categorical.variable |
|
class.map0 |
|
class.map1 |
|
multi.class |
|
sgd.batch.number |
|
precompute |
|
handle.missing |
|
R6Class
object.
A "LogisticRegression" object with the following attributes:
result: DataFrame
Coefficient values for logisitic regression model(together with z-scores and p-values).
pmml: DataFrame
LogisticRegression model in PMML format.
statistic.info: DataFrame
Related statistics for the logistic regression model and its solving process, including
AIC, objective-value, log-likelihood, number of iterations used, solution status, etc.
optimal.param: DataFrame
Optimal model parameters selected. Reserved for model selection using cross-validation.
Using Summary and Print
Summary provides a general summary of the output of the model. Usage: summary(lr) where lr is an LogisticRegression object initialized with training data.
Print provides information on the coefficients and the optional parameter values given by the user. Usage: print(lr) where lr is an LogisticRegression object initialized with training data.
## Not run: lr = hanaml.LogisticRegression(conn.context = conn, data = df1) OR lr = hanaml.LogisticRegression(conn.context = conn, data = df1, formula = CATEGORY~V1+V2+V3, solver='newton',thread.ratio=0.1, max.iter=1000, categorical.variable='V3', pmml.export='single-row', stat.inf=TRUE, tol=0.000001) ## End(Not run)