sharifamit / semi-supervised-phishing-detection-gan Goto Github PK
View Code? Open in Web Editor NEW[Tensorflow] A Game Theoretic approach using GAN for Phishing URL synthesis and detection
License: MIT License
[Tensorflow] A Game Theoretic approach using GAN for Phishing URL synthesis and detection
License: MIT License
Hello, @SharifAmit
What‘s the meaning of out1(real/adversarial) of Discriminator? I attempt to use this and that in the label to calculate merics, it's bad.
I use out2 to calculate merics but got a higher AUC.
Like this
print(accuracy, sensitivity, precision, f1, auc)
Thank you!
Hi Team,
I am not sure but could you please let me know on how to run the evaluation after running the training file. I tried to find it but couldn't find it.
I tried writing the below code but couldn't get numbers provided in the training
from src.model import *
import numpy as np
from sklearn.metrics import classification_report
discriminator = define_discriminator()
#create the generator
discriminator.load_weights('PhishGan_copy\dmodel_000200.h5')
data = np.load('phishing.npz')
#result = discriminator.evaluate(data['X_test'])
y_pred = discriminator.predict(data['X_test'], batch_size=64, verbose=1)
y_pred_bool = np.argmax(y_pred[1], axis=1)
y_test_arg=np.argmax(data['y_test'],axis=1)
print(classification_report(y_test_arg, y_pred_bool))
precision recall f1-score support
0 0.50 1.00 0.67 5000
1 1.00 0.00 0.00 5000
accuracy 0.50 10000
macro avg 0.75 0.50 0.33 10000
weighted avg 0.75 0.50 0.33 10000
Thanks
Jay
Has anyone encountered this problem: TypeError: 'int' object is not iterable, seek answer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.