Views
No views yet
google/efficientnet-b71from huggingface_hub import hf_hub_download
2from tensorflow import keras
3
4model_path = hf_hub_download(
5 "Beijuka/cancer-efficientnetb7-undersampling",
6 "cancer_efficientnetB7_undersampling.keras"
7)
8model = keras.models.load_model(model_path)[[9, 1],
[4, 5]]| Threshold | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|
| 0.00 | 0.4737 | 0.4737 | 1.0000 | 0.6429 |
| 0.05 | 0.4737 | 0.4737 | 1.0000 | 0.6429 |
| 0.10 | 0.5263 | 0.5000 | 1.0000 | 0.6667 |
| 0.15 | 0.5263 | 0.5000 | 0.8889 | 0.6400 |
| 0.20 | 0.6316 | 0.5714 | 0.8889 | 0.6957 |
| 0.25 | 0.6316 | 0.5833 | 0.7778 | 0.6667 |
| 0.30 | 0.6316 | 0.6250 | 0.5556 | 0.5882 |
| 0.35 | 0.6316 | 0.6250 | 0.5556 | 0.5882 |
| 0.40 | 0.6842 | 0.7143 | 0.5556 | 0.6250 |
| 0.45 | 0.7368 | 0.8333 | 0.5556 | 0.6667 |
| 0.50 | 0.7368 | 0.8333 | 0.5556 | 0.6667 |
| 0.55 | 0.6842 | 0.8000 | 0.4444 | 0.5714 |
| 0.60 | 0.6842 | 1.0000 | 0.3333 | 0.5000 |
| 0.65 | 0.5263 | 0.0000 | 0.0000 | 0.0000 |
| 0.70 | 0.5263 | 0.0000 | 0.0000 | 0.0000 |
| 0.75 | 0.5263 | 0.0000 | 0.0000 | 0.0000 |
| 0.80 | 0.5263 | 0.0000 | 0.0000 | 0.0000 |
| 0.85 | 0.5263 | 0.0000 | 0.0000 | 0.0000 |
| 0.90 | 0.5263 | 0.0000 | 0.0000 | 0.0000 |
| 0.95 | 0.5263 | 0.0000 | 0.0000 | 0.0000 |
| Comparison | Accuracy | F1-Score | Precision | Recall |
|---|---|---|---|---|
| Pre-stained Prediction | 0.6087 | 0.2703 | 0.1613 | 0.8333 |
| Post-stained Prediction | 0.7474 | 0.3441 | 0.2222 | 0.7619 |