Description Usage Arguments Details Value Author(s) Examples
Logistic regression on train data (classication)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
formule |
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. The details of model specification are given under ‘Details’ |
data |
a dataframe containing the variables in the model. |
mode |
parameter is the way you feed your data to the model ( online, mini-batch or batch). The mode is set to mini-batch by default. |
batch_size |
the batch size when mode is mini-batch |
alpha |
the learning rate in gradient descent |
max_iter |
maximum number of iteration |
tol |
tolerance for accepting a model : |
ncores |
indicates the number of cores to use; if invalid (<= 0 or> number of cores available), the maximum capacities of the host machine are used |
parallel |
logical.Should we use parallel computing ? specifies whether you want to perform a parallel or a sequential computing. The default value is set to False ( meaning it's sequential). Note that parallel computing is not performed in the case of online gradient descent. |
plot |
logical. Should we plot the cost function while iterating ? |
lambda |
parameter is set to zero by default if no regularization is applied to the model. You may want to modify this value if your model is overfitting. |
beta |
beta parameter which takes only two values (beta = 1 by default: ridge regularization case) beta = 0 lasso case |
Function that trains your model via gradient descent and outputs the model weights. This function comes with a bunch of parameters.
An object S3 of class Reg.Log md$coeffs : Coefficients ( model weights) md$nb_iter: Number of epochs md$cost: cost function values at each epoch md$mean_col= mean value of each feature md$sd: Standard deviation value of each feature
Marie Vachet, Afaf Ben Haj, Sami Ait Tilat
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.