Skip to content

Implement XTensorVariable version of RandomVariables

41d9be4
Select commit
Loading
Failed to load commit list.
Merged

Implement xarray-like labeled tensors and semantics #1411

Implement XTensorVariable version of RandomVariables
41d9be4
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 21, 2025 in 0s

81.99% (-0.03%) compared to f72d7e5

View this Pull Request on Codecov

81.99% (-0.03%) compared to f72d7e5

Details

Codecov Report

Attention: Patch coverage is 81.01695% with 336 lines in your changes missing coverage. Please review.

Project coverage is 81.99%. Comparing base (f72d7e5) to head (41d9be4).

Files with missing lines Patch % Lines
pytensor/xtensor/type.py 68.28% 108 Missing and 23 partials ⚠️
pytensor/xtensor/shape.py 77.52% 29 Missing and 31 partials ⚠️
pytensor/xtensor/indexing.py 75.60% 16 Missing and 14 partials ⚠️
pytensor/xtensor/basic.py 69.84% 16 Missing and 3 partials ⚠️
pytensor/xtensor/vectorization.py 83.89% 11 Missing and 8 partials ⚠️
pytensor/xtensor/reduction.py 82.50% 12 Missing and 2 partials ⚠️
pytensor/xtensor/rewriting/reduction.py 79.31% 7 Missing and 5 partials ⚠️
pytensor/xtensor/random.py 89.87% 5 Missing and 3 partials ⚠️
pytensor/xtensor/rewriting/basic.py 80.48% 8 Missing ⚠️
pytensor/xtensor/math.py 95.80% 4 Missing and 3 partials ⚠️
... and 8 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1411      +/-   ##
==========================================
- Coverage   82.01%   81.99%   -0.03%     
==========================================
  Files         214      231      +17     
  Lines       50439    52173    +1734     
  Branches     8907     9178     +271     
==========================================
+ Hits        41370    42779    +1409     
- Misses       6861     7088     +227     
- Partials     2208     2306      +98     
Files with missing lines Coverage Δ
pytensor/compile/mode.py 84.86% <100.00%> (+0.14%) ⬆️
pytensor/compile/ops.py 83.45% <100.00%> (-0.12%) ⬇️
pytensor/link/jax/dispatch/basic.py 84.61% <100.00%> (ø)
pytensor/link/numba/dispatch/scalar.py 90.28% <100.00%> (ø)
pytensor/tensor/basic.py 91.69% <100.00%> (ø)
pytensor/tensor/extra_ops.py 88.88% <ø> (+0.67%) ⬆️
pytensor/tensor/random/basic.py 98.85% <100.00%> (-0.01%) ⬇️
pytensor/tensor/rewriting/basic.py 95.84% <100.00%> (+0.32%) ⬆️
pytensor/tensor/variable.py 86.98% <100.00%> (+0.23%) ⬆️
pytensor/xtensor/rewriting/__init__.py 100.00% <100.00%> (ø)
... and 18 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.