def build_model(self):
     model = build_1layer_perceptron(
         params["num_neurons_p"], params["learning_rate_p"], params["momentum_p"], params["l2_reg_p"]
     )
     return model
 def build_model(self):
     l2_reg = params["l2_reg"] if args.with_l2_regularization else 0.0
     model = build_1layer_perceptron(round(params["num_neurons"]),
                                     params["learning_rate"], 0.0,
                                     l2_reg)
     return model