edflow.debug module¶
Reference¶
-
class
edflow.debug.
DebugIterator
(*args, **kwargs)[source]¶ Bases:
edflow.iterators.model_iterator.PyHookedModelIterator
-
__init__
(*args, **kwargs)[source]¶ Constructor.
- Parameters
model (object) – Model class.
num_epochs (int) – Number of times to iterate over the data.
hooks (list) – List containing
Hook
instances.hook_freq (int) – Frequency at which hooks are evaluated.
bar_position (int) – Used by tqdm to place bars at the right position when using multiple Iterators in parallel.
-
-
class
edflow.debug.
DebugDataset
(size=100, offset=0, other_labels=False, other_ex_keys=False, *args, **kwargs)[source]¶ Bases:
edflow.data.dataset_mixin.DatasetMixin
-
__init__
(size=100, offset=0, other_labels=False, other_ex_keys=False, *args, **kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
get_example
(i)[source]¶ Note
Please the documentation of
DatasetMixin
to not be confused.Add default behaviour for datasets defining an attribute
data
, which in turn is a dataset. This happens often when stacking several datasets on top of each other.The default behaviour now is to return
self.data.get_example(idx)
if possible, and otherwise revert to the original behaviour.
-
property
labels
¶ Add default behaviour for datasets defining an attribute
data
, which in turn is a dataset. This happens often when stacking several datasets on top of each other.The default behaviour is to return
self.data.labels
if possible, and otherwise revert to the original behaviour.
-
-
class
edflow.debug.
ConfigDebugDataset
(config)[source]¶ Bases:
edflow.debug.DebugDataset