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""
""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: 8
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: pgmpy/pgmpy
Commit Name: 5a53f60e5143ab6f416437dadddd2f1df133a247
Time: 2015-04-07
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/JunctionTree.py
Class Name: JunctionTree
Method Name: add_edge