dsfsi / simcse-dna

huggingface.co
Total runs: 47
24-hour runs: 0
7-day runs: 9
30-day runs: 12
Model's Last Updated: August 19 2025

Introduction of simcse-dna

Model Details of simcse-dna

Project Description

This repository contains the trained model for our paper: Fine-tuning a Sentence Transformer for DNA & Protein tasks that is currently under review at BMC Bioinformatics. This model, called simcse-dna ; is based on the original implementation of SimCSE [1] . The original model was adapted for DNA downstream tasks by training it on a small sample size k-mer tokens generated from the human reference genome, and can be used to generate sentence embeddings for DNA tasks.

Prerequisites

Please see the original SimCSE for installation details. The model will als be hosted on Zenodo (DOI: 10.5281/zenodo.11046580).

Usage

Run the following code to get the sentence embeddings:


import torch
from transformers import AutoModel, AutoTokenizer

# Import trained model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("dsfsi/simcse-dna")
model = AutoModel.from_pretrained("dsfsi/simcse-dna")


#sentences is your list of n DNA tokens of size 6 
inputs = tokenizer(sentences, padding=True, truncation=True, return_tensors="pt")

# Get the embeddings
with torch.no_grad():
    embeddings = model(**inputs, output_hidden_states=True, return_dict=True).pooler_output

The retrieved embeddings can be utilized as input for a machine learning classifier to perform classification.

Performance on evaluation tasks

Find out more about the datasets and access in the paper (TBA)

Task 1: Detection of colorectal cancer cases (after oversampling)
5-fold Cross Validation accuracy Test accuracy
LightGBM 91 63
Random Forest 94 71
XGBoost 93 66
CNN 42 52
5-fold Cross Validation F1 Test F1
LightGBM 91 66
Random Forest 94 72
XGBoost 93 66
CNN 41 60
Task 2: Prediction of the Gleason grade group (after oversampling)
5-fold Cross Validation accuracy Test accuracy
LightGBM 97 68
Random Forest 98 78
XGBoost 97 70
CNN 35 50
5-fold Cross Validation F1 Test F1
LightGBM 97 70
Random Forest 98 80
XGBoost 97 70
CNN 33 59
Task 3: Detection of human TATA sequences (after oversampling)
5-fold Cross Validation accuracy Test accuracy
LightGBM 98 93
Random Forest 99 96
XGBoost 99 95
CNN 38 59
5-fold Cross Validation F1 Test F1
LightGBM 98 92
Random Forest 99 95
XGBoost 99 92
CNN 58 10
Authors

  • Mpho Mokoatle, Vukosi Marivate, Darlington Mapiye, Riana Bornman, Vanessa M. Hayes
  • Contact details : [email protected]
Citation

Bibtex Reference TBA

References

[1] Gao, Tianyu, Xingcheng Yao, and Danqi Chen. "Simcse: Simple contrastive learning of sentence embeddings." arXiv preprint arXiv:2104.08821 (2021).

Runs of dsfsi simcse-dna on huggingface.co

47
Total runs
0
24-hour runs
2
3-day runs
9
7-day runs
12
30-day runs

More Information About simcse-dna huggingface.co Model

More simcse-dna license Visit here:

https://choosealicense.com/licenses/cc-by-sa-4.0

simcse-dna huggingface.co

simcse-dna huggingface.co is an AI model on huggingface.co that provides simcse-dna's model effect (), which can be used instantly with this dsfsi simcse-dna model. huggingface.co supports a free trial of the simcse-dna model, and also provides paid use of the simcse-dna. Support call simcse-dna model through api, including Node.js, Python, http.

simcse-dna huggingface.co Url

https://huggingface.co/dsfsi/simcse-dna

dsfsi simcse-dna online free

simcse-dna huggingface.co is an online trial and call api platform, which integrates simcse-dna's modeling effects, including api services, and provides a free online trial of simcse-dna, you can try simcse-dna online for free by clicking the link below.

dsfsi simcse-dna online free url in huggingface.co:

https://huggingface.co/dsfsi/simcse-dna

simcse-dna install

simcse-dna is an open source model from GitHub that offers a free installation service, and any user can find simcse-dna on GitHub to install. At the same time, huggingface.co provides the effect of simcse-dna install, users can directly use simcse-dna installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

simcse-dna install url in huggingface.co:

https://huggingface.co/dsfsi/simcse-dna

Url of simcse-dna

simcse-dna huggingface.co Url

Provider of simcse-dna huggingface.co

dsfsi
ORGANIZATIONS

Other API from dsfsi

huggingface.co

Total runs: 199
Run Growth: 24
Growth Rate: 12.24%
Updated:December 05 2023
huggingface.co

Total runs: 185
Run Growth: 97
Growth Rate: 52.43%
Updated:September 14 2024
huggingface.co

Total runs: 66
Run Growth: -11
Growth Rate: -16.92%
Updated:January 27 2025
huggingface.co

Total runs: 39
Run Growth: 33
Growth Rate: 84.62%
Updated:September 16 2025
huggingface.co

Total runs: 21
Run Growth: -7
Growth Rate: -35.00%
Updated:December 05 2023
huggingface.co

Total runs: 20
Run Growth: -61
Growth Rate: -305.00%
Updated:September 03 2024