(&self)
| 67 | } |
| 68 | |
| 69 | pub fn plot_effects(&self) -> Result<Vec<String>, String> { |
| 70 | let (lin, nonlin, pair) = self.get_effects()?; |
| 71 | let mut lines = vec![ |
| 72 | format!("linear:{} features", lin.raw.len()), |
| 73 | format!("nonlinear:{} features", nonlin.raw.len()), |
| 74 | ]; |
| 75 | if let Some(p) = pair { |
| 76 | lines.push(format!("pairwise:{} pairs", p.raw.len())); |
| 77 | } |
| 78 | Ok(lines) |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | impl ClassificationModelFingerprint { |