755780e1780497b31d1e2e30a634b34800f2b137,nilearn/regions/region_extractor.py,RegionExtractor,fit,#RegionExtractor#Any#Any#,402

Before Change


        // Asking NiftiMapsMasker to prepare the data for regions extraction
        // only if mask_img is provided
        if self.mask_img is not None:
            nifti_maps_masker = NiftiMapsMasker(maps_img, mask_img=self.mask_img,
                                                resampling_target="maps")
            nifti_maps_masker.fit()
            self.maps_img_ = nifti_maps_masker.maps_img_
            self.mask_img_ = nifti_maps_masker.mask_img_
        else:
            self.mask_img_ = None
            self.maps_img_ = maps_img

        // foreground extraction
        self.threshold_maps_img_ = foreground_extraction(
            self.maps_img_,
            mask_img=self.mask_img_,
            threshold=self.threshold,
            thresholding_strategy=self.thresholding_strategy)

After Change


            self.peak_local_smooth)

        self.maps_img = self.regions_
        super(RegionExtractor, self).fit()

        return self
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: nilearn/nilearn
Commit Name: 755780e1780497b31d1e2e30a634b34800f2b137
Time: 2015-11-29
Author: dkamalakarreddy@gmail.com
File Name: nilearn/regions/region_extractor.py
Class Name: RegionExtractor
Method Name: fit


Project Name: IndicoDataSolutions/Enso
Commit Name: aa4f9c2e83e745405b90f18609b33218f60afb4f
Time: 2018-09-06
Author: benlt@hotmail.co.uk
File Name: enso/experiment/tfidf.py
Class Name: TfidfLogisticRegression
Method Name: fit


Project Name: IndicoDataSolutions/Enso
Commit Name: 105b422e116c785ef52fd84ce24485514b182859
Time: 2020-03-17
Author: benlt@hotmail.co.uk
File Name: enso/experiment/rationalized.py
Class Name: RationalizedGridSearch
Method Name: fit