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

Issue when identifying prior matrix in pthp.py #4

Open
auto-Dog opened this issue Aug 2, 2023 · 0 comments
Open

Issue when identifying prior matrix in pthp.py #4

auto-Dog opened this issue Aug 2, 2023 · 0 comments

Comments

@auto-Dog
Copy link

auto-Dog commented Aug 2, 2023

Hi. In your algorithm core code, I am confused about the following line:

def check_prior(self):
return [(i, j) for i, j in product(range(len(self._event_names)),
range(len(self._event_names))) if self._prior_matrix[i][j] == -1]

In prior matrix, relevant events are represent as 1, rather than -1. So this function may not identify the priori edge. The debug result also shows that the function check_prior() returns empty list with such setting.

@auto-Dog auto-Dog changed the title Issue when identifying priori matrix in pthp.py Issue when identifying prior matrix in pthp.py Aug 2, 2023
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

No branches or pull requests

1 participant