(&self, x: &[Vec<f64>])
| 9 | |
| 10 | impl RegressionPredictor for LinearRegModel { |
| 11 | fn predict(&self, x: &[Vec<f64>]) -> Vec<f64> { |
| 12 | x.iter().map(|r| r.iter().zip(self.w.iter()).map(|(a, b)| a * b).sum::<f64>()).collect() |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | struct NonLinearRegModel; |
no outgoing calls
no test coverage detected