sustaingym.envs.evcharging.plot_utils
#
This module implements utility functions for plotting.
Module Contents#
Functions#
|
Read reward results from csv files. |
|
Read reward results from csv files. |
|
Plot line plots for baselines over evaluation period. |
|
Plot violin plots for baselines. |
|
Plot reward curves separately for 'caltech' site in Summer 2021. |
Plot reward curves together for 'caltech' site in Summer 2021. |
- sustaingym.envs.evcharging.plot_utils.read_baseline(site: sustaingym.envs.evcharging.utils.SiteStr, period: sustaingym.envs.evcharging.utils.DefaultPeriodStr, algorithm: str) pandas.DataFrame [source]#
Read reward results from csv files.
- Parameters:
site (sustaingym.envs.evcharging.utils.SiteStr) –
period (sustaingym.envs.evcharging.utils.DefaultPeriodStr) –
algorithm (str) –
- Return type:
pandas.DataFrame
- sustaingym.envs.evcharging.plot_utils.read_rl(experiment_identifier: int, rl_algorithm: str, csv_file: str = 'test_results') pandas.DataFrame [source]#
Read reward results from csv files.
- Parameters:
experiment_identifier (int) –
rl_algorithm (str) –
csv_file (str) –
- Return type:
pandas.DataFrame
- sustaingym.envs.evcharging.plot_utils.plot_lines(site: sustaingym.envs.evcharging.utils.SiteStr, period: sustaingym.envs.evcharging.utils.DefaultPeriodStr) None [source]#
Plot line plots for baselines over evaluation period.
- Parameters:
site (sustaingym.envs.evcharging.utils.SiteStr) –
period (sustaingym.envs.evcharging.utils.DefaultPeriodStr) –
- Return type:
None
- sustaingym.envs.evcharging.plot_utils.plot_violins(site: sustaingym.envs.evcharging.utils.SiteStr, period: sustaingym.envs.evcharging.utils.DefaultPeriodStr) None [source]#
Plot violin plots for baselines.
- Parameters:
site (sustaingym.envs.evcharging.utils.SiteStr) –
period (sustaingym.envs.evcharging.utils.DefaultPeriodStr) –
- Return type:
None