Data/Results Processing

Data Utilities

Functions:

get_max(data, exp_params)

Creates dataframe of the max validation/test/F1 and corresponding experiment value for an experiment_type.

load_dataframe(path[, multi_index, …])

load_predictions(path[, columns])

save_dataframe(path, data[, index_label])

sort_dataframe_by_list(data, sort_column, …)

sort_dataframe_by_list_and_param(data, …)

data_processing.data_utilities.get_max(data, exp_params)

Creates dataframe of the max validation/test/F1 and corresponding experiment value for an experiment_type.

data_processing.data_utilities.load_dataframe(path, multi_index=False, num_header_rows=1)
data_processing.data_utilities.load_predictions(path, columns=None)
data_processing.data_utilities.save_dataframe(path, data, index_label='index')
data_processing.data_utilities.sort_dataframe_by_list(data, sort_column, sort_order)
data_processing.data_utilities.sort_dataframe_by_list_and_param(data, sort_column, sort_order, param)

Plot Utilities

Functions:

create_colour_map([boundaries, pallet])

Creates a custom colour map around the specified boundary values.

plot_bar_chart(data[, x, y, hue, title, …])

plot_box_chart(data[, x, y, hue, title, …])

plot_dist_chart(data[, metric, hue, row, …])

plot_facetgrid(data[, x, y, hue, row, col, …])

plot_heatmap(data[, title, y_label, …])

plot_line_bar_chart(data, bar_data[, x, y, …])

plot_line_chart(data[, x, y, hue, style, …])

plot_lmplot_chart(data[, x, y, hue, col, …])

plot_relplot(data[, x, y, hue, row, col, …])

plot_scatter_chart(data[, x, y, hue, size, …])

plot_strip_chart(data[, x, y, hue, title, …])

plot_swarm_chart(data[, x, y, hue, size, …])

plot_table(data[, title])

Generates a table from a Dataframe.

plot_violin_chart(data[, x, y, hue, title, …])

data_processing.plot_utilities.create_colour_map(boundaries=None, pallet='RdBu_r')

Creates a custom colour map around the specified boundary values.

data_processing.plot_utilities.plot_bar_chart(data, x='index', y='value', hue='variable', title='', y_label='', x_label='', colour='Paired', dodge=False, legend_loc='best', num_legend_col=3, x_tick_rotation=0, show_bar_val=True)
data_processing.plot_utilities.plot_box_chart(data, x='index', y='value', hue=None, title='', y_label='', x_label='', colour='Paired', legend=False, legend_loc='best', x_tick_rotation=0)
data_processing.plot_utilities.plot_dist_chart(data, metric='value', hue=None, row=None, col='', title='', y_label='', x_label='', plt_hist=True, axis_titles=False, share_x=False, share_y=False, num_col=2, colour='Paired', all_legend=False, num_legend_col=1, legend_loc='best')
data_processing.plot_utilities.plot_facetgrid(data, x='index', y='value', hue='group', row=None, col='metric', kind='bar', title='', y_label='', x_label='', axis_titles=False, share_x=False, share_y=False, num_col=2, colour='Paired', num_colour=None, legend_loc='best', num_legend_col=3, all_legend=False, height=6, aspect=2, show_bar_value=False, bar_value_rotation=0, x_tick_rotation=0, y_tick_rotation=0, **kwargs)
data_processing.plot_utilities.plot_heatmap(data, title='', y_label='', x_label='', colour='RdBu_r', num_colour=None, custom_boundaries=None, center_val=None, show_cbar=True, annotate=True, num_format='.3f', annot_font_size=8, linewidth=0.5, linecolour=None, x_tick_rotation=0, y_tick_rotation=0, square=True)
data_processing.plot_utilities.plot_line_bar_chart(data, bar_data, x='index', y='value', hue='variable', title='', y_label='', x_label='', colour='Paired', style=None, size=None, bar_x='index', bar_y='value', bar_y_label='', bar_width=100, bar_axis_step=None, bar_axis_range=None, bar_alpha=0.5, bar_color='tab:blue', legend_loc='best', num_legend_col=3, axislabel_fontsize=12, ticklabel_fontsize=12, xtick_rotation=0)
data_processing.plot_utilities.plot_line_chart(data, x='index', y='value', hue='group', style=None, size=None, title='', y_label='', x_label='', colour='Paired')
data_processing.plot_utilities.plot_lmplot_chart(data, x='index', y='value', hue='group', col=None, title='', y_label='', x_label='', xtick_labels=None, share_x=False, share_y=False, num_col=None, colour='Paired', legend_loc='best', num_legend_col=3, scatter=True, sizes=(10, 10), order=2, ci=16, x_estimator=<function mean>, x_ci=None, **kwargs)
data_processing.plot_utilities.plot_relplot(data, x='index', y='value', hue='group', row=None, col='metric', kind='line', line_width=2, ci=None, err_style='band', title='', y_label='', x_label='', share_x=False, share_y=False, num_col=2, colour='Paired', legend_loc='best', num_legend_col=3, all_legend=False)
data_processing.plot_utilities.plot_scatter_chart(data, x='index', y='value', hue='group', size='metric', title='', y_label='', x_label='', colour='Paired')
data_processing.plot_utilities.plot_strip_chart(data, x='index', y='value', hue='group', title='', y_label='', x_label='', colour='Paired')
data_processing.plot_utilities.plot_swarm_chart(data, x='index', y='value', hue='group', size=5, title='', y_label='', x_label='', colour='Paired')
data_processing.plot_utilities.plot_table(data, title='')

Generates a table from a Dataframe.

data_processing.plot_utilities.plot_violin_chart(data, x='index', y='value', hue=None, title='', y_label='', x_label='', colour='Paired', inner='box', legend=False, legend_loc='best', x_tick_rotation=0)

Stats Utilities