Add S2CondS2GridDistribution: conditional distribution on S²×S²#1590
Add S2CondS2GridDistribution: conditional distribution on S²×S²#1590FlorianPfaff merged 8 commits intomainfrom
Conversation
Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/5ab618f7-210c-4d7c-a7d7-2406930e6fc2 Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/5ab618f7-210c-4d7c-a7d7-2406930e6fc2 Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining
|
4424230 to
1ebcdac
Compare
|
@copilot Do not use numpy functions, only use ones from pyrecest.backend (as other classes do) |
… test file Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/1f2766e8-1110-4de3-a516-b0205d621324 Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
Done in commit |
|
@copilot suppress the redefined-builtin error and fix the unused argument one ************* Module pyrecest.tests.distributions.test_s2_cond_s2_grid_distribution Your code has been rated at 10.00/10 |
Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/8f721113-58cd-484b-a086-b44f38831fd0 Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
Fixed in commit
|
|
@copilot It is failing with the pytorch backend, fix it junit_test_results_pytorch.xml - |
…rning) instead of simplefilter(\"error\") Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/1dd4271f-8e52-4d2f-8a36-a54a1b5e6e22 Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
Fixed in commit |

Python port of the MATLAB
S2CondS2GridDistribution— a conditional distributionf(a|b)over the Cartesian product of two 2-spheres, represented by grid values.New class:
S2CondS2GridDistributionSdCondSdGridDistribution, restricting the grid to embedding dimension 3 (grid.shape == (n_points, 3))fix_dimandmarginalize_outto returnSphericalGridDistributioninstead of the genericHypersphericalGridDistributionfrom_functionfactory delegates to the parent withdim=6(S²×S²) and wraps the resultTests
Mirrors the MATLAB
S2CondS2GridDistributionTestsuite:fix_dim(2, point).mean_direction()recovers the conditioning pointfix_dimandmarginalize_outreturnSphericalGridDistributioninstances