Skip to content

Commit

Permalink
Add standardization > utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chizuchizu committed Mar 25, 2021
1 parent 24c6115 commit d6f1d0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def minmax(x):
return (x - min(x)) / (max(x) - min(x))


def standardization(x):
return (x - x.mean()) / x.std()


def is_int(x):
"""
学習されないBitが存在してInt変換時にエラーが出ることがあるので作った
Expand Down

0 comments on commit d6f1d0e

Please sign in to comment.