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
ValueError: cannot reshape array of size 4000 into shape (20,50)
Traceback (if an exception is raised)
328 raise AttributeError(
329 "The number of components should be "
330 "smaller than the number of discretization "
331 "points of the functional data object.",
332 )
334 # data matrix initialization
--> 335 fd_data = X.data_matrix.reshape(X.data_matrix.shape[:-1])
337 # get the number of samples and the number of points of descretization
338 n_samples, n_points_discretization = fd_data.shape
ValueError: cannot reshape array of size 4000 into shape (20,50)
Software versions
skfda.version = '0.9'
Additional context
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #537. Vector-valued functions are not supported yet for the FDataGrid case. You may try to convert them to FDataBasis using VectorValuedBasis and perform FPCA in basis representation instead.
Bug description summary
FPCA does not seem to work when working with multivariate functional data.
Code to reproduce the bug
Expected result
No error raised
Actual result
ValueError: cannot reshape array of size 4000 into shape (20,50)
Traceback (if an exception is raised)
328 raise AttributeError(
329 "The number of components should be "
330 "smaller than the number of discretization "
331 "points of the functional data object.",
332 )
334 # data matrix initialization
--> 335 fd_data = X.data_matrix.reshape(X.data_matrix.shape[:-1])
337 # get the number of samples and the number of points of descretization
338 n_samples, n_points_discretization = fd_data.shape
ValueError: cannot reshape array of size 4000 into shape (20,50)
Software versions
skfda.version = '0.9'
Additional context
The text was updated successfully, but these errors were encountered: