File size: 709 Bytes
9270c9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

PATHO-PRETER v1 (A100 Fine-Tune)
================================
Trained by: Rohit
Base Model: Nucleotide Transformer 500M
Architecture: Hybrid (DNA Sequence + 9 Conservation Scores)

HOW TO LOAD:
1. Unzip this folder.
2. Place 'modeling_pathopreter.py' in your python path.
3. Run:
   
   from modeling_pathopreter import SequenceClassificationWithFeatures
   import numpy as np

   # Load Model
   model = SequenceClassificationWithFeatures.from_pretrained("./PathoPreter_Final_A100")
   
   # Load Scalers (Crucial for inference!)
   means = np.load("./PathoPreter_Final_A100/feat_means.npy")
   stds = np.load("./PathoPreter_Final_A100/feat_stds.npy")

   # Preprocessing
   # (features - means) / stds