Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
| @@ -317,7 +332,10 @@ def _compute_maps( | |||
| for _ in range(max_iter): | |||
| # Assign each sample to the best matching microstate | |||
| activation = maps.dot(data) | |||
pycrostates/utils/utils.py
Outdated
| return dist | ||
|
|
||
|
|
||
| def _gev(data, maps, segmentation): |
There was a problem hiding this comment.
this is only explained variance
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
This PR addresses also addresses #197 and #220, and brings a significant refactoring of the code. The main goal is to consolidate the distance metric into a single function, which helps avoid confusion between different distance definitions (e.g., Euclidean, correlation, etc.). This refactor also facilitates the introduction of the Key improvements: A single function now handles all distance metric calculations, making the code more maintainable and flexible. In my testing, the results from the tutorial builds remain consistent with the previous behavior when |
#160
stdorrmsTODO: