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