Update README.md
Browse files
README.md
CHANGED
|
@@ -8,9 +8,6 @@
|
|
| 8 |
- `MALWARE`
|
| 9 |
|
| 10 |
## Uses
|
| 11 |
-
|
| 12 |
-
### Direct Use
|
| 13 |
-
|
| 14 |
This model is intended for binary classification of source code snippets, program text, and related code artifacts. A primary use case is malware detection, where the model predicts whether an input sample is more likely to be:
|
| 15 |
|
| 16 |
- `MALWARE`
|
|
@@ -86,4 +83,3 @@ with torch.no_grad():
|
|
| 86 |
label = "MALWARE" if pred == 1 else "BENIGN"
|
| 87 |
|
| 88 |
print("Prediction:", label)
|
| 89 |
-
print("Probabilities:", probs.cpu().numpy())
|
|
|
|
| 8 |
- `MALWARE`
|
| 9 |
|
| 10 |
## Uses
|
|
|
|
|
|
|
|
|
|
| 11 |
This model is intended for binary classification of source code snippets, program text, and related code artifacts. A primary use case is malware detection, where the model predicts whether an input sample is more likely to be:
|
| 12 |
|
| 13 |
- `MALWARE`
|
|
|
|
| 83 |
label = "MALWARE" if pred == 1 else "BENIGN"
|
| 84 |
|
| 85 |
print("Prediction:", label)
|
|
|