Compare commits

...

3 Commits
1.0.0 ... 1.0.1

Author SHA1 Message Date
d28c190816 chore(release): 1.0.1
All checks were successful
gitea-physics/deepdog/pipeline/head This commit looks good
gitea-physics/deepdog/pipeline/tag This commit looks good
2024-05-01 21:08:00 -05:00
0262de060f nix: adds node for npx in dev shell 2024-05-01 21:07:48 -05:00
e25db1e0f6 fix: fixes issue of zero division error with no successes for anything
All checks were successful
gitea-physics/deepdog/pipeline/head This commit looks good
2024-05-01 20:37:08 -05:00
4 changed files with 18 additions and 3 deletions

View File

@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.0.1](https://gitea.deepak.science:2222/physics/deepdog/compare/1.0.0...1.0.1) (2024-05-02)
### Bug Fixes
* fixes issue of zero division error with no successes for anything ([e25db1e](https://gitea.deepak.science:2222/physics/deepdog/commit/e25db1e0f677e8d9a657fa1631305cc8f05ff9ff))
## [1.0.0](https://gitea.deepak.science:2222/physics/deepdog/compare/0.8.1...1.0.0) (2024-05-01)

View File

@@ -14,6 +14,8 @@ import multiprocessing
_logger = logging.getLogger(__name__)
ANTI_ZERO_SUCCESS_THRES = 0.1
@dataclass
class DirectMonteCarloResult:
@@ -292,7 +294,11 @@ class DirectMonteCarloRun:
num_models = len(self.model_name_pairs)
success_weight = sum(
[
(res.successes / res.monte_carlo_count) / num_models
(
max(ANTI_ZERO_SUCCESS_THRES, res.successes)
/ res.monte_carlo_count
)
/ num_models
for res in results
]
)
@@ -303,7 +309,8 @@ class DirectMonteCarloRun:
f"{res.model_name}_success": res.successes,
f"{res.model_name}_count": res.monte_carlo_count,
f"{res.model_name}_prob": (
res.successes / res.monte_carlo_count
max(ANTI_ZERO_SUCCESS_THRES, res.successes)
/ res.monte_carlo_count
)
/ (num_models * success_weight),
}

View File

@@ -36,6 +36,7 @@
self.packages.${system}.deepdogEnv
self.packages.${system}.deepdogApp
pkgs.just
pkgs.nodejs
];
shellHook = ''
export DO_NIX_CUSTOM=1

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "deepdog"
version = "1.0.0"
version = "1.0.1"
description = ""
authors = ["Deepak Mallubhotla <dmallubhotla+github@gmail.com>"]