From 8fbae32111bae1aab595fa642b87d4e9c25aca3a Mon Sep 17 00:00:00 2001 From: Deepak Mallubhotla Date: Sun, 19 May 2024 22:09:52 -0500 Subject: [PATCH] doc: some commenting and logging changes --- deepdog/subset_simulation/subset_simulation_impl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deepdog/subset_simulation/subset_simulation_impl.py b/deepdog/subset_simulation/subset_simulation_impl.py index 3e23669..464154e 100644 --- a/deepdog/subset_simulation/subset_simulation_impl.py +++ b/deepdog/subset_simulation/subset_simulation_impl.py @@ -358,8 +358,8 @@ class SubsetSimulation: _logger.info( f"final threshold cost: {threshold_cost}, at P = (1 / {self.n_s})^{self.m_max + 1}" ) - for a in all_chains[-10:]: - _logger.info(a) + # for a in all_chains[-10:]: + # _logger.info(a) # for prob, prob_cost in probs_list: # _logger.info(f"\t{prob}: {prob_cost}") probs_list.sort(key=lambda c: c[0], reverse=True) @@ -519,11 +519,11 @@ def coalesce_ss_results( ] ) - _logger.warning(estimated_likelihoods) + _logger.info(estimated_likelihoods) geometric_mean_estimated_likelihoods = numpy.exp( numpy.log(estimated_likelihoods).mean() ) - _logger.warning(geometric_mean_estimated_likelihoods) + _logger.info(geometric_mean_estimated_likelihoods) arithmetic_mean_estimated_likelihoods = estimated_likelihoods.mean() result = MultiSubsetSimulationResult(