-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Smoothing of a constant plot is messed up #786
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
Comments
I have the same problem. It only shows up in the recent version the tensorboard, but not old ones. |
Hmm, if it's only showing up in the latest release of TensorBoard, I wonder if it might be inadvertently introduced by #639 ? cc @alexirpan |
I can try to take a look at the smoothing code (there are some other changes I'd like to play with). Can I edit the smoothing code of a running TensorBoard instance from the browser somehow or how would you suggest getting started? |
When I worked on #639 I downloaded + built a local copy of the Tensorboard codebase, then worked off of that. I suspect it's some issue with floating point error, where the code does
|
Due to IEEE 754 floating-point precision, multiplying floating smoothing factor into a value can cause discrepency in otherwise mathematically constant value. Please see tensorflow#786 for examples of weird spikes/messed up y-scale. Fixes tensorflow#786.
@stephanwlee thanks for your recent fixes! Can this issue be closed? |
Per @wchargin comments on the fix PR I think we consider the general problem here to still not be solved: #1698 (comment) |
Correct; what’s needed is a more numerically stable implementation of
|
I'd still be interested in playing with the smoothing algorithm. Same question as a while ago:
|
There’s not an easy way to edit the smoothing algorithm live in the I suppose that it’s possible that you could change the smoothing |
Could you please move this to closed status as the PR already merged. Thanks |
@pindinagesh the PR doesn't fully address the issue, which I explained in #786 (comment) So this issue should stay open pending a more general solution. |
When I try to smooth a value which is constant, then some strange spikes appear in the plot.

For example:
Here
actor_learn_rate
is always a constant. Interestingly, in its own tab it is displayed correctly, but in the Tags matching tab it is messed up. When I hover over the plot at a point corresponding to a spike, the correct value of1e-4
is reported. The case is the same forcritic_learn_rate
.Interestingly, the spikes depend on the smoothing value. For example, for a smoothing value of

0.222
, there are no spikes:However, the orange line is not displayed at
1e-4
which is the correct value.Then a smoothing value of

0
is the same.My version is
tensorflow-tensorboard (0.4.0rc3)
The text was updated successfully, but these errors were encountered: