scope_rl.utils.MultipleLoggedDataset#
- class scope_rl.utils.MultipleLoggedDataset(action_type, path, save_relative_path=False)[source]#
This class contains paths to multiple logged datasets and returns logged_dataset.
- Parameters:
action_type ({"discrete", "continuous"}) – Type of the action space.
path (str) – Path to the directory. Either absolute or relative path is acceptable.
save_relative_path (bool, default=False.) –
Whether to save a relative path. If True, a path relative to the scope-rl directory will be saved. If False, the absolute path will be saved.
Note that this option was added in order to run examples in the documentation properly. Otherwise, the default setting (False) is recommended.
- Attributes:
- behavior_policy_names
- n_datasets
Methods
add(logged_dataset, behavior_policy_name)Save logged dataset.
get(behavior_policy_name, dataset_id)Load logged dataset.
Methods