Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
f2b104f6
Commit
f2b104f6
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
remove debug prints in PCA analysis script
Former-commit-id: 8292a203cdc172f2adc2bc5aaa1e6ced28255420
parent
5ce2be2c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/management/commands/pca.py
+0
-2
0 additions, 2 deletions
ippisite/ippidb/management/commands/pca.py
with
0 additions
and
2 deletions
ippisite/ippidb/management/commands/pca.py
+
0
−
2
View file @
f2b104f6
...
...
@@ -51,8 +51,6 @@ class Command(BaseCommand):
x
=
StandardScaler
().
fit_transform
(
x
)
pca
=
PCA
(
n_components
=
2
)
principal_components
=
pca
.
fit_transform
(
x
)
print
(
pca
.
explained_variance_
)
print
(
pca
.
components_
)
variance_ratio
=
pd
.
Series
(
pca
.
explained_variance_ratio_
)
coef
=
np
.
transpose
(
pca
.
components_
)
cols
=
[
'
PC-
'
+
str
(
x
)
for
x
in
range
(
len
(
variance_ratio
))]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment