DataInt
- class aixd.data.DataInt(name: str, dim: int = 1, domain: Interval | None = None, unit: str | None = None, position: int | None = None, position_index: int | None = None, transformations: List[str] | List[DataObjectTransform] | None = None, dtype: str = 'int64', flag_split_perdim: bool = False)[source]
Bases:
DataDiscrete
Integer data type.
- Parameters:
name (str) – Name of the data object.
dim (int, optional, default=1) – Dimensionality of the data object, or different columns to perform the split on.
domain (Interval, optional, default=None) – Domain of the data object.
unit (str, optional, default=None) – Unit of the data object (e.g. m, kg. m^2, m/s^2 etc.). Use ^ to indicate powers (e.g. m^2), and _ to indicate subscripts (e.g. m_1).
position (int, optional, default=None) – Position of the data object in the vector.
position_index (int, optional, default=None) – Index of the data object in the vector.
transformations (Union[List[str], List[DataObjectTransform]], optional, default=None) – List of transformations to be applied to the data object.
dtype (str, optional, default=”int64”) – The dtype of the numpy are of the expected data matrix.
flag_split_perdim (bool, optional, default=False) – If True, object is split across dimensions in a DataBlock.
Methods
Class method to initialization a DataInt from a list of integers.
Tries to interfere the activation function for the output head, based on the last transformation.
Returns the loss function for approximating this feature.
Returns a fully-connected head for encoding and 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 a copy of the data object.
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.