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

Strange histograms #56

Closed
jojonki opened this issue Dec 8, 2017 · 6 comments
Closed

Strange histograms #56

jojonki opened this issue Dec 8, 2017 · 6 comments

Comments

@jojonki
Copy link

jojonki commented Dec 8, 2017

Hi, this is really nice project. I started to use this library because I wanted to see histograms of my trainable parameters.

Although I run demo.py, the histograms looks strange. Is it expected behaviors?

  • tensorboardX: 0.8
  • python 3.6.1 (Anaconda)
  • tensorflow: 1.4.0
  • tensorflow-tensorboard: 0.4.0rc3
  • PyTorch: 0.3.0.post4
$ python demo.py
$ tensorboard --logdir runs

screen shot 2017-12-08 at 3 53 50 pm

@lanpa
Copy link
Owner

lanpa commented Dec 9, 2017

Please try #42
I also noticed that you have a value 3*10^18, which is unusually big. Did the gradient explode?

@jojonki
Copy link
Author

jojonki commented Dec 10, 2017

Do you mean to set bins like bins=np.arange(-0.003, 0.003, 0.0001)? Ok, I'll try it.
But I am afraid your official code doesn't work in some environment. Other libraries in my environment may be quite new.

@lanpa
Copy link
Owner

lanpa commented Dec 12, 2017

No, I think your value is too concentrated, therefore default binning method can not plot well. You can check this by printing the max and min of your data in console. And sorry I can't quite understand your second sentence. Is there error message?

@jyzhang-bjtu
Copy link

I got the same strange histogram too...

@jyzhang-bjtu
Copy link

Got it. The function add_histogram should use bins='auto' as default other than bins='tensorflow'.
The para bins='tensorflow' always cause such strange histogram

@lanpa
Copy link
Owner

lanpa commented Dec 18, 2017

@jyzhang-bjtu 'auto' might freeze the code. see #1 and use with care:)

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

No branches or pull requests

3 participants