Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def check_inputs(self, value):
super().check_inputs(value)
TruncationAndFoldingMixin.check_inputs(self, value)
return True
def randomise(self, value):
TruncationAndFoldingMixin.check_inputs(self, value)
noisy_value = super().randomise(value)
return self._truncate(noisy_value)
def randomise(self, value):
TruncationAndFoldingMixin.check_inputs(self, value)
noisy_value = super().randomise(value)
return int(np.round(self._fold(noisy_value)))
def check_inputs(self, value):
super().check_inputs(value)
TruncationAndFoldingMixin.check_inputs(self, value)
return True
def randomise(self, value):
TruncationAndFoldingMixin.check_inputs(self, value)
noisy_value = super().randomise(value)
return self._fold(noisy_value)
def randomise(self, value):
TruncationAndFoldingMixin.check_inputs(self, value)
noisy_value = super().randomise(value)
return int(np.round(self._truncate(noisy_value)))