Giter VIP home page Giter VIP logo

Comments (4)

janosg avatar janosg commented on June 14, 2024

@roecla Do you have any explanation for this or a hint how I can fix it?

from estimagic.

tobiasraabe avatar tobiasraabe commented on June 14, 2024

When I looked at this the last time, I had the impression that the dashboard keeps the first and incoming fitness values and parameter values.

Maybe it has something to do with the following lines, because your callback receives the initial data (params and fitness) as a partialed argument and maybe it is never updated during optimization.

start_param_df, start_fitness = _trim_start_values(
start_param_df=start_param_df, start_fitness=start_fitness
)
doc, data = _configure_dashboard(
doc=doc, param_df=start_param_df, start_fitness=start_fitness
)
# this thread is necessary to not lock the server
callbacks = partial(
_update_dashboard,
doc=doc,
dashboard_data=data,
queue=queue,
stop_signal=stop_signal,
**db_options
)

I have never fully explored this idea, but maybe it helps.

from estimagic.

roecla avatar roecla commented on June 14, 2024

PR #132 improves this situation substantially because the data are permanently stored in the database.
However, at the moment when the browser tab is refreshed, the past iterations are skipped:

Before the refresh:
image

After the refresh:
image

I don't understand the bokeh behavior when the tab is refreshed yet. Periodic callbacks seem to continue running but cannot be removed by the handles from before the refresh.

I am going to address this in a future pull request. Until then, users can either content themselves with the iterations after the refresh or open up a new dashboard of the database. In that case replay mode will kick in.

from estimagic.

roecla avatar roecla commented on June 14, 2024

With the switch to the dashboard monitoring the database, the loss of data is no problem anymore.

As of PR #169 after reloading there is no problem with the line as shown above. Instead the plots are emptied and the user is back at the "start" setup (except for the jump argument).

After reloading starting the convergence tab visualization anew works about 80% of the time with no apparent patterns. If it fails, another refresh sometimes fixes the problem and allows the user to restart the playback of the optimization.

Also, simply restarting the dashboard from the command line would be an easy fix in case the restarting from within the convergence tab does not work.

from estimagic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.