

def build_fn_reg(hidden_dims=50):
    model = Sequential()
    model.add(Dense(input_dim, input_shape=(input_dim,)))
    model.add(Activation('relu'))
    model.add(Dense(hidden_dims))
    model.add(Activation('relu'))
    model.add(Dense(1))
    model.add(Activation('linear'))
    model.compile(optimizer='sgd', loss='mean_absolute_error', metrics=['accuracy'])
    return model

dataset/ETHPy150Open fchollet/keras/tests/keras/wrappers/test_scikit_learn.py build_fn_reg/original