seq = Sequential() eq.add(Dense(dense_size, input_shape=(input_dim,), activation='relu', kernel_initializer='lecun_uniform')) seq.add(Dropout(0.1)) seq.add(Dense((dense_size*2)/3, activation='relu', kernel_initializer='lecun_uniform')) seq.add(Dropout(0.1)) seq.add(Dense(dense_size/3, activation='relu', kernel_initializer='lecun_uniform')) # add seq.add(Dense((dense_size*2)/3, activation='relu', kernel_initializer='lecun_uniform')) seq.add(Dropout(0.1)) seq.add(Dense(dense_size, activation='relu', kernel_initializer='lecun_uniform'))