fuzzy_exp_vis

Description

Helper functions for visualization of fuzzy logic experiment results.

Functions

compare_orig_wt_masks(img_t, masks[, ...])

Plot a figure comparing the original img_t with the created masks (values in [0,1]).

conf_to_fn(conf)

Turn a sacred experiment config to a unique file name.

plot_curve(metrics_pd[, x, y, ax, ...])

Plot a curve of y against x varying the value of variables[0] given constraints.

plot_metric(metrics_pd, model_key[, ...])

Plot a bar chart for each of the given metrics from entries in metrics_pd.

plot_summaries(mask_dfs[, save_as])

Plot row of bar plots one for each summary mask DataFrame.

summarize_plot_visualize_exp(...[, ...])

Concatenation of per image stats gathering, stats summary, and optional visualization of formula body masks.

to_custom_displayable_masks(out[, ...])

Custom post-process of a formula calculation output dict for easy display with compare_orig_with_masks.

to_displayable_masks(masks[, target_size])

Turn all mask items of masks into shape [h,w], potentially splitting up stacked masks.

visualize_most_interesting_samples(df, conf)

Plot the masks for most num_samples interesting samples side by side.

visualize_random_samples(experiment_root, ...)

For the first num_samples samples visualize the cached concept and recalculated formula output masks.