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

Labels on y-axis do not match plotted values in scalars view #1753

Open
Dobiasd opened this issue Jan 11, 2019 · 3 comments
Open

Labels on y-axis do not match plotted values in scalars view #1753

Dobiasd opened this issue Jan 11, 2019 · 3 comments

Comments

@Dobiasd
Copy link

Dobiasd commented Jan 11, 2019

Just stumbled over something similar as this old issue. So I created a minimal example to reproduce the effect:

# tensorboard_y_axis_labels_issue.py

import keras
import numpy as np
from keras.layers import Input, Dense
from keras.models import Model

inputs = Input(shape=(100,))
x = Dense(80, activation='tanh')(inputs)
predictions = Dense(10, activation='softmax')(x)
model = Model(inputs=inputs, outputs=predictions)
model.compile(loss='categorical_crossentropy', optimizer='nadam')

x_train = np.random.rand(10000, 100)
y_train = np.random.rand(10000, 10)

model.fit(
    x=x_train,
    y=y_train,
    epochs=1000,
    callbacks=[keras.callbacks.TensorBoard(log_dir='tensorboard_logs')])

Screenshot of effect:

tensorboard_screenshot

From the labels of the y-axis I'd expect the highlighted point to be > 11.5 instead of 11.48.

Command line:

python3 tensorboard_y_axis_labels_issue.py
tensorboard --logdir tensorboard_logs

Used versions:

$ pip3 list | grep tensor
tensorboard              1.12.2
tensorflow               1.12.0

$ inxi -S
System:    Host: tobias-Z170-HD3P Kernel: 4.13.0-38-generic x86_64 (64 bit) Desktop: MATE 1.18.0
           Distro: Linux Mint 18.2 Sonya

$ python3 --version
Python 3.6.8
@wchargin
Copy link
Contributor

Can reproduce with

$ pip list | grep Keras
Keras               2.2.4      
Keras-Applications  1.0.6      
Keras-Preprocessing 1.0.5      

(which is latest pip install keras).

Can reproduce at various levels of smoothing (0, 0.6, 0.8).

@wchargin
Copy link
Contributor

Thanks for reporting, and thanks for the repro script: that helps a lot.

@wchargin
Copy link
Contributor

Event files for self-contained repro attached. Mouse over step 28, e.g.

repro_events.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants