Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluation of FDataIrregular objects with multidimensional domain not working #617

Open
pcuestas opened this issue Jun 12, 2024 · 0 comments
Labels

Comments

@pcuestas
Copy link
Contributor

pcuestas commented Jun 12, 2024

Bug description summary

When evaluating an FDataIrregular observation with multidimensional domain, the returned value is incorrect.

Code to reproduce the bug

from skfda import FDataIrregular
irregular=FDataIrregular(
    start_indices=[0],
    points=[[1, 2], [3, 4]],
    values=[[-1], [-2]],
)
print(irregular(irregular.points))

Expected result

[[[-1]
  [-2]]]

Actual result

[[[nan]
  [nan]]]

Software versions

scikit-fda version: '0.9.2.dev0'
OS: Ubuntu 22

Additional context

(Related to #616)

This problem is not present for multidimensional codomain (if dim_domain==1):

>>> irregular=FDataIrregular(
...     start_indices=[0],
...     points=[[1], [2]],
...     values=[[-1, -2], [-3, -4]],
... )
>>> irregular(irregular.points)
array([[[-1., -2.],
        [-3., -4.]]])
@pcuestas pcuestas added the bug label Jun 12, 2024
@pcuestas pcuestas changed the title Evaluation of FDataIrregular objects wit multidimensional domain not working Evaluation of FDataIrregular objects with multidimensional domain not working Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant