HedTypeManager¶
- class HedTypeManager(event_manager)[source]
Methods
|
Create a variable manager for one tabular file for all type variables. |
|
|
|
Return a DataFrame of factor vectors for the indicated HED tag and values |
|
|
|
|
|
Return the HedTypeFactors a specified value and extension. |
|
Attributes
- HedTypeManager.__init__(event_manager)[source]¶
Create a variable manager for one tabular file for all type variables.
- Parameters:
event_manager (EventManager) – an event manager for the tabular file.
- Raises:
On errors such as unmatched onsets or missing definitions.
- HedTypeManager.get_factor_vectors(type_tag, type_values=None, factor_encoding='one-hot')[source]¶
Return a DataFrame of factor vectors for the indicated HED tag and values
- Parameters:
type_tag (str) – HED tag to retrieve factors for.
type_values (list or None) – The values of the tag to create factors for or None if all unique values.
factor_encoding (str) – Specifies type of factor encoding (one-hot or categorical).
- Returns:
DataFrame containing the factor vectors as the columns.
- Return type:
DataFrame or None
- HedTypeManager.get_type(type_tag)[source]¶
- Parameters:
type_tag (str) – HED tag to retrieve the type for
- Returns:
the values associated with this type tag
- Return type:
HedType or None
- HedTypeManager.get_type_tag_factor(type_tag, type_value)[source]¶
Return the HedTypeFactors a specified value and extension.
- Parameters:
type_tag (str or None) – HED tag for the type
type_value (str or None) – Value of this tag to return the factors for.
- HedTypeManager.types¶