src/estimagic/dashboard/dashboard_app.py
def _create_initial_plots(
    criterion_history,
    params_history,
    group_to_param_ids,
    group_to_param_names,
):
    """Create the initial convergence plots.

    Args:
        criterion_history (bokeh ColumnDataSource)
        params_history (bokeh ColumnDataSource)
        group_to_param_ids (dict): Keys are the groups to be plotted. Values are the
            ids of the parameters belonging to the respective group.
        group_to_param_names (dict): Keys are the groups to be plotted. Values are the
            names of the parameters belonging to the respective group.

    Returns:
        plots (list): List of bokeh Row elements, each containing one convergence plot.

    """
    param_plots = []
    for group, param_ids in group_to_param_ids.items():
        param_names = group_to_param_names[group]
        param_group_plot = plot_time_series(
            data=params_history,
            y_keys=param_ids,
            y_names=param_names,
            x_name="iteration",
            title=str(group),
        )
        param_plots.append(param_group_plot)

    arranged_param_plots = [Row(plot) for plot in param_plots]

    criterion_plot = plot_time_series(
        data=criterion_history,
        x_name="iteration",
        y_keys=["criterion"],
        y_names=["criterion"],
        title="Criterion",
        name="criterion_plot",
    )

    plots = [Row(criterion_plot)] + arranged_param_plots
    return plots
Create the initial convergence plots.

    Args:
        criterion_history (bokeh ColumnDataSource)
        params_history (bokeh ColumnDataSource)
        group_to_param_ids (dict): Keys are the groups to be plotted. Values are the
            ids of the parameters belonging to the respective group.
        group_to_param_names (dict): Keys are the groups to be plotted. Values are the
            names of the parameters belonging to the respective group.

    Returns:
        plots (list): List of bokeh Row elements, each containing one convergence plot.

    
Create the initial convergence plots.

plots (list): List of bokeh Row elements, each containing one convergence plot.
Create the initial convergence plots . plots ( list ) : List of bokeh Row elements each containing one convergence plot .
def _create_initial_plots(
    criterion_history,
    params_history,
    group_to_param_ids,
    group_to_param_names,
):
    param_plots = []
    for group, param_ids in group_to_param_ids.items():
        param_names = group_to_param_names[group]
        param_group_plot = plot_time_series(
            data=params_history,
            y_keys=param_ids,
            y_names=param_names,
            x_name="iteration",
            title=str(group),
        )
        param_plots.append(param_group_plot)
    arranged_param_plots = [Row(plot) for plot in param_plots]
    criterion_plot = plot_time_series(
        data=criterion_history,
        x_name="iteration",
        y_keys=["criterion"],
        y_names=["criterion"],
        title="Criterion",
        name="criterion_plot",
    )
    plots = [Row(criterion_plot)] + arranged_param_plots
    return plots
def _create_initial_plots ( criterion_history , params_history , group_to_param_ids , group_to_param_names , ) : param_plots = [ ] for group , param_ids in group_to_param_ids . items ( ) : param_names = group_to_param_names [ group ] param_group_plot = plot_time_series ( data = params_history , y_keys = param_ids , y_names = param_names , x_name = "iteration" , title = str ( group ) , ) param_plots . append ( param_group_plot ) arranged_param_plots = [ Row ( plot ) for plot in param_plots ] criterion_plot = plot_time_series ( data = criterion_history , x_name = "iteration" , y_keys = [ "criterion" ] , y_names = [ "criterion" ] , title = "Criterion" , name = "criterion_plot" , ) plots = [ Row ( criterion_plot ) ] + arranged_param_plots return plots
Create the initial convergence plots.
Create the initial convergence plots .
"""Create the initial convergence plots.

    Args:
        criterion_history (bokeh ColumnDataSource)
        params_history (bokeh ColumnDataSource)
        group_to_param_ids (dict): Keys are the groups to be plotted. Values are the
            ids of the parameters belonging to the respective group.
        group_to_param_names (dict): Keys are the groups to be plotted. Values are the
            names of the parameters belonging to the respective group.

    Returns:
        plots (list): List of bokeh Row elements, each containing one convergence plot.

    """
criterion_history
params_history
group_to_param_ids
group_to_param_names