Skip to content

Add grid lines for activation images, fixes #9130#9134

Closed
vishwakftw wants to merge 4 commits intopytorch:masterfrom
vishwakftw:asymptotes-docs
Closed

Add grid lines for activation images, fixes #9130#9134
vishwakftw wants to merge 4 commits intopytorch:masterfrom
vishwakftw:asymptotes-docs

Conversation

@vishwakftw
Copy link
Contributor

  1. Add dashed light blue line for asymptotes.
  2. RReLU was missing the activation image.
  3. make clean in docs will remove the activation images too.

Sample image:
image

@vishwakftw
Copy link
Contributor Author

cc: @vadimkantorov

@ssnl
Copy link
Collaborator

ssnl commented Jul 3, 2018

Looks good. Btw, why do we have the gray lines?

@vishwakftw
Copy link
Contributor Author

The overlay was added in an older PR, so that it made the transition look better. I actually find it a bit confusing. Do you think we should remove them?

@vadimkantorov
Copy link
Contributor

what do you thing about adding vertical lines as well? to see clearly where breakpoints happen

@vishwakftw
Copy link
Contributor Author

This is how it looks with breakpoints.
image

I have removed the overlay to avoid confusion.

@apaszke
Copy link
Contributor

apaszke commented Jul 3, 2018

@vadimkantorov I would say that would be too much. We could add some extra ticks on the X axis, but lines are usually asymptotes, and this is not what's happening there. It also adds visual clutter.

@ssnl
Copy link
Collaborator

ssnl commented Jul 3, 2018

we can also just add the grid lines

@vishwakftw
Copy link
Contributor Author

I agree with @apaszke , the vertical lines cause issues for plots like ReLU6.

@vishwakftw
Copy link
Contributor Author

This is the current plot for HardTanh

image

Hope this is fine.

@karandwivedi42
Copy link
Contributor

I think at least xticks and yticks on +1 and -1 should be there.

@vadimkantorov
Copy link
Contributor

@apaszke @vishwakftw The last one looks good: conveys the meaning of asymptotes and enables grasping where the breakpoints are, if needed + not much visual clutter (but even the grid lines without asymptotes are fine for my taste).

@ssnl
Copy link
Collaborator

ssnl commented Jul 3, 2018

Thanks! Grid lines look a bit too subtle to me. What do you think?

Also, with grid lines, do we still want asymptotic lines?

@vishwakftw
Copy link
Contributor Author

@ssnl removed asymptote lines and increased the width.

@vishwakftw vishwakftw changed the title Add asymptotes for activation images, fixes #9130 Add grid lines for activation images, fixes #9130 Jul 3, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ssnl
Copy link
Collaborator

ssnl commented Jul 3, 2018

@pytorchbot retest this please

Copy link
Collaborator

@ssnl ssnl left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@vishwakftw vishwakftw deleted the asymptotes-docs branch July 4, 2018 02:11
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
1. Add dashed light blue line for asymptotes.
2. RReLU was missing the activation image.
3. make clean in docs will remove the activation images too.

Sample image:
![image](https://user-images.githubusercontent.com/23639302/42224142-5d66bd0a-7ea7-11e8-8b0a-26918df12f7c.png)
Closes pytorch#9134

Differential Revision: D8726880

Pulled By: ezyang

fbshipit-source-id: 35f00ee08a34864ec15ffd6228097a9efbc8dd62
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.

8 participants