66146cc04fac06e19e8f7386b933d18c9344b232,keras_preprocessing/image/dataframe_iterator.py,DataFrameIterator,__init__,#DataFrameIterator#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,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""
""other" or None.")
self.class_mode = class_mode
self.dtype = dtype
// First, count the number of samples and classes.
self.samples = 0
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
self.dtype = dtype
// First, count the number of samples and classes.
self.samples = 0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
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: EducationalTestingService/factor_analyzer
Commit Name: 429529f89b33ecf478de61445a64590ac77746d4
Time: 2018-05-21
Author: jbiggs@ets.org
File Name: factor_analyzer/factor_analyzer.py
Class Name: FactorAnalyzer
Method Name: analyze