autonomio / talos

Hyperparameter Experiments with TensorFlow and Keras
https://autonom.io
MIT License
1.62k stars 268 forks source link

Unable to display loss on graph #269

Closed anonymousDog12 closed 5 years ago

anonymousDog12 commented 5 years ago

The y-coordinate range for displaying losses during training can be too small sometimes, when the losses are big. Could you fix the display window range?

Thanks!

mikkokotila commented 5 years ago

Are you referring to talos.live()?

anonymousDog12 commented 5 years ago

Screen Shot 2019-03-11 at 10 50 53 AM

It's the graph on the left in this picture.

mikkokotila commented 5 years ago

I understand. This is intentional. If we don't fix to scale of 0 to 1 then the scale is continuously changing and provides no meaningful way to compare results. Also, when you are not on the chart, you know something is totally wrong. The exception here is of course continuous prediction tasks, where a value is not ideally between 0 and 1 typically. So maybe we could have an option that allows switching to dynamic y-scale.

reinert commented 5 years ago

I'm running into the same issue. It would be nice if we could set the graph's scale. Any tips where I could change it by hand?

mikkokotila commented 5 years ago

I've fixed this now, but it will take probably a few weeks before the change will reflect in the underlying pypi package. In the meantime, if you uninstall kerasplotlib from your machine and then:

pip install git+https://github.com/autonomio/kerasplotlib

...you should be able to pass an argument x_max to the callback and set your own limit. Note that I did not test this yet but it's a pretty simple change so should work.

Closing here.