Runs a conditional inference forest.

tidy_cforest(data, formula, seed = 1)

Arguments

data

dataframe

formula

formula

seed

seed integer

Value

a cforest model

Examples


iris %>%
tidy_cforest(
  tidy_formula(., Petal.Width)
) -> iris_cfor

iris_cfor
#> 
#> 	 Random Forest using Conditional Inference Trees
#> 
#> Number of trees:  500 
#> 
#> Response:  Petal.Width 
#> Inputs:  Sepal.Length, Sepal.Width, Petal.Length, Species 
#> Number of observations:  150 
#> 

iris_cfor %>%
visualize_model()
#> Sepal.Length  Sepal.Width Petal.Length      Species 
#> 0.0007426618 0.0108796411 0.4652974314 0.6165840333