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

Loss included in multiclass argmax #752

Merged
merged 3 commits into from Aug 22, 2012
Merged

Conversation

iglesias
Copy link
Collaborator

Revise and tell me if you agree with the changes please

@@ -81,11 +81,13 @@ CResultSet* CMulticlassModel::argmax(
// Find the class that gives the maximum score

float64_t score = 0, ypred = 0;
float64_t max_score = df->dense_dot(feat_idx, w.vector, feats_dim);
float64_t max_score = -CMath::INFTY;

for ( int32_t c = 1 ; c < m_num_classes ; ++c )
Copy link
Member

Choose a reason for hiding this comment

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

c=0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sorry, stupid mistake :(

lisitsyn added a commit that referenced this pull request Aug 22, 2012
Loss included in multiclass argmax
@lisitsyn lisitsyn merged commit 8cec5d0 into shogun-toolbox:master Aug 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants