leaspy.io.logs.visualization.plotter
Classes
Class defining some plotting tools. |
Module Contents
- class Plotter(output_path=None)
Class defining some plotting tools.
- Parameters:
- output_pathstr (optional)
Folder where plots will be saved. If None, default to current working directory.
- Parameters:
output_path (Optional[str])
- output_path = None
- plt_show()
- plot_mean_trajectory(model, *, n_pts=100, n_std_left=3, n_std_right=6, **kwargs)
- Parameters:
model (McmcSaemCompatibleModel)
n_pts (int)
n_std_left (int)
n_std_right (int)
- plot_mean_validity(model, results, **kwargs)
- Parameters:
model (McmcSaemCompatibleModel)
- Return type:
None
- plot_patient_trajectory(model, results, indices, **kwargs)
- Parameters:
model (McmcSaemCompatibleModel)
- Return type:
None
- plot_from_individual_parameters(model, indiv_parameters, timepoints, **kwargs)
- Parameters:
model (McmcSaemCompatibleModel)
indiv_parameters (leaspy.utils.typing.DictParamsTorch)
timepoints (Tensor)
- Return type:
None
- plot_correlation(results, parameter_1, parameter_2, cofactor=None, **kwargs)
- plot_patients_mapped_on_mean_trajectory(model, results, *, n_std_left=2, n_std_right=4, n_pts=100)
- Parameters:
model (McmcSaemCompatibleModel)
n_std_left (int)
n_std_right (int)
n_pts (int)
- Return type:
None
- classmethod plot_error(path, dataset, model, param_ind, colors=None, labels=None)
- Parameters:
model (McmcSaemCompatibleModel)
- classmethod plot_patient_reconstructions(path, dataset, model, param_ind, *, max_patient_number=5, attribute_type=None)
- Parameters:
path (str)
dataset (Dataset)
model (McmcSaemCompatibleModel)
param_ind (leaspy.utils.typing.DictParamsTorch)
max_patient_number (int)
- static plot_param_ind(path, param_ind)
- static plot_convergence_model_parameters(path, path_saveplot_1, path_saveplot_2, model)