santh-cpu commited on
Commit
2be77de
·
verified ·
1 Parent(s): 5e1d2b6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - code
4
+ tags:
5
+ - python
6
+ - java
7
+ - cpp
8
+ - ai-detection
9
+ - code-analysis
10
+ - temporal-cnn
11
+ - codet5
12
+ metrics:
13
+ - f1: 0.9921
14
+ ---
15
+
16
+ # ai_code_detect
17
+
18
+ ### Architecture
19
+ - **Semantic Engine:** `Salesforce/codet5-base`
20
+ - **Statistical Extraction:** `microsoft/codebert-base-mlm` (Calculates Entropy and Log-Rank across 256 tokens)
21
+ - **Fusion Network:** 1D CNN for temporal feature extraction + Dense Feed-Forward Classifier
22
+
23
+ ### Performance Metrics
24
+ Trained on a polyglot dataset (Python, Java, C++) to prevent single-language overfitting.
25
+ - **Training Validation F1:** 0.9861
26
+ - **Unseen SemEval-2026 Audit (F1):** 0.9921
27
+ - **Overall Accuracy:** 99.20%
28
+
29
+ ### How to use
30
+ To use this model in your own application, download the weights directly from this hub and load them into the custom `TemporalFusionClassifier` architecture.
31
+
32
+ ```python
33
+ from huggingface_hub import hf_hub_download
34
+ import torch
35
+
36
+ # Download weights
37
+ weights_path = hf_hub_download(repo_id="santh-cpu/ai_code_detect", filename="pytorch_model.bin")
38
+
39
+ # Load into your architecture
40
+ model = TemporalFusionClassifier(base_model)
41
+ model.load_state_dict(torch.load(weights_path))
42
+ model.eval()