- cleaner app.py
- fixed pandas Warning
- better learning method
-power-plant csv fixed
This commit is contained in:
2024-04-21 15:01:17 +02:00
parent f525cdf280
commit b4bd976a9d
4 changed files with 9595 additions and 9583 deletions

View File

@@ -22,9 +22,10 @@ class Dataset:
excepts.append("Bias")
for col in self.data:
if col not in excepts:
datacol = self.data[col]
index = self.data.columns.get_loc(col)
datacol = self.data.pop(col)
datacol = (datacol - datacol.mean()) / datacol.std()
self.data[col] = datacol
self.data.insert(index, col, datacol)
return self
def factorize(self, columns:list[str]=[]) -> Self: