Instructions to use LofiAmazon/BarcodeBERT-Finetuned-Amazon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LofiAmazon/BarcodeBERT-Finetuned-Amazon with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LofiAmazon/BarcodeBERT-Finetuned-Amazon", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -85,7 +85,7 @@ env_data = scaler.transform([env_data])
|
|
| 85 |
env_data = torch.from_numpy(env_data).to(torch.float32)
|
| 86 |
|
| 87 |
# Obtain genus prediction
|
| 88 |
-
logits = classification_model(
|
| 89 |
temperature = 0.2
|
| 90 |
|
| 91 |
# Obtain the final genus probabilities
|
|
|
|
| 85 |
env_data = torch.from_numpy(env_data).to(torch.float32)
|
| 86 |
|
| 87 |
# Obtain genus prediction
|
| 88 |
+
logits = classification_model(dna_tokenized, env_data)
|
| 89 |
temperature = 0.2
|
| 90 |
|
| 91 |
# Obtain the final genus probabilities
|