Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

started working on distance based probabilities #87

Merged
merged 33 commits into from
Nov 22, 2023
Merged

Conversation

godenymarta
Copy link
Collaborator

@godenymarta godenymarta commented May 3, 2023

Description

Include distance-based transfer probabilities based on RDF. Expand sim_pt.py with r_min (cuton) for each allowed update pair and add a function (None/linear/cosine) to StateUpdate to simulate.

Todos

Notable points that this PR has either accomplished or will accomplish.

  • different functions (default: None -> step from prob to 0 at rmax; linear; cosine)
  • testing

@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Merging #87 (ab88d5d) into main (831f6ff) will decrease coverage by 1.90%.
Report is 5 commits behind head on main.
The diff coverage is 39.13%.

❗ Current head ab88d5d differs from pull request most recent head 4f30f12. Consider uploading reports for the commit 4f30f12 to get more accurate results

Additional details and impacted files

@florianjoerg florianjoerg self-requested a review May 4, 2023 11:53
@@ -102,7 +104,7 @@ def _update(self, candidates: list[tuple], nr_of_steps: int) -> None:
pass

def _adapt_probabilities(
self, to_adapt=list[tuple[str, int, frozenset[str]]]
self, to_adapt=list[tuple[str, int, frozenset[str]]], K=int
Copy link
Member

@florianjoerg florianjoerg Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not add K to the function signature here. It is already accessible inside the class (as defined in line 65) via self.K. Just use self.K in line 146 for the factor variable

@godenymarta godenymarta merged commit 55e5103 into main Nov 22, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants