Update src/mlpack/methods/softmax_regression/softmax_regression_impl.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Omar Shrit
2024-01-12 18:22:05 +01:00
committed by GitHub
co-authored by Ryan Curtin
parent f8a1936e81
commit 33de2e0812
@@ -198,8 +198,7 @@ inline void SoftmaxRegression<MatType>::Classify(
hypothesis = arma::exp(parameters * dataset);
}
probabilities = hypothesis / repmat(arma::sum(hypothesis, 0),
numClasses, 1);
probabilities = hypothesis / repmat(arma::sum(hypothesis, 0), numClasses, 1);
// Prepare necessary data.
labels.zeros(dataset.n_cols);