| hanaml.Glm {hana.ml.r} | R Documentation |
hanaml.Glm is a R wrapper for PAL Generalized Linear Model.
hanaml.Glm(conn.context, data, key=NULL, features=NULL,
label=NULL, family=NULL, link=NULL,
solver=NULL, handle.missing.fit=NULL,
quasilikelihood=NULL, max.iter=NULL, tol=NULL,
significance.level=NULL,
output.fitted=NULL, alpha=NULL, lambda=NULL,
num.lambda=NULL, lambda.min.ratio=NULL,
categorical.variable=NULL, ordering=NULL)
conn.context |
|
data |
|
key |
|
features |
|
label |
|
family |
Defaults to 'gaussian'. |
link |
|
solver |
Defaults to "irls", except when family is "ordinal". Ordinal regression requires (and defaults to) "nr", and Newton-Raphson is not supported for other values of family. |
handle.missing.fit |
Defaults to "skip". |
quasilikelihood |
|
max.iter |
|
tol |
|
significance.level |
|
output.fitted |
|
alpha |
|
lambda |
|
num.lambda |
|
lambda.min.ratio |
|
categorical.variable |
|
ordering |
|
R6Class object.
A "Glm" object with the following attributes:
statistics: DataFrame
Training statistics and model information other than the
coefficients and covariance matrix.
coefficients: DataFrame
Model coefficients.
covariance: DataFrame
Covariance matrix. Set to None for coordinate descent.
fitted: DataFrame
Predicted values for the training data. Set to None if
output.fitted is FALSE.
## Not run:
Input DataFrame for training:
> df$Collect()
ID X Y
0 1 0 -1
1 2 0 -1
2 3 1 0
3 4 1 0
4 5 1 0
5 6 1 0
6 7 2 1
7 8 2 1
8 9 2 1
Fitting a GLM on that data:
>glm <- hanaml.Glm(cc, df, key="ID", label="Y", solver="irls",
family="poisson", link="log")
## End(Not run)