Text Classification
Transformers
Safetensors
roberta
code-defect-detection
c
text-embeddings-inference
Instructions to use lafarizo/code_defect_detection_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lafarizo/code_defect_detection_v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lafarizo/code_defect_detection_v1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lafarizo/code_defect_detection_v1") model = AutoModelForSequenceClassification.from_pretrained("lafarizo/code_defect_detection_v1") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,8 +17,7 @@ Code Defect Detection for C language
|
|
| 17 |
### Dataset
|
| 18 |
- **Repository:** [semeru/code-code-DefectDetection](https://huggingface.co/datasets/semeru/code-code-DefectDetection)
|
| 19 |
|
| 20 |
-
|
| 21 |
-
| Metric | Value |
|
| 22 |
|---------------------------|--------------|
|
| 23 |
| **Evaluation Loss** | 0.7605 |
|
| 24 |
| **Accuracy** | 66.76% |
|
|
|
|
| 17 |
### Dataset
|
| 18 |
- **Repository:** [semeru/code-code-DefectDetection](https://huggingface.co/datasets/semeru/code-code-DefectDetection)
|
| 19 |
|
| 20 |
+
| Results | Value |
|
|
|
|
| 21 |
|---------------------------|--------------|
|
| 22 |
| **Evaluation Loss** | 0.7605 |
|
| 23 |
| **Accuracy** | 66.76% |
|