<jupyter_start><jupyter_text>Loss is very small and decreasing<jupyter_code>model.save("model_adv.h5")
model.evaluate_generator(train_generator)
model.evaluate_generator(validation_generator)<jupyter_output>/usr/local/lib/python3.7/dist-packages/keras/engine/training.py:2006: UserWarning: `Model.evaluate_generator` is deprecated and will be removed in a future version. Please use `Model.evaluate`, which supports generators.
  warnings.warn('`Model.evaluate_generator` is deprecated and '<jupyter_text>**Test Image With Confusion Metrics**<jupyter_code>model = load_model('model_adv.h5')
import os
train_generator.class_indices
y_actual = []
y_test = []
for i in os.listdir("./CovidDataset/Val/Normal/"):
  img = image.load_img("./CovidDataset/Val/Normal/"+i, target_size=(224,224))
  img = image.img_to_array(img)
  img = np.expand_dims(img, axis=0)
  predict_x=model.predict(img) 
  classes_x=np.argmax(predict_x,axis=1)
  y_test.append(predict_x[0,0])
  y_actual(1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13086913086913088, 'fraction_numerical': 0.01898101898101898, 'mean_word_length': 7.213114754098361, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '380045', 'license': 'MIT', 'n_tokens_mistral': 372, 'n_tokens_neox': 355, 'n_words': 57, 'path': 'COVID_19_Detector.ipynb', 'repo_name': 'SirvachJumani/Detect-Covid19-From-Xrays', 'size': '1001'}