[tune] PB2 - add small constant (#14118)

This commit is contained in:
Jack Parker-Holder
2021-02-16 00:04:10 +00:00
committed by GitHub
parent 5e763893ea
commit ebb6e552d2
+1 -1
View File
@@ -75,7 +75,7 @@ def normalize(data, wrt):
which can be specified.
"""
return (data - np.min(wrt, axis=0)) / (
np.max(wrt, axis=0) - np.min(wrt, axis=0))
np.max(wrt, axis=0) - np.min(wrt, axis=0) + 1e-8)
def standardize(data):