demo/rebuild_datasets.R

emotions <- mldr_from_dataframe(mldr::emotions$dataset[, c(emotions$attributesIndexes, emotions$labels$index)], mldr::emotions$labels$index, "emotions")
birds <- mldr_from_dataframe(mldr::birds$dataset[, c(birds$attributesIndexes, birds$labels$index)], mldr::birds$labels$index, "birds")
genbase <- mldr_from_dataframe(mldr::genbase$dataset[, c(genbase$attributesIndexes, genbase$labels$index)], mldr::genbase$labels$index, "genbase")

save(emotions, file = "emotions.rda", compress = "xz")
save(birds, file = "birds.rda", compress = "xz")
save(genbase, file = "genbase.rda", compress = "xz")

Try the mldr package in your browser

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

mldr documentation built on Jan. 11, 2020, 9:18 a.m.