DataCategorical
- class aixd.data.DataCategorical(name: str, domain: Options | None = None, position: int | None = None, position_index: int | None = None, dtype: str | None = None, flag_split_perdim: bool = False, **kwargs)[source]
- Bases: - DataDiscrete- Categorical data type. - Parameters:
- name (str) – Name of the data object. 
- domain (Options, optional) – Domain of the data object. 
- position (int, optional) – Position of the data object in the vector. 
- position_index (int, optional) – Index of the data object in the vector. 
- dtype (str, optional) – The dtype of the numpy are of the expected data matrix. 
- flag_split_perdim (bool, optional) – If True, object is split across dimensions in a DataBlock. 
 
 - Methods - Returns a copy of the data object. - Class method to for initialization from list of integers - Returns the activation function for approximating this feature. - Returns the loss function for approximating this feature. - Returns a fully-connected head with the appropriate number of in / out channels for encoding / decoding this feature - Returns the loss function for approximating this feature. - Inherited Methods - Adds the transformation at the end. - Check if the data is consistent with the defined domain. - Returns grid samples from the domain of the data object. - Returns if the passed name match with the name of the DataObject. - Inverse transformation of the data matrix according to specification DataObject.transformations. - Simple heuristic to determine if the data is transformed. - Plots the distribution of the passed data as a Barplot. - Adds the transformation at the start. - Prints an overview of the defined transformations. - Returns random samples from the domain of the data object. - Returns samples from the domain of the data object around the given centroid. - Transforms the data matrix according to specification DataObject.transformations. - Check if all transformations are fitted. - Updates the domain of the data object with the passed data.