#NEWLINE# def test_sampled_dropout_average( ) : #NEWLINE# #INDENT# inp = theano . tensor . matrix ( ) #NEWLINE# mlp = MLP ( nvis = 2 , layers = [ Linear ( 2 , 'h0' , irange = 0.8 ) , Linear ( 2 , 'h1' , irange = 0.8 ) , Softmax ( 3 , 'out' , irange = 0.8 ) ] ) #NEWLINE# out = sampled_dropout_average ( mlp , inp , 5 ) #NEWLINE# f = theano . function ( [ inp ] , out , allow_input_downcast = True ) #NEWLINE# f ( [ [ 2.3 , 4.9 ] ] )