From 1cdf03014a03b7db6dfadd591c8369b1ecee5464 Mon Sep 17 00:00:00 2001 From: SurgeArrester Date: Sun, 28 Feb 2021 17:36:26 +0000 Subject: [PATCH] Fixed fit_transform PCA bug --- ElM2D/ElM2D.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ElM2D/ElM2D.py b/ElM2D/ElM2D.py index 9cf1cd9..b4cb4d5 100644 --- a/ElM2D/ElM2D.py +++ b/ElM2D/ElM2D.py @@ -170,7 +170,7 @@ def transform(self, how="UMAP", n_components=2): self.embedding = self.embedder.fit_transform(self.dm) elif how == "PCA": - self.embedding = self.PCA(n_comp=n_components) + self.embedding = self.PCA(n_components=n_components) return self.embedding diff --git a/setup.py b/setup.py index 79f8c4c..8b10bd8 100644 --- a/setup.py +++ b/setup.py @@ -2,13 +2,13 @@ setup( name = 'ElM2D', packages = ['ElM2D'], - version = '0.1.7', + version = '0.1.8', license='GPL3', description = 'A high performance mapping class to embed large datasets of ionic compositions with respect to the ElMD metric.', author = 'Cameron Hagreaves', author_email = 'cameron.h@rgreaves.me.uk', url = 'https://github.com/lrcfmd/ElM2D/', - download_url = 'https://github.com/lrcfmd/ElM2D/archive/0.1.7.tar.gz', + download_url = 'https://github.com/lrcfmd/ElM2D/archive/0.1.8.tar.gz', keywords = ['ChemInformatics', 'Materials Science', 'Machine Learning', 'Materials Representation'], install_requires=[ 'cython',