Hi,
Is there anyway to transform a boolean array mask into a Nifti mask? After running SelectKBest (through sklearn) and getting two arrays of the selected features via cross validation, I ended up with two different boolean masks. What I’d like to do is transform these arrays into Nifti masks, and further take the average of such masks by using nilearn.masking.intersect_masks
If this isn’t possible, what would be the best approach to finding the ‘optimal’ selected features if you have two masks?