Code Monkey home page Code Monkey logo

semi-supervised-phishing-detection-gan's People

Contributors

sharifamit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jimwangzx ljtlrh

semi-supervised-phishing-detection-gan's Issues

About out of discriminator

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!

Testing Code

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

an error

Has anyone encountered this problem: TypeError: 'int' object is not iterable, seek answer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.