powered by
Extracts a parameters from an ensemble made by the naiveBayes function
# S3 method for naiveBayes extract_params(object, threshold = 0.001, eps = 0, ...)
an object of class "naiveBayes"
a value replacing cells with probabilities within eps range.
a numeric for specifying an epsilon-range to apply laplace smoothing (to replace zero or close-zero probabilities by theshold.)
further arguments passed to or from other methods
a list that is extracted from the naiveBayes object
list
model <- e1071::naiveBayes(Species ~ ., data=iris) model_params <- extract_params(model)
Run the code above in your browser using DataLab