Repository navigation
Conversation
|
Investigated the failing CI run. Collection stops in the unchanged I reproduced the same failure with an import-only |
Constrain pyparsing below 3.3 in Python 3.9 development environments because Matplotlib 3.9 still uses parser aliases deprecated in pyparsing 3.3. Preserve warnings-as-errors and the existing test suite.
|
The current head Could a maintainer approve this run so the updated branch can receive the required validation? Thank you. |
|
@alanakbik : Could you review these issues?
Edit: Apart from this, the changes and test-cases look good to me. |
|
Thanks @plonerma. I have removed the development dependency override in 18473db. I also checked the completed CI run on 4982de7:
The mathematical implementation and test file are byte-for-byte unchanged from that run. The dependency override was only a workaround for the earlier Python 3.9/Matplotlib collection failure; its removal keeps that dependency-policy decision separate from #3702. The next run may therefore encounter that collection issue again, but this PR no longer changes the project's dependency constraints. |
|
Thanks @plonerma. The current head The CI run for this revision is waiting for maintainer approval ( |
Fixes #3702
Change
HyperbolicDistancecreates the time coordinate separately from the input spatial embeddings. Its Lorentz product must therefore use every input feature for the spatial dot product. This change removes the[:, 1:]slices and corrects the forward docstring. The existingarccoshnumerical floor is preserved.Regression coverage
The new native pytest cases cover:
Verification
Linux CPU, Python 3.12.14, PyTorch 2.14.1+cpu, transformers 4.49.0, pytest 8.1.1, black 24.2.0, ruff 0.7.4, mypy 1.15.0.
pytest tests/test_nn_distance.py --force-cpu -o addopts='': 14 failed / 2 passed before the fix; 16 passed after the fix, no skipsgit diff --check: passedPrototypicalDecoder(distance_function="hyperbolic")smoke check selects the identical prototype in float32 and float64; cross-entropy backpropagation produces finite input/prototype gradientspytest tests/test_nn_distance.py --force-cpu: 19 passed / 1 failed. The failure is the mypy session status from nine errors in unchanged filespytest flair: 254 passed / 5 failed, with the same nine mypy errors inflair/samplers.py,flair/datasets/text_image.py,flair/nn/model.py, andflair/trainers/trainer.py. Repeating this command on untouched master produced identical failure detailsThe full basic/integration suite and GPU checks were not run locally.