c20e283bed1c495f6e6abba420f29eb32df878ab,nilearn/input_data/nifti_region.py,NiftiLabelsMasker,_check_fitted,#NiftiLabelsMasker#,199

Before Change



    def _check_fitted(self):
        if not hasattr(self, "self.labels_img_"):
            raise AttributeError("Model has not been trained yet.")

    def transform(self, niimgs, confounds=None):
        Extract signals from images.

After Change



    def _check_fitted(self):
        if not hasattr(self, "labels_img_"):
            raise ValueError("It seems that %s has not been fit. "
                             "You must call fit() before calling transform()."
                             % self.__class__.__name__)

    def transform(self, niimgs, confounds=None):
        Extract signals from images.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nilearn/nilearn
Commit Name: c20e283bed1c495f6e6abba420f29eb32df878ab
Time: 2014-10-27
Author: danilobzdok@gmail.com
File Name: nilearn/input_data/nifti_region.py
Class Name: NiftiLabelsMasker
Method Name: _check_fitted


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 44f6cac0bbb0d7969ece849cea078c508df7041b
Time: 2019-06-07
Author: slliu96@163.com
File Name: category_encoders/hashing.py
Class Name: HashingEncoder
Method Name: transform


Project Name: snipsco/snips-nlu
Commit Name: ce01a7984d45412c8dd6d4f202fa20d55a6cd026
Time: 2017-02-24
Author: clement.doumouro@snips.ai
File Name: custom_intent_parser/intent_parser/intent_parser.py
Class Name: SnipsIntentParser
Method Name: built_in_intents