Closed YoelPH closed 7 months ago
Edit:
there is a similar bug in bilateral.py
https://github.com/rmnldwg/lymph/blob/main/lymph/models/bilateral.py
in Line 522:
diagnose_given_state = diagnose_encoding @ self.observation_matrix
I transposed the observation matrix again to fix the issue
Good catch! I've fixed it in both the uni- and the bilateral model and added tests. The fixes live in the dev branch for now. Will be merged with the next release.
There is an issue in the
comp_diagnose_encoding
function in [unilateral.py](https://github.com/rmnldwg/lymph/blob/main/lymph/models/unilateral.py.in line 876 we have:
This does not work as the two matrices do not have matching dimensions. After going through all the underlying code I assume that the dimensions of the
self.observation_matrix
are simply transposed. The following fix makes the function functional: