Skip to content

Conversation

@vloison
Copy link
Collaborator

@vloison vloison commented Jul 4, 2025

To do :
[x] homogenize docstring of FaDIn and UNHaP
[x] Add solvers benchmarked in the UNHaP paper
[x] Add UNHaP experiments
[x] Update README
[ ] Update pyproject.toml with optional dependencies for experiments.
[ ] More beginner-friendly tutorials.
[ ] More doc for UNHaP and its utility functions.

To do in a future PR:
[ ] Factorize UNHaP and FaDIn utility functions
This will not be so easy. For instance, during optimization, model parameters are stored as a list. And UNHaP has one more model parameter, the noise baseline. Another example: for fadin, events are floats, for unhap, they are arrays of size two. This means that between the two solvers, several functions have lots of code in common but are tricky to factorize robustly.
[x] add tests for UNHaP and FaDIn:

  • test masks of UNHaP and FaDIn
  • test random init and moment matching of UNHaP and FaDIn

@vloison vloison requested a review from tomMoral July 8, 2025 16:04
@vloison
Copy link
Collaborator Author

vloison commented Jul 8, 2025

@tomMoral, now would be a good time for a review, before the number of lines changes is too big :)

The experiment files run_ecg and utils_ecg don't need reviewing, in my opinion.

Copy link
Collaborator

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments but overall LGTM

Copy link
Collaborator

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comment but otherwise, lgtm to merge like this

]

experiments = [
"dicodile>=0.3",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need dicodile? To get the gait data?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes exactly. There are a few packages we need just for the ECG and gait experiments. I'll add them here.

vloison and others added 12 commits July 15, 2025 12:44
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
@vloison vloison changed the title [WIP] Add UNHaP paper experiments and documentation [MRG] Add UNHaP experiments and documentation Jul 15, 2025
@vloison
Copy link
Collaborator Author

vloison commented Jul 15, 2025

This PR is now ready to merge on my side, @tomMoral do you want to check the latest updates or is it good to go? :)

@tomMoral tomMoral merged commit 6aa51ff into main Jul 15, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants