#NEWLINE# def test_trust_region_3( self ) : #NEWLINE# #INDENT# X = pandas . DataFrame ( [ [ ( - 0.25091976 ) , 0.90142861 ] , [ 0.46398788 , 0.19731697 ] , [ ( - 0.68796272 ) , ( - 0.68801096 ) ] , [ ( - 0.88383278 ) , 0.73235229 ] , [ 0.20223002 , 0.41614516 ] ] ) #NEWLINE# y = pandas . Series ( [ 1 , ( - 1 ) , ( - 1 ) , ( - 1 ) , 1 ] ) #NEWLINE# C = ( ( 1.0 / len ( res ) ) / 0.01 ) #NEWLINE# res = self . solve ( X , y , 1 , C ) #NEWLINE# numpy . testing . assert_allclose ( res . weights , [ 1.55340616 , 1.28486523 ] )