#NEWLINE# def __init__( self , input_layer ) : #NEWLINE# #INDENT# self . input_layer = input_layer #NEWLINE# self . input_shape = self . input_layer . get_output_shape ( ) #NEWLINE# self . params = [ ] #NEWLINE# self . bias_params = [ ] #NEWLINE# self . mb_size = input_layer . input_layer . mb_size #NEWLINE# self . target_var = T . matrix ( ) #NEWLINE# self . question_slices = [ slice ( 0 , 3 ) , slice ( 3 , 5 ) , slice ( 5 , 7 ) , slice ( 7 , 9 ) , slice ( 9 , 13 ) , slice ( 13 , 15 ) , slice ( 15 , 18 ) , slice ( 18 , 25 ) , slice ( 25 , 28 ) , slice ( 28 , 31 ) , slice ( 31 , 37 ) ] #NEWLINE# self . normalisation_mask = theano . shared ( self . generate_normalisation_mask ( ) ) #NEWLINE# self . scaling_sequence = [ ( slice ( 3 , 5 ) , 1 ) , ( slice ( 5 , 13 ) , 4 ) , ( slice ( 15 , 18 ) , 0 ) , ( slice ( 18 , 25 ) , 13 ) , ( slice ( 25 , 28 ) , 3 ) , ( slice ( 28 , 37 ) , 7 ) ]