Update semantic.py
Correct errors.
@@ -21,6 +21,6 @@ def semantic(x, center=True, max_val=1.0):
Maximum value allowed in the input data.
"""
- if self.center:
+ if center:
return x * -1
- return self.max_val - x
+ return max_val - x
