Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Susheel Busi
EukClassify
Commits
37fa924e
Commit
37fa924e
authored
Aug 27, 2021
by
Susheel Busi
Browse files
fixed PCA embedding
parent
08232b99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/helpers.py
scripts/helpers.py
+2
-2
No files found.
scripts/helpers.py
View file @
37fa924e
...
...
@@ -75,8 +75,8 @@ def create_kmeans_data(data, labels):
def
PCA_embedding
(
X
,
n
):
pca
=
PCA
(
n_components
=
n
)
X_freq
=
FREQ_transform
(
X
)
return
pca
.
fit_transform
(
X
_freq
)
#
X_freq = FREQ_transform(X)
return
pca
.
fit_transform
(
X
)
def
KMEANS_embedding
(
X
,
km
):
"""Transforms the counts contained in the data X into K-means clustered frequencies."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment