powered by
Replace nominal attributes Replace the nominal attributes by binary attributes.
replace_nominal_attributes(mdata, ordinal.attributes = list())
The mldr dataset to remove.
Not yet, but it will be used to specify which attributes need to be replaced.
a new mldr object.
Other pre process: fill_sparse_mldata, normalize_mldata, remove_attributes, remove_labels, remove_skewness_labels, remove_unique_attributes, remove_unlabeled_instances
fill_sparse_mldata
normalize_mldata
remove_attributes
remove_labels
remove_skewness_labels
remove_unique_attributes
remove_unlabeled_instances
# NOT RUN { new.toy <- toyml new.column <- as.factor(sample(c("a","b","c"), 100, replace = TRUE)) new.toy$dataset$ratt10 <- new.column head(replace_nominal_attributes(new.toy)) # }
Run the code above in your browser using DataLab