mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 18:44:07 +08:00
[tune] PB2 - add small constant (#14118)
This commit is contained in:
committed by
GitHub
parent
5e763893ea
commit
ebb6e552d2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user