leaspy.io.logs.visualization.plotter module

class Plotter(output_path=None)

Bases: object

Class defining some plotting tools.

Parameters
output_pathstr (optional)

Folder where plots will be saved. If None, default to current working directory.

Methods

plot_convergence_model_parameters(path, ...)

plot_correlation

plot_distribution

plot_error

plot_from_individual_parameters

plot_mean_trajectory

plot_mean_validity

plot_param_ind

plot_patient_reconstructions

plot_patient_trajectory

plot_patients_mapped_on_mean_trajectory

plt_show

static plot_convergence_model_parameters(path, path_saveplot_1, path_saveplot_2, model)
plot_correlation(results, parameter_1, parameter_2, cofactor=None, **kwargs)
plot_distribution(results, parameter: str, cofactor=None, **kwargs)
classmethod plot_error(path, dataset, model, param_ind, colors=None, labels=None)
plot_from_individual_parameters(model, indiv_parameters, timepoints, **kwargs)
plot_mean_trajectory(model, *, attribute_type: Optional[str] = None, n_pts=100, n_std_left=3, n_std_right=6, **kwargs)
plot_mean_validity(model, results, **kwargs)
static plot_param_ind(path, param_ind)
classmethod plot_patient_reconstructions(path, dataset, model, param_ind, *, max_patient_number=5, attribute_type=None)
plot_patient_trajectory(model, results, indices, **kwargs)
plot_patients_mapped_on_mean_trajectory(model, results, *, n_std_left=2, n_std_right=4, n_pts=100)
plt_show()