forked from denniscwylie/maclearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPCA.py
33 lines (23 loc) · 873 Bytes
/
PCA.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import matplotlib.pyplot as plt
import MaclearnUtilities
from MaclearnUtilities import safeFactorize, ggpca
plt.ion()
import RestrictedData
xnorms = RestrictedData.xnorms
annots = RestrictedData.annots
ys = RestrictedData.ys
## -----------------------------------------------------------------
plt.close()
ggpca(xnorms['shen'], annots['shen']['System'],
rlab=True,
cshow=0, colscale=['firebrick', 'goldenrod', 'lightseagreen',
'darkorchid', 'darkslategray', 'dodgerblue'])
plt.close()
ggpca(xnorms['shen'], annots['shen']['System'],
rlab=True, clab=True,
cshow=25, clightalpha=0.1,
colscale=['firebrick', 'goldenrod', 'lightseagreen',
'darkorchid', 'darkslategray', 'dodgerblue', 'gray'])
plt.close()
ggpca(xnorms['patel'], ys['patel'],
rlab=False, clab=True, cshow=10, clightalpha=0)