Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finetune a pretrained model on a new dataset without using mode_x to optimize performance for the new target. #199

Open
shamimshahcheraghi opened this issue Aug 18, 2024 · 1 comment

Comments

@shamimshahcheraghi
Copy link

I want to use a pretrained model that excludes mod_x, but I can't locate the .pth file in the standard pretrained folder.

model = model = ModelInterface_for_Generic_AASeq_Regression(
model_class=Model_for_Generic_AASeq_Regression_LSTM
)
model.load('pretrained_models.zip', model_path_in_zip='generic/rt.pth')

@jalew188
Copy link
Collaborator

Please use peptdeep.pretrained_models.ModelManager, it has a pre-trained rt_model attr.

Then, if you don't need mod_x, please use:

df["mods_bak"] = df["mods"]
df["mod_sites_bak"] = df["mod_sites"]
df["mods"] = ""
df["mod_sites"] = ""

Do whatever you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants