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 Feb. 16, 2023, 5:08 p.m.