dacapo.plot

Attributes

RunInfo

Functions

smooth_values(a, n[, stride])

Smooth values with a moving average.

get_runs_info(→ List[RunInfo])

bokeh_plot_runs(run_config_base_names[, smooth, ...])

Plot runs.

plot_runs(run_config_base_names[, smooth, ...])

Plot runs.

Module Contents

dacapo.plot.RunInfo
dacapo.plot.smooth_values(a, n, stride=1)

Smooth values with a moving average.

Parameters:
  • a – values to smooth

  • n – number of values to average

  • stride – stride of the smoothing

Returns:

smoothed values s: standard deviation of the smoothed values

Return type:

m

Raises:

ValueError – If run_name is not found in config store

Examples

>>> smooth_values([1,2,3,4,5], 3)
dacapo.plot.get_runs_info(run_config_names: List[str], validation_score_names: List[str], plot_losses: List[bool]) List[RunInfo]
dacapo.plot.bokeh_plot_runs(run_config_base_names, smooth=100, validation_scores=None, higher_is_betters=None, plot_losses=None, return_json=False)

Plot runs. :param run_config_base_names: Names of run configs to plot :param smooth: Smoothing factor :param validation_scores: Validation scores to plot :param higher_is_betters: Whether higher is better :param plot_losses: Whether to plot losses :param return_json: Whether to return JSON

Returns:

JSON or HTML plot

Raises:

ValueError – If run_name is not found in config store

Examples

>>> plot_runs(["run_name"], 100, None, None, [True])
dacapo.plot.plot_runs(run_config_base_names, smooth=100, validation_scores=None, higher_is_betters=None, plot_losses=None)

Plot runs. :param run_config_base_names: Names of run configs to plot :param smooth: Smoothing factor :param validation_scores: Validation scores to plot :param higher_is_betters: Whether higher is better :param plot_losses: Whether to plot losses

Returns:

None