Skip to content

Instantly share code, notes, and snippets.

@timehaven
timehaven / akmtdfgen.py
Last active August 24, 2023 17:14
kmtdfgen: Keras multithreaded dataframe generator
"""akmtdfgen: A Keras multithreaded dataframe generator.
Works with Python 2.7 and Keras 2.x.
For Python 3.x, need to fiddle with the threadsafe generator code.
Test the generator_from_df() functions by running this file:
python akmtdfgen.py