Huhujingjing commited on
Commit
1f0c4c2
1 Parent(s): 9cdd8aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -1
README.md CHANGED
@@ -10,4 +10,28 @@ metrics:
10
  - mse
11
  - r_squared
12
  pipeline_tag: graph-ml
13
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  - mse
11
  - r_squared
12
  pipeline_tag: graph-ml
13
+ ---
14
+
15
+
16
+ ```
17
+ pip install torch_scatter rdkit
18
+
19
+ pip install torch_geometric
20
+
21
+ ```
22
+
23
+ ### example
24
+
25
+
26
+ ```python
27
+ from transformers import AutoModel
28
+
29
+ device = 'cpu'
30
+ smiles = ['CCCC', 'C#C/C(C)=C(/[CH2])C', 'NNNNN']
31
+
32
+ model = AutoModel.from_pretrained("Huhujingjing/custom-gcn", trust_remote_code=True).to(device)
33
+
34
+ output = model.predict_smiles(smiles)
35
+
36
+ print(output)
37
+ ```