Skip to content

Commit

Permalink
Merge pull request #18 from dawe/master
Browse files Browse the repository at this point in the history
some compatibility with newest pandas
  • Loading branch information
gtca authored Apr 9, 2024
2 parents 1017c57 + 74f0004 commit 0934428
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mofapy2/core/BayesNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def precompute(self):
print("ELBO before training:")
print(
"".join(
["%s=%.2f " % (k, v) for k, v in elbo.drop("total").iteritems()]
["%s=%.2f " % (k, v) for k, v in elbo.drop("total").items()]
)
+ "\nTotal: %.2f\n" % elbo["total"]
)
Expand Down Expand Up @@ -330,7 +330,7 @@ def iterate(self):
+ "".join(
[
"%s=%.2f " % (k, v)
for k, v in elbo.iloc[i].drop("total").iteritems()
for k, v in elbo.iloc[i].drop("total").items()
]
)
)
Expand Down Expand Up @@ -718,7 +718,7 @@ def iterate(self):
+ "".join(
[
"%s=%.2f " % (k, v)
for k, v in elbo.iloc[i].drop("total").iteritems()
for k, v in elbo.iloc[i].drop("total").items()
]
)
)
Expand Down

0 comments on commit 0934428

Please sign in to comment.