semeru/code-code-DefectDetection
Viewer • Updated • 27.3k • 582 • 2
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")Code Defect Detection for C language
| Results | Value |
|---|---|
| Evaluation Loss | 0.7605 |
| Accuracy | 66.76% |
| Precision | 65.64% |
| Recall | 58.01% |
| F1 Score | 61.59% |
| AUC | 73.52% |