inst/doc/Class_Probability_Calcs.R

## ---- echo = FALSE, results = "hide",message=FALSE,warning=FALSE--------------
library(C50)
library(knitr)
opts_chunk$set(comment = NA, digits = 3, prompt = TRUE, tidy = FALSE)

## -----------------------------------------------------------------------------
library(C50)
mod <- C5.0(Species ~ ., data = iris)
summary(mod)

## -----------------------------------------------------------------------------
predict(mod, iris[130,], type = "prob")

Try the C50 package in your browser

Any scripts or data that you put into this service are public.

C50 documentation built on June 1, 2021, 9:08 a.m.