PAMAP2

class cl_gym.benchmarks.PAMAP2(num_tasks: int = 8, per_task_examples: Optional[int] = None, per_task_joint_examples: Optional[int] = 0, per_task_memory_examples: Optional[int] = 0, shuffle_subjects=True)[source]

Bases: cl_gym.benchmarks.base.Benchmark

PAMAP2 benchmark: activity recognition with at most 8 tasks. This is a time-series benchmark.

load_datasets()[source]

Loading datasets from file.

precompute_memory_indices()[source]

For each task, (randomly) computes the indices of the subset of data points in the task’s dataset. Then, once load_memory() method is called, uses these indices to return a PyTorch Subset dataset. .. note:: This method will be called only if the benchmark is initiated with per_task_memory_examples.