Skip to content

Safe-Bayesian Random Forest. This package is an attempt to implement the Safe-Bayesian Random Forest described by Quadrianto and Ghahramani (2015).

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

guhjy/sBayesRF

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sBayesRF

The goal of sBayesRF is to provide an implementation of the Safe-Bayesian Random Forest method described in: Quadrianto, N., & Ghahramani, Z. (2014). A very simple safe-Bayesian random forest. IEEE transactions on pattern analysis and machine intelligence, 37(6), 1297-1303.

Installation

library(devtools)
install_github("EoghanONeill/sBayesRF")

Example

library(sBayesRF)

Num_vars <- 50
Num_obs <- 100
Num_cats <- 5

alpha_parameters <- rep(1,Num_cats)
beta_par <- 0.5

data_original1 <- matrix( rnorm(Num_obs*Num_vars,mean=0,sd=1), Num_obs, Num_vars)
y <- sample(Num_cats,Num_obs, replace = TRUE)

Num_test_vars <- 50
Num_test_obs <- 700

data_test1 <- matrix( rnorm(Num_test_obs*Num_test_vars,mean=0,sd=1), Num_test_obs, Num_test_vars)


Num_split_vars <- 10

lambda <- 0.45
Num_trees <- 100

seed1 <- 42
ncores <- 1

sBayesRF_parallel(lambda, Num_trees,
                          seed1, Num_cats,
                          y, data_original1,
                          alpha_parameters, beta_par,
                          data_test1,ncores)

About

Safe-Bayesian Random Forest. This package is an attempt to implement the Safe-Bayesian Random Forest described by Quadrianto and Ghahramani (2015).

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.5%
  • R 6.5%