Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix numClasses member in SoftmaxRegression::Train() #3553

Merged
merged 3 commits into from Nov 5, 2023

Conversation

rcurtin
Copy link
Member

@rcurtin rcurtin commented Oct 26, 2023

While using softmax regression for some experiments, I found that if I called Train() directly, instead of passing anything in the constructor, that subsequent calls to Classify() would fail. The reason is that the numClasses member is not actually set in Train(), so I fixed that, and added a test that would have failed without the changes here, but now, it succeeds. :)

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second approval provided automatically after 24 hours. 👍

@conradsnicta conradsnicta merged commit 7af47e2 into mlpack:master Nov 5, 2023
19 checks passed
@rcurtin rcurtin mentioned this pull request Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants