importtensorflowastfimportjoblibimportnumpyasnpfromsklearn.metricsimportclassification_report,accuracy_score# Load the modelmodel=tf.keras.models.load_model("dga_model.keras")X_test,y_test=joblib.load("test_data.pkl")label_encoder=joblib.load("label_encoder.pkl")tokenizer=joblib.load("tokenizer.pkl")# Make predictions on the test sety_pred=(model.predict(X_test)>0.5).astype("int32").flatten()# Calculate accuracyaccuracy=accuracy_score(y_test,y_pred)print(f"Accuracy: {accuracy:.4f}")# Generate the classification reportreport=classification_report(y_test,y_pred,target_names=label_encoder.classes_)print("\nClassification Report:")print(report)