retirada de celulas NaN por meio de reatribuíção da variável data

This commit is contained in:
matheus_cascalho 2020-12-07 15:37:35 -03:00
parent 27b55b1fde
commit 20a4b9dfef

View File

@ -60,7 +60,7 @@ class SOMTransformation(Transformation):
percentage_train: float = .7,
leaning_rate: float = 0.01,
epochs: int = 10000):
data.dropna(inplace=True)
data = data.dropna()
self.data = data.values
limit = round(len(self.data) * percentage_train)
train = self.data[:limit]