Description Usage Arguments Value Examples
View source: R/dg_minibatch_online_seq.R
This function allows the execution of the binary logistic regression according to the batch, mini batch and online mode.
1 2 3 4 5 6 7 8 9 10 11 12 | dg_batch_minibatch_online_seq(
X,
y,
theta,
batch_size,
random_state,
leaning_rate,
max_iter,
tolerance,
rho = NA,
C = NA
)
|
X |
is the matrix of our predictor variables with the bias column |
y |
is a target variable to predict. |
theta |
is a vector containing the parameters or coefficient of the logistic to be estimated |
batch_size |
a parameter that specifies the number of observations in each mini-batch. It can significantly affect performance |
random_state |
this parameter defines the seed of the random number generator, use when shuffling to mix observations. |
leaning_rate |
is the learning rate that controls the magnitude of the vector update. |
max_iter |
is the number of iterations. |
tolerance |
an additional parameter which specifies the minimum movement allowed for each iteration |
rho |
hyper parameter which allows arbitration between RDIGE and LASSO. |
C |
parameter allowing to arbitrate between the penalty and the likelihood in the guidance of the modeling. |
this function returns an instance containing:
final theta
history cost
iteration number
intern iteration number
1 2 3 4 | ## Not run:
global_grad_descent(X,y,theta)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.