Closed mat-ej closed 1 year ago
First, let me start by saying that this is one of the best packages I have ever stumbled upon. Your tutorials are top notch introduction into functional data analysis. I love the way it is similar and works beautifully with original scikit learn.
Thank you! Making our work compatible with scikit-learn is one of our core principles, as it allows familiarity and code reuse, and simplifies some workflows in which both functional and multivariate data appear.
What I am missing is a tutorial or perhaps just a short guide on how to work with Time x (Latitude, Longitude) data. I have found the tutorial for dealing with time and I have found tutorial for dealing with surfaces.
https://fda.readthedocs.io/en/latest/auto_examples/plot_composition.html
As functional data analysis is a large topic, we have focused first in the 1D (curves) case, in both the code and documentation. I agree that we should attempt to improve that situation. The state of the package (develop branch) in the ND case is the following:
FDataGrid
.TensorBasis
and FiniteElementBasis
can be employed to create a basis for functions of several variables.FDataGrid
to FDatabasis
should work (but may be slow or use much memory).FDataGrid
do not attempt to work with functions of several variables. A notable exception are methods based on distances, which will work if the distance is defined for such functions (e.g. the default L2 distance).FDataBasis
tend to work also with basis for functions of several variables, as they are usually based on the inner product, which is implemented for that case. However, they MAY be slow or use much memory. An example of these methods would be FPCA for FDataBasis
.LinearDifferentialOperator
for the ND case, so smoothing based on the derivatives will not work.The tutorials are very good, but I am having trouble understanding how to construct basis representation for (Latitude x Longitude x Time) data, how can I perform FPCA in that case etc.
FDataGrid
.TensorBasis
passing to it the individual desired 1D bases for the Latitude, Longitude and Time.FDataBasis
using either the to_basis
method or the BasisSmoother
class.FPCA
class to perform FPCA in basis form.Is there such a tutorial or perhaps a slack community where I might get some pointers? : )
As I said, we should improve the tutorial including topics such as registration, classification or regression, and probably also a section on functions of several variables. We do not have a Slack (nor Discord nor Matrix) community. I agree that it would be an amazing resource to have, but we do not have currently the time to manage one. We have however the Github discussions open, so that users of the package (or functional data analysis researchers/practitioners, even if they do not use it) can ask and answer questions or comment in related topics.
Thanks in advance for your help and such an awesome package.
Thank you again! I hope that my answers helped you.
Thanks for answer, I ll move my question to the discussions
Hi Scikit-Fda team,
First, let me start by saying that this is one of the best packages I have ever stumbled upon. Your tutorials are top notch introduction into functional data analysis. I love the way it is similar and works beautifully with original sci kit learn.
What I am missing is a tutorial or perhaps just a short guide on how to work with Time x (Latitude, Longitude) data. I have found the tutorial for dealing with time and I have found tutorial for dealing with surfaces.
https://fda.readthedocs.io/en/latest/auto_examples/plot_composition.html
The tutorials are very good, but I am having trouble understanding how to construct basis representation for (Latitude x Longitude x Time) data, how can I perform FPCA in that case etc.
Is there such a tutorial or perhaps a slack community where I might get some pointers? : )
Thanks in advance for your help and such an awesome package.
Have a great week.