Skip to content

Commit

Permalink
Fixed fit_transform PCA bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SurgeArrester committed Feb 28, 2021
1 parent f0dccc0 commit 1cdf030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ElM2D/ElM2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1cdf030

Please sign in to comment.