1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-13 00:16:44 +00:00

add files

This commit is contained in:
2020-04-30 00:28:15 +08:00
parent 4ba9d120d5
commit 479213e665
2 changed files with 3 additions and 2 deletions

View File

@@ -72,9 +72,10 @@ class Data:
self.data_num = self.data.shape[0]
self.train_num = int(self.data_num * self.config.train_data_rate)
print(self.data)
self.mean = np.mean(self.data, axis=0)
print(1)
print(self.data)
self.std = np.std(self.data, axis=0)
self.norm_data = (self.data - self.mean) / self.std
print(2)