GAA-UAM / scikit-fda

Functional Data Analysis Python package
https://fda.readthedocs.io
BSD 3-Clause "New" or "Revised" License
303 stars 58 forks source link

Time x Space tutorial with basis representation and FPCA ? #568

Closed mat-ej closed 1 year ago

mat-ej commented 1 year ago

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.

vnmabus commented 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:

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? : )

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.

mat-ej commented 1 year ago

Thanks for answer, I ll move my question to the discussions