未验证 提交 59f08049 编写于 作者: rictjo's avatar rictjo 提交者: GitHub

Not singular yet

An Augmented Reduction Decomposition method based on Golubs SVD
上级 65e3c6c8
......@@ -152,6 +152,20 @@ def Householder_transformation ( A ):
P .append([P1,A1,Q1])
return ( A1 , P )
def AugumentedReducedDecomposition ( A ) :
PAQ = Householder_transformation(A)[1]
U = None
V = None
S = None
for p in PAQ :
if U is None :
U = p[ 0]
V = p[-1]
else :
U = np.dot( U , p[ 0] )
V = np.dot( V , p[-1] )
S = PAQ[-1][1]
return ( U,S,V.T )
from sklearn.decomposition import PCA
dimred = PCA ( n_components = 1 )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册