Skip to content

Instantly share code, notes, and snippets.

from keras.preprocessing import sequence
from keras.models import model_from_json
models_dir = '.'
clf = model_from_json(open('%s/classifier_arc.json' % models_dir).read())
clf.load_weights('%s/classifier_weights.h5' % models_dir)
from joblib import Parallel, delayed, cpu_count
n_jobs = cpu_count()