acc_entropy = nan
else:
if "acc" in history.history.keys():
acc_entropy = entropy(history.history["val_acc"],
history.history["acc"])
loss_entropy = entropy(history.history["val_loss"],
After Change
loss_entropy = nan
acc_entropy = nan
elif no_of_items >= 4:
if "acc" in keys:
acc_entropy = entropy(history.history["val_acc"],
history.history["acc"])
else:
acc_entropy = nan
if "loss" in keys:
loss_entropy = entropy(history.history["val_loss"],
history.history["loss"])