#NEWLINE# def test_calculate_adjacency_matrix_with_sigma_estimation_REGRESSION( self ) : #NEWLINE# #INDENT# sigmas = [ 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 ] #NEWLINE# data = numpy . array ( [ 1.0 , 4.0 , 6.0 , 2.0 , 5.0 , 3.0 , 9.0 , 7.0 , 2.0 , 4.0 , 1.0 , 1.0 , 9.0 , 3.0 , 8.0 ] ) #NEWLINE# matrix = CondensedMatrix ( data ) #NEWLINE# expected_W = numpy . array ( [ 0.60653066 , 0.00482794999 , 0.000123409804 , 0.449328964 , 0.0155038536 , 0.22313016 , 4.00652974e-05 , 0.00744658307 , 0.716531311 , 0.263597138 , 0.935506985 , 0.945959469 , 0.0174223746 , 0.687289279 , 0.118441829 ] ) #NEWLINE# numpy . testing . assert_almost_equal ( expected_W , SpectralTools . calculate_fully_connected_adjacency_matrix_with_sigma_estimation ( matrix , sigmas ) . get_data ( ) , 8 )