Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The model is predicting all [Nan,..,Nan] Values #3

Open
makkawysaleh opened this issue Jun 6, 2023 · 0 comments
Open

The model is predicting all [Nan,..,Nan] Values #3

makkawysaleh opened this issue Jun 6, 2023 · 0 comments

Comments

@makkawysaleh
Copy link

I followed your configurations and setup to get the code to work as you do. The issue I am running into is that the models do not predict any values. The only values I see are for the first class"addsiply":
{'accuracy': 0.19970261923824775, 'addisplay': {'f1-score': 0.332920202116503,'precision': 0.19970261923824775, 'recall': 1.0, 'support': 3492},
'addisplay++adware': {'f1-score': 0.0,'precision': 0.0, 'recall': 0.0,'support': 58},
The macro-f1 score stays fixed during the entire running time of the code. Additionally, the confusion matrix looks something like this:
array([[3492, 0, 0, ..., 0, 0, 0],
[ 58, 0, 0, ..., 0, 0, 0],
[ 66, 0, 0, ..., 0, 0, 0],
...,
[ 36, 0, 0, ..., 0, 0, 0],
[ 38, 0, 0, ..., 0, 0, 0],
[ 44, 0, 0, ..., 0, 0, 0]])
I tried most of the "classification_models.keras" models you have like[ResNet50, MobileNet, and others]. But I still see this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant