Description Usage Arguments Examples
LMLogisticLossIterations
1 | LMLogisticLossIterations(X.mat, y.vec, max.iterations, step.size)
|
X.mat |
|
y.vec |
|
max.iterations |
|
step.size |
1 2 3 4 5 6 7 8 | library(codingProject2)
data(spam, package = "ElemStatLearn")
X.mat<-spam[1:10,-58]
y.vec<-spam[1:10, 58]
max.iterations <- 50
step.size <- 0.1
k <- sigmoid(0)
res <- LMLogisticLossIterations(X.mat, y.vec, 50, 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.