From 5b490e473d57d23e4a0f19b66eaf2f814bb34801 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 20 Nov 2024 13:28:36 -0600 Subject: [PATCH] Revert perceptron_impl.hpp --- src/mlpack/methods/perceptron/perceptron_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/methods/perceptron/perceptron_impl.hpp b/src/mlpack/methods/perceptron/perceptron_impl.hpp index 46312f542f9..c03533889cb 100644 --- a/src/mlpack/methods/perceptron/perceptron_impl.hpp +++ b/src/mlpack/methods/perceptron/perceptron_impl.hpp @@ -322,7 +322,7 @@ void Perceptron::Classify( for (size_t i = 0; i < test.n_cols; ++i) { tempLabelMat = weights.t() * test.col(i) + biases; - maxIndex = tempLabelMat.index_max(); + tempLabelMat.max(maxIndex); predictedLabels(i) = maxIndex; } }