Instructions to use doanvinhlong18/lstm-news-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use doanvinhlong18/lstm-news-classifier with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://doanvinhlong18/lstm-news-classifier") - Notebooks
- Google Colab
- Kaggle
Add fine-tuned Bidirectional LSTM news classifier
Browse files- README.md +2 -2
- keras_tokenizer.pkl +1 -1
- lstm_model.keras +1 -1
README.md
CHANGED
|
@@ -29,8 +29,8 @@ on the [HuffPost News Category Dataset](https://www.kaggle.com/datasets/rmisra/n
|
|
| 29 |
| Vocab size | 60,000 |
|
| 30 |
| Max token length | 256 |
|
| 31 |
| Embedding dim | 128 |
|
| 32 |
-
| Test Accuracy | 0.
|
| 33 |
-
| Test F1 (macro) | 0.
|
| 34 |
|
| 35 |
## Labels
|
| 36 |
|
|
|
|
| 29 |
| Vocab size | 60,000 |
|
| 30 |
| Max token length | 256 |
|
| 31 |
| Embedding dim | 128 |
|
| 32 |
+
| Test Accuracy | 0.6909 |
|
| 33 |
+
| Test F1 (macro) | 0.6191 |
|
| 34 |
|
| 35 |
## Labels
|
| 36 |
|
keras_tokenizer.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3147868
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19ab7cf1a2cfa1fa78be8ebf8605d9d9d4d4cd9606220d1d426e4c8ee6496c25
|
| 3 |
size 3147868
|
lstm_model.keras
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 97575439
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3bc0a91ea92c0c302a331bf8f345baf771da9ca03ba3b3de1e54829bd0ed1c3b
|
| 3 |
size 97575439
|