Conversation
8c7d13a to
f0862e6
Compare
|
I think this is close enough to the general estimator class. I compared the current version and the one in the patch set:
Version the
Note that the increase in error towards the end of the sequence is expected as the signal available in the final frames is low, and thus, estimates are expected to be less good. Using the
And none seems to be doing a good job: I have plot the ground truth:
Given that none is doing a good job, and unless you clearly see the fix for the original |
0813f9a to
c112c87
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #203 +/- ##
==========================================
- Coverage 82.29% 82.24% -0.06%
==========================================
Files 37 37
Lines 2056 2044 -12
Branches 227 226 -1
==========================================
- Hits 1692 1681 -11
+ Misses 319 318 -1
Partials 45 45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2848477 to
c49905a
Compare
8b955c4 to
8aac2fd
Compare
| pbar.set_description_str(f"{FIT_MSG: <16} vol. <{i}>") | ||
|
|
||
| # Fit the model once on the training dataset | ||
| model.fit_predict(None) |
There was a problem hiding this comment.
@mnoergaard is this really what we want?
It can be done, but calling fit_predict(None) is meant to be done outside the iteration loop (i.e., fit only once in all data and after that fit_predict is only "predict").
Is there a reason to fit everytime (btw, in the case of diffusion models, if fit once with all data then the object is locked and doesn't fit again).
There was a problem hiding this comment.
Related to my question in #197 (comment). Removing that from the estimator allows the notebook to run and generate the results in #203 (comment), but removing it from the notebook without removing the immediate cell on predicting the given index results in an error: https://github.com/jhlegarreta/nifreeze/blob/9b36f58075eeea6b8234274f0ecdfe0d015f94c2/src/nifreeze/model/pet.py#L184. Removing the 2 calls to fit_predict(None) (notebook and the pointed location in the estimator), as well as the explicit call to fit_predict in the notebook, allows the notebook to run. Results are still the same as in #203 (comment). So I would suggest that @mnoergaard has a look at the related issues.
8aac2fd to
873fbc3
Compare
4975830 to
cb16dc1
Compare
|
The execution of the notebook with the current patch set gives the following results: Estimated motion (the range is different, but differences are notable wrt the ground truht) So, not working. But such was the case previously as well (#203 (comment)). So the underlying issues is probably elsewhere, whether in the model or the test data, rather than the estimator. I think that this is ready to be merged; the idea is to bring the |
6051d9e to
dc7fe14
Compare
Refactor PET estimator so that it is more closely aligned with the `Estimator` class, and in order to eventually merge them. Most notably, avoid creating train, test splits inside the estimator and delegate the task of walking the sequence to the existing iterators. This removes the need for the `lofo_split` method.
dc7fe14 to
6a1f5af
Compare








Refactor PET estimator so that it is more closely aligned with the
Estimatorclass, and in order to eventually merge them.