Closed tsalo closed 3 years ago
@eurunuela and @notZaki, I have two questions:
nilearn
's masking/unmasking functions now? I know that the results were different, but if we're consistent throughout the functions, it should be fine, right?
- Can we switch to using
nilearn
's masking/unmasking functions now? I know that the results were different, but if we're consistent throughout the functions, it should be fine, right?
Yes, it should be fine. We would need to update the tests though.
- Should we convert any image-like outputs (i.e., component maps) back to images when we fit/transform? I'm leaning toward yes, but want to know what you think.
I think we should, yes. We could make the class hold both; e.g., x
and x_nii
.
I'm in favour of using nilearn's functions.
I don't know enough to comment on the outputs, but it sounds ok to me---it certainly makes the types more symmetric between input-output
Originally, we wanted to have the function operate on images and the class operate on arrays, in case we could get rid of the spatial elements of the algorithm (see #5). Since that's not possible anymore, the way we pass around a 3D shape tuple and a 1D mask vector is more than a little awkward. We can just move the image-related code from the function to the class and pass in a data image and a mask image to clean up the interface.