From 20a4b9dfef01e6944703da09caa13d824487503e Mon Sep 17 00:00:00 2001 From: matheus_cascalho Date: Mon, 7 Dec 2020 15:37:35 -0300 Subject: [PATCH] =?UTF-8?q?retirada=20de=20celulas=20NaN=20por=20meio=20de?= =?UTF-8?q?=20reatribu=C3=AD=C3=A7=C3=A3o=20da=20vari=C3=A1vel=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyFTS/common/transformations/som.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyFTS/common/transformations/som.py b/pyFTS/common/transformations/som.py index 364ae3e..456cc16 100644 --- a/pyFTS/common/transformations/som.py +++ b/pyFTS/common/transformations/som.py @@ -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]