Skip to content

Commit

Permalink
Revert perceptron_impl.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Nov 22, 2024
1 parent a09ae52 commit 5b490e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlpack/methods/perceptron/perceptron_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void Perceptron<LearnPolicy, WeightInitializationPolicy, MatType>::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;
}
}
Expand Down

0 comments on commit 5b490e4

Please sign in to comment.