|
| def | __init__ (self, total_gens=500) |
| |
| def | load_exp_data (self, folder) |
| |
| def | plot_curves (self, data, title, labels, y_axis, axes, use_std=False, gen=True) |
| |
| def | plot_violins (self, data, title, labels, y_axis, axes) |
| |
| def | mwu (self, coverage_data, names) |
| |
| def | holm_bonferroni (self, p_values) |
| |
| def plot.GenPlot.__init__ |
( |
|
self, |
|
|
|
total_gens = 500 |
|
) |
| |
Constructor
:param total_gens: Total generations to plot
| def plot.GenPlot.holm_bonferroni |
( |
|
self, |
|
|
|
p_values |
|
) |
| |
Holm-Bonferroni method calculator. Prints the correlation between the methods
:param p_values: MWU p values
| def plot.GenPlot.load_exp_data |
( |
|
self, |
|
|
|
folder |
|
) |
| |
Function to load experimental data to plot
:param folder: Folder path in which the data are
:return: If path does not exist: None, None, None. If the path exists: coverage, gen_surprise, archive_size
| def plot.GenPlot.mwu |
( |
|
self, |
|
|
|
coverage_data, |
|
|
|
names |
|
) |
| |
Mann-Whitney U test calculator
:param coverage_data: Data on which to calculate the test
:param names: Methods names
:return:
| def plot.GenPlot.plot_curves |
( |
|
self, |
|
|
|
data, |
|
|
|
title, |
|
|
|
labels, |
|
|
|
y_axis, |
|
|
|
axes, |
|
|
|
use_std = False, |
|
|
|
gen = True |
|
) |
| |
Plot the curves of the data
:param data: List of data lists. Dimensions are: [method, seed, gen]
:param title: Title of the graph
:param labels: Labels of each line
:param y_axis: Label of y axis
:param axes: Pyplot axes
:param use_std: Flag to choose if to use std deviation or min_max for the error bands
:param gen: Generations or number of agents along the x axis
| def plot.GenPlot.plot_violins |
( |
|
self, |
|
|
|
data, |
|
|
|
title, |
|
|
|
labels, |
|
|
|
y_axis, |
|
|
|
axes |
|
) |
| |
Plot violins plots
:param data: List of data lists. Dimensions are: [method, seed, gen]
:param title: Graph title
:param labels: Labels of each line
:param y_axis: Label of y axis
:param axes: Pyplot axes
The documentation for this class was generated from the following file: