@@ -479,15 +479,15 @@ def test_hyperalignment():
479479 assert d1 .shape () == bout ['transformed' ].shape
480480 assert d1 .shape () == bout ['common_model' ].shape
481481 assert d1 .shape ()[1 ] == bout ['transformation_matrix' ].shape ()[0 ]
482- btransformed = np .dot (d1 .data , bout ['transformation_matrix' ].data )
482+ btransformed = np .dot (d1 .data , bout ['transformation_matrix' ].data . T )
483483 np .testing .assert_almost_equal (0 , np .sum (bout ['transformed' ].data - btransformed ))
484484
485485 # Test probabilistic brain_data
486486 bout = d1 .align (out ['common_model' ], method = 'probabilistic_srm' )
487487 assert d1 .shape () == bout ['transformed' ].shape
488488 assert d1 .shape () == bout ['common_model' ].shape
489489 assert d1 .shape ()[1 ] == bout ['transformation_matrix' ].shape ()[0 ]
490- btransformed = np .dot (d1 .data , bout ['transformation_matrix' ].data )
490+ btransformed = np .dot (d1 .data , bout ['transformation_matrix' ].data . T )
491491 np .testing .assert_almost_equal (0 , np .sum (bout ['transformed' ].data - btransformed ))
492492
493493 # Test procrustes brain_data
@@ -520,15 +520,15 @@ def test_hyperalignment():
520520 assert d1 .shape () == bout ['transformed' ].shape
521521 assert d1 .shape () == bout ['common_model' ].shape
522522 assert d1 .shape ()[0 ] == bout ['transformation_matrix' ].shape ()[0 ]
523- btransformed = np .dot (d1 .data .T , bout ['transformation_matrix' ].data )
523+ btransformed = np .dot (d1 .data .T , bout ['transformation_matrix' ].data . T )
524524 np .testing .assert_almost_equal (0 , np .sum (bout ['transformed' ].data - btransformed .T ))
525525
526526 out = align (data , method = 'probabilistic_srm' , axis = 1 )
527527 bout = d1 .align (out ['common_model' ], method = 'probabilistic_srm' , axis = 1 )
528528 assert d1 .shape () == bout ['transformed' ].shape
529529 assert d1 .shape () == bout ['common_model' ].shape
530530 assert d1 .shape ()[0 ] == bout ['transformation_matrix' ].shape ()[0 ]
531- btransformed = np .dot (d1 .data .T , bout ['transformation_matrix' ].data )
531+ btransformed = np .dot (d1 .data .T , bout ['transformation_matrix' ].data . T )
532532 np .testing .assert_almost_equal (0 , np .sum (bout ['transformed' ].data - btransformed .T ))
533533
534534 out = align (data , method = 'procrustes' , axis = 1 )
0 commit comments