Update README.md
Browse files
README.md
CHANGED
|
@@ -246,7 +246,7 @@ ConfusionMatrixDisplay(cm, display_labels=le.classes_).plot(cmap='Blues')
|
|
| 246 |
|
| 247 |
**Macro AUC formula:**
|
| 248 |
|
| 249 |
-
<img src="https://latex.codecogs.com/svg.image?\text{AUC}_{macro}=\frac{1}{K}\sum_{i=1}^{K}\text{AUC}_i"/>
|
| 250 |
|
| 251 |
```python
|
| 252 |
from sklearn.preprocessing import label_binarize
|
|
@@ -266,11 +266,11 @@ Grad-CAM highlights regions the model uses for classification.
|
|
| 266 |
|
| 267 |
### Grad-CAM heatmap:
|
| 268 |
|
| 269 |
-
<img src="https://latex.codecogs.com/svg.image
|
| 270 |
|
| 271 |
Where:
|
| 272 |
|
| 273 |
-
<img src="https://latex.codecogs.com/svg.image?\alpha_k^c=\frac{1}{Z}\sum_{i}\sum_{j}\frac{\partial y^c}{\partial A_{ij}^k}" />
|
| 274 |
|
| 275 |
|
| 276 |
Python implementation:
|
|
@@ -320,12 +320,12 @@ plt.show()
|
|
| 320 |
|
| 321 |
### Sparse Categorical Crossentropy
|
| 322 |
|
| 323 |
-
<img src="https://latex.codecogs.com/svg.image
|
| 324 |
|
| 325 |
|
| 326 |
### Global Average Pooling
|
| 327 |
|
| 328 |
-
<img src="https://latex.codecogs.com/svg.image
|
| 329 |
|
| 330 |
|
| 331 |
---
|
|
|
|
| 246 |
|
| 247 |
**Macro AUC formula:**
|
| 248 |
|
| 249 |
+
<img src="https://latex.codecogs.com/svg.image?\color{white}\text{AUC}_{macro}=\frac{1}{K}\sum_{i=1}^{K}\text{AUC}_i"/>
|
| 250 |
|
| 251 |
```python
|
| 252 |
from sklearn.preprocessing import label_binarize
|
|
|
|
| 266 |
|
| 267 |
### Grad-CAM heatmap:
|
| 268 |
|
| 269 |
+
<img src="https://latex.codecogs.com/svg.image?\color{white}L^c_{\text{Grad-CAM}}=\text{ReLU}\left(\sum_k\alpha_k^cA^k\right)" />
|
| 270 |
|
| 271 |
Where:
|
| 272 |
|
| 273 |
+
<img src="https://latex.codecogs.com/svg.image?\color{white}\alpha_k^c=\frac{1}{Z}\sum_{i}\sum_{j}\frac{\partial y^c}{\partial A_{ij}^k}" />
|
| 274 |
|
| 275 |
|
| 276 |
Python implementation:
|
|
|
|
| 320 |
|
| 321 |
### Sparse Categorical Crossentropy
|
| 322 |
|
| 323 |
+
<img src="https://latex.codecogs.com/svg.image?\color{white}L=-\frac{1}{N}\sum_{i=1}^{N}\log(p_{i,y_i})" />
|
| 324 |
|
| 325 |
|
| 326 |
### Global Average Pooling
|
| 327 |
|
| 328 |
+
<img src="https://latex.codecogs.com/svg.image?\color{white}f_c=\frac{1}{h \cdot \omega}\sum_{i=1}^{h}\sum_{j=1}^{\omega}F_{i,j,c}" />
|
| 329 |
|
| 330 |
|
| 331 |
---
|