Skip to content

❗ This is a read-only mirror of the CRAN R package repository. randomMachines — An Ensemble Modeling using Random Machines

License

Notifications You must be signed in to change notification settings

cran/randomMachines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randomMachines

Installation

You can install the development version of randomMachines from GitHub with:

# install.packages("devtools")
devtools::install_github("MateusMaiaDS/randomMachines")

Example

This is a basic example which shows you how to solve a common binary classification problem:

library(randomMachines)
## Simple classification example
sim_train <- randomMachines::sim_class(n=100)
sim_test <- randomMachines::sim_class(n=100)
rm_mod <- randomMachines::randomMachines(y~.,train = sim_train, B = 25,prob_model = F)
rm_mod_pred <- predict(rm_mod,sim_test)

For a regression task we would have similarly

library(randomMachines)
## Simple regression example
sim_train <- randomMachines::sim_reg1(n=100)
sim_test <- randomMachines::sim_reg1(n=100)
rm_mod <- randomMachines::randomMachines(y~.,train = sim_train,B = 25)
rm_mod_pred <- predict(rm_mod,sim_test)

About

❗ This is a read-only mirror of the CRAN R package repository. randomMachines — An Ensemble Modeling using Random Machines

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages