def create_base_network(input_dim):
 seq = Sequential()
 seq.add(Dense(128, input_shape=(input_dim,), activation='relu'))
 seq.add(Dropout(0.1))
 seq.add(Dense(128, activation='relu'))
 seq.add(Dropout(0.1))
 seq.add(Dense(128, activation='relu'))
 return seq

def create_base_network ( input_dim ) : seq = Sequential ( ) seq . add ( Dense ( 128 , input_shape = ( input_dim , ) , activation = 'relu' ) ) seq . add ( Dropout ( 0.1 ) ) seq . add ( Dense ( 128 , activation = 'relu' ) ) seq . add ( Dropout ( 0.1 ) ) seq . add ( Dense ( 128 , activation = 'relu' ) ) return seq
base network to be shared .