# NOT RUN {
elm(Species ~ ., data = iris, nhid = 20, actfun="sig")
mod_elm <- elm(Species ~ ., data = iris, nhid = 20, actfun="sig")
# predict classes
predict(mod_elm, newdata = iris[1:3,-5])
# predict probabilities
predict(mod_elm, newdata = iris[1:3,-5], type="prob")
# predict elm output
predict(mod_elm, newdata = iris[1:3,-5], type="raw")
data("Boston")
elm(medv ~ ., data = Boston, nhid = 40, actfun="relu")
data("ionosphere")
elm(class ~ ., data = ionosphere, nhid=20, actfun="relu")
# }
Run the code above in your browser using DataLab