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 (eq. to feature extraction).
dataset/ETHPy150Open fchollet/keras/examples/mnist_siamese_graph.py/create_base_network