Downloads · 30 days
18
32% of all-time downloads
isikz/kinase_mc_group_esm1b
kinase_mc_group_esm1b is a text classification model from isikz. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This repository also includes a fine-tuned version of the ESM-1b) model for kinase classification, trained using 392 kinases from Manning human kinase dataset. The model is designed for multiclass classification, pred…
Downloads · 30 days
18
32% of all-time downloads
All-time downloads
57
Public
Repo size
5.2 GB
Likes
0
Public
Click a slice to open those files.
.bin2.6 GB · 100%
From the Hugging Face model README
This repository also includes a fine-tuned version of the ESM-1b model for kinase classification, trained using 392 kinases from Manning human kinase dataset. The model is designed for multiclass classification, predicting the kinase group associated with a given sequence. Our aim is to obtain a pLM which is aware of kinase group information.
Zeynep Işık (MSc, Sabanci University)
The dataset was constructed using kinase information from Manning. There are 392 human kinases which belong to one of the 10 kinase groups.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load the model and tokenizer
model_name = "isikz/kinase_mc_group_esm1b"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Example sequence
sequence = "MKTLLLTLVVVTIVCLDLGYTGV"
# Tokenize input
inputs = tokenizer(sequence, return_tensors="pt")
# Get prediction
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class = torch.argmax(logits, dim=-1).item()
print(f"Predicted Kinase Group: {predicted_class}")