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

Patch Classifier testing results in 0.25 AUC #13

Open
MohammedAdelFahmi opened this issue Jul 30, 2019 · 0 comments
Open

Patch Classifier testing results in 0.25 AUC #13

MohammedAdelFahmi opened this issue Jul 30, 2019 · 0 comments

Comments

@MohammedAdelFahmi
Copy link

Hello Shen, first congratulations on the great effort.
I have tested two of your patch models on 400 jpg patches from CBIS-DDSM patches but I have gained an accuracy of 0.25 I have 100 images per class (calcification benign - calcification malignant - mass benign - mass malignant), so I was wondering what is the wrong that I am doing in the prediction?

test_generator = test_imgen.flow_from_directory(
                                                     directory=test_dir,
                                                     target_size=(500, 500),
                                                     color_mode="rgb",
                                                     batch_size=1,
                                                     class_mode=None,
                                                     shuffle=False)
test_generator.reset()
model = load_model("s30_resnet50.h5")
model.compile(loss='categorical_crossentropy',
              optimizer='adam',
              metrics=['accuracy'])
pred=model.predict_generator(test_generator,verbose=1,steps=nb_test_samples)
predicted_class_indices=np.argmax(pred,axis=1)```


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