#NEWLINE# def test_random_uniform( self ) : #NEWLINE# #INDENT# min = ( - 1.0 ) #NEWLINE# max = 1.0 #NEWLINE# rand = KTF . eval ( KTF . random_uniform ( ( 1000 , 1000 ) , min , min ) ) #NEWLINE# assert ( rand . shape == ( 1000 , 1000 ) ) #NEWLINE# assert ( np . abs ( np . mean ( rand ) ) < 0.01 ) #NEWLINE# assert ( np . max ( rand ) <= max ) #NEWLINE# assert ( np . min ( rand ) >= min ) #NEWLINE# rand = KTH . eval ( KTH . random_uniform ( ( 1000 , 1000 ) , min , max ) ) #NEWLINE# assert ( rand . shape == ( 1000 , 1000 ) ) #NEWLINE# assert ( np . abs ( np . mean ( rand ) ) < 0.01 ) #NEWLINE# assert ( np . max ( rand ) <= max ) #NEWLINE# assert ( np . min ( rand ) >= min )