Skip to content

Conversation

@vabh
Copy link
Contributor

@vabh vabh commented Jul 3, 2017

Make the labels be 1d tensors of type np.int64.
Assign label 0 to data samples of digit 0. The original dataset assigns them label 10.

Make the labels be 1d tensors of type `np.int64`.
Assign label `0`  to data samples of digit 0. The original dataset assigns them label `10`.
@vabh vabh mentioned this pull request Jul 3, 2017
# the svhn dataset assigns the class label "10" to the digit 0
# this makes it inconsistent with several loss functions
# which expect the class labels to be in the range [0, C-1]
np.place(self.labels, self.labels == 10, 0)

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@alykhantejani
Copy link
Contributor

@vabh Thanks for this - sorry for the delay!

@alykhantejani alykhantejani merged commit 918fdff into pytorch:master Sep 20, 2017
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.

3 participants