You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
143 B
8 lines
143 B
1 year ago
|
import numpy as np
|
||
|
|
||
|
def standardization(data):
|
||
|
mu = np.mean(data, axis=0)
|
||
|
sigma = np.std(data, axis=0)
|
||
|
return (data - mu) / sigma
|
||
|
|