Skip to content

Conversation

@jackgerrits
Copy link
Member

No description provided.

if (ld.label != FLT_MAX && !ec.test_only)
{ all.sd->weighted_labels += (static_cast<double>(ld.label)) * static_cast<double>(ec.weight); }
all.sd->weighted_unlabeled_examples += ld.label == FLT_MAX ? static_cast<double>(ec.weight) : 0.0;
// all.sd->weighted_unlabeled_examples += ld.label == FLT_MAX ? static_cast<double>(ec.weight) : 0.0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

whats the deal with this comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh great catch thank you! This line is redundant because of line 114 and i was going to open a PR to remove it. However, I accidentally added it here

Copy link
Collaborator

@lalo lalo left a comment

Choose a reason for hiding this comment

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

left a comment

@jackgerrits jackgerrits merged commit 57003d3 into VowpalWabbit:master Sep 14, 2021
@jackgerrits jackgerrits deleted the jagerrit/clamp branch September 14, 2021 13:16
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.

2 participants