-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have kernel classes return Dataset
instances
#41
Comments
This hasn't been a major concern up to this point, because in most cases the kernel convolution is (1) fast and (2) unique (i.e., MA maps cannot be recycled for Monte Carlo methods), but @Julio-a-yanes is coming up against an issue with the Some thoughts on what this will take:
|
Incorporating parameters works out well. The thing I've gotten stuck on is the masker. The masker doesn't have a unique identifier that can transform well to a filename for the MA map. One solution would be to generate the files without any masking, inferring the image template from... the Dataset.space maybe? I don't think the space can be inferred from the masker... unless we make a hash from the affine, I guess. The filenames would be something like:
So an example with the pain dataset and a KDA kernel: |
The API might be more intuitive if the
Kernel
classes returned aDataset
instance, with the resulting images appended to the.images
list of everyContrast
. Per discussion with @tsalo, the internal logic of the.fit
calls could move to module level for efficiency (e.g., if one needs to build up a null distribution of 10,000 sets off images without copying theDataset
that many times in memory).The text was updated successfully, but these errors were encountered: