Beispiel #1
0
 def _internal_set_standardized_data(  # pylint: disable=unused-argument
         self: P,
         data: np.ndarray,
         reference: P,
         deterministic: bool = False) -> None:
     if data.size:
         raise errors.UnsupportedParameterOperationError(
             f"Import from standardized data space is not implemented for {self.name}"
         )
Beispiel #2
0
 def get_value_hash(self) -> tp.Hashable:
     """Hashable object representing the current value of the instance"""
     val = self.value
     if isinstance(val, (str, bytes, float, int)):
         return val
     elif isinstance(val, np.ndarray):
         return val.tobytes()
     else:
         raise errors.UnsupportedParameterOperationError(
             f"Value hash is not supported for object {self.name}")
Beispiel #3
0
 def _internal_get_standardized_data(self: P, reference: P) -> np.ndarray:
     raise errors.UnsupportedParameterOperationError(
         f"Export to standardized data space is not implemented for {self.name}"
     )