Augmentation (Core)#
alts.core.oracle.augmentation
- class Augmentation(*args: Any, **kwargs: Any)[source]#
Bases:
DataSource
Augmentation(data_source) | Description | An Augmentation is a wrapper around a Data Source which modifies its in- or outputs depending on the implementation. | One of its uses is to add distortion to a Data Source.
- Parameters:
query_shape (tuple of ints) – The expected shape of the queries
result_shape (tuple of ints) – The expected shape of the results
- data_source: DataSource = NOTSET#
- property exhausted: bool#
- DescriptionSee
DataSource.exhausted()
.- Returns:
Whether the augmented
DataSource
has been exhausted- Return type:
boolean
- query(self, queries) data_points [source]#
- DescriptionModifies the query before passing it on to
DataSource.query()
.
- query_constrain(self) QueryConstrain [source]#
- DescriptionReturns its own query constrains.
- Returns:
Constrains around queries
- Return type:
- property query_shape#
- DescriptionReturns the accepted query shape of the Data Source.
- Returns:
Accepted query shape
- Return type:
- result_constrain(self) ResultConstrain [source]#
- DescriptionReturns its own result constrains.
- Returns:
Constrains around results
- Return type:
ResultConstrain
- property result_shape: Tuple[int, ...]#
- DescriptionReturns the accepted result shape of the Data Source.
- Returns:
Accepted query shape
- Return type: