mikemayuare
commited on
Commit
•
f9a9b8a
1
Parent(s):
b3e78e7
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,69 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- HIV
|
5 |
+
- SMILES
|
6 |
+
- BPE Tokenizer
|
7 |
+
- classification
|
8 |
+
license: mit
|
9 |
+
base_model:
|
10 |
+
- mikemayuare/SMILYBPE
|
11 |
+
---
|
12 |
+
|
13 |
+
# Model Card for mikemayuare/SELFY-BPE-HIV
|
14 |
+
|
15 |
+
This model is fine-tuned on the HIV dataset from MoleculeNet and is designed to classify chemical compounds based on their ability to inhibit HIV replication. The input to the model is in the SMILES (Simplified Molecular Input Line Entry System) molecular representation format. The model uses the BPE (Byte Pair Encoding) tokenizer for tokenizing the input. The model is intended for sequence classification tasks and should be loaded with the `AutoModelForSequenceClassification` class. Both the model and tokenizer can be loaded using the `from_pretrained` method from the Hugging Face Transformers library.
|
16 |
+
|
17 |
+
## Model Details
|
18 |
+
|
19 |
+
### Model Description
|
20 |
+
|
21 |
+
This is a 🤗 transformers model fine-tuned on the HIV dataset from MoleculeNet. It classifies chemical compounds as either active or inactive in inhibiting HIV replication. The model takes SMILES molecular representations as input and uses the BPE (Byte Pair Encoding) Tokenizer for tokenization. Both the model and the tokenizer can be loaded using the `from_pretrained` method from Hugging Face.
|
22 |
+
|
23 |
+
- **Developed by:** Miguelangel Leon
|
24 |
+
- **Funded by:** This work was supported by national funds through FCT (Fundação para a Ciência e a Tecnologia), under the project - UIDB/04152/2020 (DOI:10.54499/UIDB/04152/2020) - Centro de Investigação em Gestão de Informação (MagIC)/NOVA IMS).
|
25 |
+
- **Model type:** Sequence Classification
|
26 |
+
- **Language(s) (NLP):** Not applicable (SMILES molecular representation)
|
27 |
+
- **License:** MIT
|
28 |
+
- **Finetuned from model:** mikemayuare/SELFYBPE
|
29 |
+
|
30 |
+
### Model Sources
|
31 |
+
|
32 |
+
- **Paper :** Pending
|
33 |
+
|
34 |
+
## Uses
|
35 |
+
|
36 |
+
### Direct Use
|
37 |
+
|
38 |
+
This model can be used directly for binary classification of chemical compounds to predict their activity in inhibiting HIV replication. The inputs must be formatted as SMILES strings.
|
39 |
+
|
40 |
+
### Downstream Use
|
41 |
+
|
42 |
+
This model can be further fine-tuned for other chemical classification tasks, particularly those that use molecular representations in SMILES format.
|
43 |
+
|
44 |
+
### Out-of-Scope Use
|
45 |
+
|
46 |
+
This model is not designed for tasks outside of chemical compound classification or tasks unrelated to molecular data (e.g., NLP).
|
47 |
+
|
48 |
+
## Bias, Risks, and Limitations
|
49 |
+
|
50 |
+
As this model is fine-tuned on the HIV dataset, it may not generalize well to compounds outside the dataset’s chemical space. Additionally, it is not suited for use in applications outside of chemical compound classification tasks.
|
51 |
+
|
52 |
+
### Recommendations
|
53 |
+
|
54 |
+
Users should be cautious when applying this model to new chemical datasets that differ significantly from the HIV dataset. Thorough evaluation on the target dataset is recommended before deployment.
|
55 |
+
|
56 |
+
## How to Get Started with the Model
|
57 |
+
|
58 |
+
To use the model for classification, it must be loaded with the `AutoModelForSequenceClassification` class from 🤗 transformers, and the tokenizer with the `AutoTokenizer` class from the same library. The inputs must be formatted as SMILES strings.
|
59 |
+
|
60 |
+
You can load the BPE tokenizer and the model with the following steps:
|
61 |
+
|
62 |
+
```python
|
63 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
64 |
+
|
65 |
+
# Load the tokenizer
|
66 |
+
tokenizer = AutoTokenizer.from_pretrained("mikemayuare/SELFY-BPE-HIV")
|
67 |
+
|
68 |
+
# Load the model
|
69 |
+
model = AutoModelForSequenceClassification.from_pretrained("mikemayuare/SELFY-BPE-HIV")
|