Skip to content
Snippets Groups Projects
Commit ab00315e authored by Florian Gawrilowicz's avatar Florian Gawrilowicz
Browse files

Splitting out normalization

parent c4496029
Branches
No related tags found
No related merge requests found
utils.py 0 → 100644
import numpy as np
def normalize(data_n, mean=0, std=1):
data_n -= np.mean(data_n)
emp_std = np.std(data_n)
if np.isfinite(1. / emp_std):
data_n /= emp_std
return data_n * std + mean
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment