Instructions to use ML4chemistry/Toxicity_Prediction_of_Ames_test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ML4chemistry/Toxicity_Prediction_of_Ames_test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ML4chemistry/Toxicity_Prediction_of_Ames_test")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ML4chemistry/Toxicity_Prediction_of_Ames_test") model = AutoModelForSequenceClassification.from_pretrained("ML4chemistry/Toxicity_Prediction_of_Ames_test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Card for Model ID
Model Details
Model Description
This is the model card of a ๐ค transformers model that has been pushed on the Hub. This model card has been automatically generated.
- Developed by: [Zhi Huang (Sichuan university)]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [Zhi Huang]
- Model type: [Classification]
- Language(s) (NLP): [NLP]
- License: [Commercial use requires author's permission.]
- Finetuned from model [optional]: [More Information Needed]
Model Sources [optional]
- Datasets: https://github.com/525514353/Chem-GPT
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
#It is best to use the isomeric SMILES of a compound as input to predict its toxicity. Use a pipeline as a high-level helper
from transformers import pipeline pipe = pipeline("text-classification", model="ML4chemistry/Toxicity_Prediction_of_Ames_test")
predict the toxicity of 4-(4-hydroxyphenyl)sulfonylphenol and 2-aminonaphthalene-1-sulfonic acid
pipe(['O=S(=O)(c1ccc(O)cc1)c1ccc(O)cc1','Nc1ccc2ccccc2c1S(=O)(=O)O'])#SMILES of 4-(4-hydroxyphenyl)sulfonylphenol,2-aminonaphthalene-1-sulfonic acid
#outputs:[{'label': 'LABEL_0', 'score': 0.9998965263366699},(0 represents non-toxicity) {'label': 'LABEL_1', 'score': 0.9995802044868469}],(1 represents toxicity)
- Downloads last month
- 18