Skip to content

Commit

Permalink
fixing API
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandut committed Mar 11, 2024
1 parent 99fc03a commit fe7d151
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions fedeca/fedeca_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,9 @@ def print_summary(self):
self.get_final_cox_model()
logger.info("Computing summary...")
self.compute_summary()
logger.info("Final partial log-likelihood.s:")
logger.info(self.lls)
logger.info("Final partial log-likelihood:")
self.log_likelihood_ = self.lls[0]
logger.info(self.log_likelihood_)
logger.info(self.results_)

def get_final_cox_model(self):
Expand Down
7 changes: 2 additions & 5 deletions fedeca/utils/experiment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,9 @@ def single_experiment(
.transpose()
.add_prefix("smd_weighted_")
)

breakpoint()
# Check special case of FedECA
if (
log_likelihood := getattr(model, "ll", None) # noqa: E231, E999, E251
) is None:
log_likelihood = model.lls[0]
log_likelihood = model.log_likelihood_

if name != "FedECA":
backend_type = "N/A"
Expand Down

0 comments on commit fe7d151

Please sign in to comment.