raise ValueError("All values should be less than 1.0")
if np.any(X < 0.0):
raise ValueError("All values should be greater than 0.0")
return X * (self.high - self.low) + self.low
class Pipeline(Transformer):
After Change
raise ValueError("All values should be greater than 0.0")
X_orig = X * (self.high - self.low) + self.low
if self.is_int:
return np.round(X_orig).astype(np.int)
return X_orig
class Pipeline(Transformer):