Description Usage Arguments Examples
View source: R/my-multiclass.R
This is a simple algorithm to solve a multi-class logistic regression model.
1 | my_multiclass(X, Y, maxit = 2000, tol = 1e-10, lambda = 0.001)
|
X |
design matrix |
Y |
a vector of outcome |
maxit |
an integer indicating the maximum number iterations |
tol |
a numeric number indicating the precision of the algorithm |
lambda |
a numeric number indicating the learning rate |
family |
an R ‘family‘ object. |
1 2 3 4 | data(iris)
X <- model.matrix(Species ~ ., data = iris)
Y <- iris$Species
fit_m <- my_multiclass(X, Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.