We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c983379 commit 5ed332dCopy full SHA for 5ed332d
src/lib.rs
@@ -293,7 +293,7 @@ impl SupervisedModel {
293
/// #[cfg(any(feature = "csv"))]
294
/// model.predict("data/diabetes_without_target.csv");
295
/// ```
296
- pub fn predict<X>(&mut self, x: X) -> Vec<f32>
+ pub fn predict<X>(&self, x: X) -> Vec<f32>
297
where
298
X: IntoFeatures,
299
{
@@ -625,7 +625,7 @@ impl SupervisedModel {
625
};
626
}
627
628
- fn predict_blended_model(&mut self, x: &DenseMatrix<f32>, algo: Algorithm) -> Vec<f32> {
+ fn predict_blended_model(&self, x: &DenseMatrix<f32>, algo: Algorithm) -> Vec<f32> {
629
// Make the data
630
let mut meta_x: Vec<Vec<f32>> = Vec::new();
631
for i in 0..self.comparison.len() {
0 commit comments