From 4daebb59d1e811b62b3579c3459c89aabe8c45a9 Mon Sep 17 00:00:00 2001 From: paulzierep Date: Wed, 29 Mar 2023 10:30:08 +0200 Subject: [PATCH] fixed bug in PCA --- DM.py | 1 - 1 file changed, 1 deletion(-) diff --git a/DM.py b/DM.py index 4802e4e..98ed1c9 100755 --- a/DM.py +++ b/DM.py @@ -165,7 +165,6 @@ def pca(self, ratio=0.99): pca = PCA(n_components=n_comp) pca.fit(self.X_train) - self.X = pca.transform(self.X) X_train = pca.transform(self.X_train) X_test = pca.transform(self.X_test)