You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dist takes entries in the form (ns,d) where update_feature_matrix returns ouputs of dimension (d,n). Either a transpose of Y or a change or the output type of update_feature_matrix would solve it.
I wanted to do a pr to fix but I could not run the test locally. Do you just make test ?
this is the error I encounter when I do that :
The text was updated successfully, but these errors were encountered:
Hello @youssef62 ,
thank you for your feedback. Indeed the transpose should be considered for the features. Tests were not helpful to spot this as we had n=d...
I also spotted other flaws in these functions, I will open an issue for this matter.
Then if you want to contribute to POT in the future: you'll need to make your install able to read .pyx file.
I think that running this command line in the POT folder should do the trick: python3 setup.py build_ext --inplace
And then it's explained in the POT doc how to go for a PR. Including local tests, pep8 etc. If you still have doubts you can check at the command lines to run tests in an existing PR ;)
Thank you for the quick reply. I also noticed that after adding the transpose, there were no errors but the results were always matrices with the same number on all entries.
Otherwise , do you know why I have that message when I run the tests ? should I ask this question in a discussion ?
I edited my previous message about your message error.
Then for your results, there might be many reasons that you should check to be sure that it is a bug and not just the intended behaviour:
epsilon plays a crucial role for entropic solvers. Note that using solver through **kwargs will use different entropic FGW solvers.
Describe the bug
When I call
entropic_fused_gromov_barycenters
, I have the following error :ValueError: shapes (10,1) and (10,1) not aligned: 1 (dim 1) != 10 (dim 0)
Screenshots
Code sample
Expected behavior
entropic_fused_gromov_barycenters
should act likefgw_barycenters
.Environment (please complete the following information):
pip
,conda
):pipOutput of the following code snippet:
macOS-12.5.1-arm64-arm-64bit
Python 3.11.5 (main, Aug 24 2023, 15:09:32) [Clang 14.0.0 (clang-1400.0.29.202)]
NumPy 1.26.0
SciPy 1.11.3
POT 0.9.1
Additional context
I think the cause of the problem is in lines 986,987 in
_bregman.py
dist
takes entries in the form(ns,d)
whereupdate_feature_matrix
returns ouputs of dimension(d,n)
. Either a transpose of Y or a change or the output type of update_feature_matrix would solve it.I wanted to do a pr to fix but I could not run the test locally. Do you just
make test
?this is the error I encounter when I do that :
The text was updated successfully, but these errors were encountered: