experanto.utils.SessionConcatDataset
- class SessionConcatDataset(*args, **kwargs)[source]
Bases:
DatasetMemory-efficient concatenated dataset that reliably tracks sessions.
Methods
__init__(datasets[, session_names])Initialize the concatenated dataset with session tracking.
get_indices_for_session(session_name)Get all indices belonging to a given session.
get_session_for_idx(idx)Get the session name for a given index.
Get number of sessions and count of samples per session.