Instructions to use greenarcade/cough-classification-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use greenarcade/cough-classification-model with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://greenarcade/cough-classification-model") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,6 +12,10 @@ tags:
|
|
| 12 |
- audio-to-output
|
| 13 |
- cough
|
| 14 |
- medical
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
# Cough Classification Model
|
|
@@ -117,6 +121,4 @@ print("Class probabilities:")
|
|
| 117 |
for idx, prob in enumerate(probabilities):
|
| 118 |
class_name = label_encoder.inverse_transform([idx])[0]
|
| 119 |
print(f" {class_name}: {prob:.4f}")
|
| 120 |
-
```
|
| 121 |
-
|
| 122 |
-
|
|
|
|
| 12 |
- audio-to-output
|
| 13 |
- cough
|
| 14 |
- medical
|
| 15 |
+
metrics:
|
| 16 |
+
- f1
|
| 17 |
+
- confusion_matrix
|
| 18 |
+
- code_eval
|
| 19 |
---
|
| 20 |
|
| 21 |
# Cough Classification Model
|
|
|
|
| 121 |
for idx, prob in enumerate(probabilities):
|
| 122 |
class_name = label_encoder.inverse_transform([idx])[0]
|
| 123 |
print(f" {class_name}: {prob:.4f}")
|
| 124 |
+
```
|
|
|
|
|
|