mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-10-04 12:59:26 +00:00
Remove unreachable panic
This commit is contained in:
@@ -88,9 +88,6 @@ impl GaussianNB {
|
|||||||
for &c in &self.classes {
|
for &c in &self.classes {
|
||||||
let idx = &groups[&c.to_bits()];
|
let idx = &groups[&c.to_bits()];
|
||||||
let count = idx.len();
|
let count = idx.len();
|
||||||
if count == 0 {
|
|
||||||
panic!("Class group for label {} is empty", c);
|
|
||||||
}
|
|
||||||
// Prior
|
// Prior
|
||||||
self.priors.push(count as f64 / m as f64);
|
self.priors.push(count as f64 / m as f64);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user