Skip to content

Commit

Permalink
Bugfix for Lagrangian Constraint for MEM
Browse files Browse the repository at this point in the history
  • Loading branch information
justanothergithubber committed Feb 15, 2019
1 parent 8208633 commit c1806da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="mdmpy",
version="0.0.15.15",
version="0.0.15.16",
author="mdmpy Authors",
author_email="mdmpyatgithub@gmail.com",
description="A package that implements Marginal Distribution Models (MDMs)",
Expand Down
4 changes: 2 additions & 2 deletions src/mdmpy/mdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def _lag_cons(model, i):
# MEM
if heteroscedastic and use_ASCs and self._cdf == util.exp_cdf:
lhs_sum_expr = sum(aml.exp(model.alpha[k]*(sum(
model.ASC[k]+
model.beta[l]*self._X[i][k][l] for l in model.L)-model.lambda_[i])) for k in model.K)
model.beta[l]*self._X[i][k][l] for l in model.L)+
model.ASC[k]-model.lambda_[i])) for k in model.K)

### TODO Figure out best way to write out the different cases
elif heteroscedastic and self._cdf == util.exp_cdf:
Expand Down

0 comments on commit c1806da

Please sign in to comment.