Skip to content

Commit

Permalink
Store variables modeling exponential and sum of exponential
Browse files Browse the repository at this point in the history
  • Loading branch information
pobonomo committed Oct 31, 2023
1 parent a130501 commit b6e2333
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gurobi_ml/sklearn/logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ def _multi_class_model(self, **kwargs):
return
if self.output_type == "probability":
exp_vars = self.gp_model.addMVar(outputvars.shape)
self.exp_vars = exp_vars
sum_vars = self.gp_model.addMVar((outputvars.shape[0]), lb=self.epsilon)
self.sum_vars = sum_vars
num_gc = self.gp_model.NumGenConstrs
for index in np.ndindex(outputvars.shape):
self.gp_model.addGenConstrExp(
Expand Down

0 comments on commit b6e2333

Please sign in to comment.