Skip to content

Commit

Permalink
fix typo and error
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomkhj committed Nov 6, 2023
1 parent 257f725 commit c14c9d9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions constrained_linear_regression/constrained_multi_layer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ def _constrained_fit(self, X, y, incremental=False):
]

# Run the Stochastic optimization solver
assert self.solver in ["sgd", "adam"], "ConstrainMLP only support sgd and adam optimizer.
self._fit_constrained_stochastic(
X,
y,
activations,
deltas,
coef_grads,
intercept_grads,
layer_units,
incremental,
)
assert self.solver in ["sgd", "adam"], "ConstrainMLP only support sgd and adam optimizer."
self._fit_constrained_stochastic(
X,
y,
activations,
deltas,
coef_grads,
intercept_grads,
layer_units,
incremental,
)

# validate parameter weights
weights = chain(self.coefs_, self.intercepts_)
Expand Down

0 comments on commit c14c9d9

Please sign in to comment.