# DAL ToolBox # version 1.0.777 source("https://raw.githubusercontent.com/cefet-rj-dal/daltoolbox/main/jupyter.R") #loading DAL load_library("daltoolbox") iris <- datasets::iris head(iris) # smoothing using regular interval obj <- smoothing_inter(n = 2) obj <- fit(obj, iris$Sepal.Length) sl.bi <- transform(obj, iris$Sepal.Length) print(table(sl.bi)) obj$interval entro <- evaluate(obj, as.factor(names(sl.bi)), iris$Species) print(entro$entropy) opt_obj <- smoothing_inter(n=1:20) obj <- fit(opt_obj, iris$Sepal.Length) obj$n obj <- fit(obj, iris$Sepal.Length) sl.bi <- transform(obj, iris$Sepal.Length) print(table(sl.bi))