#NEWLINE# def testPseudoInverse( self ) : #NEWLINE# #INDENT# i = self . v1 . dot ( self . w1 ) #NEWLINE# self . assertTrue ( ( np . abs ( ( np . mean ( i . diagonal ( ) ) - 1 ) ) < epsilon ) ) #NEWLINE# i = self . w1 . dot ( self . v1 ) #NEWLINE# self . assertFalse ( ( np . abs ( ( np . mean ( i . diagonal ( ) ) - 1 ) ) < epsilon ) ) #NEWLINE# i = self . v2 . dot ( self . w2 ) #NEWLINE# self . assertTrue ( ( np . abs ( ( np . mean ( i . diagonal ( ) ) - 1 ) ) < epsilon ) ) #NEWLINE# i = self . w2 . dot ( i . v2 ) #NEWLINE# self . assertFalse ( ( np . abs ( ( np . mean ( i . diagonal ( ) ) - 1 ) ) < epsilon ) )