paper preperations and notebooks, optuna callbacks

This commit is contained in:
Steffen Illium
2021-04-02 08:45:11 +02:00
parent abe870d106
commit faa27c3cf9
5 changed files with 26 additions and 15 deletions
+4
View File
@@ -52,6 +52,10 @@ class NormalizeLocal(object):
return f'{self.__class__.__name__}({self.__dict__})'
def __call__(self, x: np.ndarray):
x[np.isnan(x)] = 0
x[np.isinf(x)] = 0
mean = x.mean()
std = x.std() + 0.0001