neon.visualizations.figure

Functions

cost_fig(cost_data, plot_height, plot_width) Generate a figure with lines for each element in cost_data.
deconv_figs(layer_name, layer_data[, …]) Helper function to generate deconv visualization figures
deconv_summary_page(filename, cost_data, …) Generate an HTML page with a Deconv visualization
hist_fig(hist_data, plot_height, plot_width) Generate a figure with an image plot for hist_data, bins on the Y axis and time on the X axis.
image_fig(data, h, w, x_range, y_range, …) Helper function to generate a figure
x_label(epoch_axis) Get the x axis label depending on the boolean epoch_axis.
neon.visualizations.figure.cost_fig(cost_data, plot_height, plot_width, epoch_axis=True)[source]

Generate a figure with lines for each element in cost_data.

Parameters:
  • cost_data (list) – Cost data to plot
  • plot_height (int) – Plot height
  • plot_width (int) – Plot width
  • epoch_axis (bool, optional) – If true, use Epoch, if false use Minibatch
Returns:

cost_data figure

Return type:

bokeh.plotting.figure

neon.visualizations.figure.deconv_figs(layer_name, layer_data, fm_max=8, plot_size=120)[source]

Helper function to generate deconv visualization figures

Parameters:
  • layer_name (str) – Layer name
  • layer_data (list) – Layer data to plot
  • fm_max (int) – Max layers to process
  • plot_size (int, optional) – Plot size
Returns:

tuple if vis_keys, img_keys, fig_dict

neon.visualizations.figure.deconv_summary_page(filename, cost_data, deconv_data)[source]

Generate an HTML page with a Deconv visualization

Parameters:
  • filename – Output filename
  • cost_data (list) – Cost data to plot
  • deconv_data (tuple) – deconv data to plot
neon.visualizations.figure.hist_fig(hist_data, plot_height, plot_width, x_range=None, epoch_axis=True)[source]

Generate a figure with an image plot for hist_data, bins on the Y axis and time on the X axis.

Parameters:
  • hist_data (tuple) – Hist data to plot
  • plot_height (int) – Plot height
  • plot_width (int) – Plot width
  • x_range (tuple, optional) – (start, end) range for x
  • epoch_axis (boolm optional) – If true, use Epoch, if false use Minibatch
Returns:

hist_data figure

Return type:

bokeh.plotting.figure

neon.visualizations.figure.image_fig(data, h, w, x_range, y_range, plot_size)[source]

Helper function to generate a figure

Parameters:
  • data (int) – data to plot
  • h (int) – height
  • w (int) – width
  • x_range (tuple, optional) – (start, end) range for x
  • y_range (tuple, optional) – (start, end) range for y
  • plot_size (int) – plot size
Returns:

Generated figure

Return type:

bokeh.plotting.figure

neon.visualizations.figure.x_label(epoch_axis)[source]

Get the x axis label depending on the boolean epoch_axis.

Parameters:epoch_axis (bool) – If true, use Epoch, if false use Minibatch
Returns:“Epoch” or “Minibatch”
Return type:str