未验证 提交 418ef571 编写于 作者: W whs 提交者: GitHub

Fix nan error in quant_post_hpo (#1153)

上级 c95f309f
......@@ -141,6 +141,7 @@ def standardization(data):
"""standardization numpy array"""
mu = np.mean(data, axis=0)
sigma = np.std(data, axis=0)
sigma = 1e-13 if sigma == 0. else sigma
return (data - mu) / sigma
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册