Skip to content

Conversation

@spacecoffin
Copy link
Collaborator

Adds yWeight for classification.

@spacecoffin spacecoffin requested a review from volker48 June 12, 2017 17:29
Copy link
Owner

@volker48 volker48 left a comment

Choose a reason for hiding this comment

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

A few comments

log.Fatal("Error parsing int", err)
}
} else {
yWeight = 1
Copy link
Owner

Choose a reason for hiding this comment

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

If you change line 42 to be yWeight := 1 then you can get rid of this else clause. What do you think?

}{
{
in: [][]string{[]string{"1", "1"}, []string{"1", "1"}, []string{"1", "1"}, []string{"1", "1"}},
in: [][]string{{"1", "1", "|a"}, {"1", "1", "|a"}, {"1", "1", "|a"}, {"1", "1", "|a"}},
Copy link
Owner

Choose a reason for hiding this comment

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

Usually, for a change like this I would add new tests and keep existing tests to make sure existing functionality isn't broken.

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