VParka commited on
Commit
5e3c446
·
verified ·
1 Parent(s): b8cde37

Upload README.md via DNA Console (Portable Version)

Browse files
Files changed (1) hide show
  1. README.md +21 -10
README.md CHANGED
@@ -7,9 +7,12 @@ tags:
7
  library_name: sklearn
8
  ---
9
 
10
- # BioGuard DNA Classifier Ensemble
11
 
12
- This repository contains a dual-model ensemble for DNA sequence analysis and virus classification, trained using the **DNA Governance Console**.
 
 
 
13
 
14
  ## 🧬 Models Included
15
 
@@ -34,19 +37,27 @@ This repository hosts two distinct models specialized for different aspects of g
34
 
35
  ## 🚀 Usage
36
 
37
- You can load these models using `joblib` in Python:
 
 
 
38
 
39
  ```python
40
- import joblib
41
 
42
- # Load GenetiForest
43
- rf_model = joblib.load("dna_classifier.joblib")
44
 
45
- # Load ViralBoost
46
- gb_model = joblib.load("sequence_model.joblib")
 
47
 
48
- # Prediction
49
- # (Requires matching FeatureExtractor - see 'sequence_extractor.joblib')
 
 
 
 
50
  ```
51
 
52
  ## 📊 Training Meta
 
7
  library_name: sklearn
8
  ---
9
 
10
+ # BioGuard DNA Classifier Ensemble (Portable v1.1)
11
 
12
+ This repository contains a dual-model ensemble for DNA sequence analysis and virus classification, optimized for **portability and zero-dependency loading**.
13
+
14
+ > [!NOTE]
15
+ > **Version 1.1 Update**: This version has been refactored to decouple the models from custom feature extraction classes. It uses a raw scikit-learn format for maximum compatibility.
16
 
17
  ## 🧬 Models Included
18
 
 
37
 
38
  ## 🚀 Usage
39
 
40
+ Since these models use biological feature extraction, we provide a standalone `inference.py` script for easy usage.
41
+
42
+ 1. Download all files (`.joblib` and `inference.py`).
43
+ 2. Use the `inference.py` script:
44
 
45
  ```python
46
+ from inference import predict_dna
47
 
48
+ sequence = "ATGCTAGCTAGCTAG..."
49
+ results = predict_dna(sequence)
50
 
51
+ print(f"Genetic Type: {results['classification']}")
52
+ print(f"Virus Identity: {results['virus_identity']}")
53
+ ```
54
 
55
+ Alternatively, you can load components manually:
56
+ ```python
57
+ import joblib
58
+ classifier = joblib.load("dna_classifier.joblib")
59
+ scaler = joblib.load("scaler_rf.joblib")
60
+ # (Refer to inference.py for Feature Extraction logic)
61
  ```
62
 
63
  ## 📊 Training Meta