I want to dynamically generate validation error while training the the model. I hate matplotlib :) But I have recently found out about plotly. Now I want to do it using plotly
I have tried to change the figure:
fig.data[0].x = list(range(len(validation_errors)))
fig.data[0].y = validation_errors
or update trace:
fig.update_traces(
x=[np.arange(len(new_validation_errors))],
y=[new_validation_errors],
selector=dict(name='Validation Error')
)
but as I understand if you call fig.show()
before and after the update it just draws two plots
Is there any way to update the same plot?