66146cc04fac06e19e8f7386b933d18c9344b232,keras_preprocessing/image/dataframe_iterator.py,DataFrameIterator,__init__,#DataFrameIterator#,79

Before Change


        self.df[x_col] = self.df[x_col].astype(str)
        self.directory = directory
        self.classes = classes
        if class_mode not in {"categorical", "binary", "sparse",
                              "input", "other", None}:
            raise ValueError("Invalid class_mode:", class_mode,
                             " expected one of "categorical", "
                             ""binary", "sparse", "input""

After Change


        self.df[x_col] = self.df[x_col].astype(str)
        self.directory = directory
        self.classes = classes
        if class_mode not in self.allowed_class_modes:
            raise ValueError("Invalid class_mode: {}; expected one of: {}"
                             .format(class_mode, self.allowed_class_modes))
        self.class_mode = class_mode
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras-preprocessing
Commit Name: 66146cc04fac06e19e8f7386b933d18c9344b232
Time: 2018-12-27
Author: rragundez@users.noreply.github.com
File Name: keras_preprocessing/image/dataframe_iterator.py
Class Name: DataFrameIterator
Method Name: __init__


Project Name: keras-team/keras-preprocessing
Commit Name: 66146cc04fac06e19e8f7386b933d18c9344b232
Time: 2018-12-27
Author: rragundez@users.noreply.github.com
File Name: keras_preprocessing/image/directory_iterator.py
Class Name: DirectoryIterator
Method Name: __init__


Project Name: facebookresearch/DrQA
Commit Name: 60fcf0b891783ecec30fa4aefa2d6057ce63fb93
Time: 2018-03-27
Author: 67573430@qq.com
File Name: drqa/tokenizers/spacy_tokenizer.py
Class Name: SpacyTokenizer
Method Name: __init__