fix: post-review changes

This commit is contained in:
Volodymyr Orlov
2020-12-24 13:47:09 -08:00
parent 32ae63a577
commit d22be7d6ae
4 changed files with 1 additions and 28 deletions
-4
View File
@@ -82,10 +82,6 @@ pub struct MultinomialNBParameters<T: RealNumber> {
}
impl<T: RealNumber> MultinomialNBParameters<T> {
/// Create MultinomialNBParameters with specific paramaters.
pub fn new(alpha: T, priors: Option<Vec<T>>) -> Self {
Self { alpha, priors }
}
/// Additive (Laplace/Lidstone) smoothing parameter (0 for no smoothing).
pub fn with_alpha(mut self, alpha: T) -> Self {
self.alpha = alpha;