Downloads · 30 days
21
1% of all-time downloads
usvsnsp/code-vs-nl
code-vs-nl is a text classification model from usvsnsp. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
21
1% of all-time downloads
All-time downloads
1.9K
Public
Parameters
67M
1.6 GB on disk
Likes
2
Public
Click a slice to open those files.
.onnx268 MB · 33%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased on bookcorpus for text and codeparrot/github-code for code datasets. It achieves the following results on the evaluation set:
As it's a finetuned model, it's architecture is same as distilbert-base-uncased for Sequence Classification
Can be used to classify documents into text and code
It is a mix of above two datasets, equally random sampled
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score |
|---|---|---|---|---|---|
| 0.5732 | 0.07 | 500 | 0.5658 | 0.9934 | 0.9934 |
| 0.5254 | 0.14 | 1000 | 0.5180 | 0.9951 | 0.9950 |