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

Using model to predict #26

Open
kvetab opened this issue Dec 22, 2021 · 2 comments
Open

Using model to predict #26

kvetab opened this issue Dec 22, 2021 · 2 comments

Comments

@kvetab
Copy link

kvetab commented Dec 22, 2021

Hi,
I'm sorry if this is a silly question, but I'm not too familiar with Tensorflow 1. After I train the model like in the last or second-to-last cell of the tutorial notebook, how do I use it to make predictions on other proteins? I'm using this for a binary classification on antibody sequences, but I can't figure out how to use the model after it's trained.
Thanks a lot!

@pykao
Copy link

pykao commented Dec 23, 2021

I think the main purpose of this paper is to learn the protein embedding in an unsupervised manner.

I suggest you to use babbler1900 as a embedding extractor that maps the antibody sequence into a 1900 feature vector. Then, train a classifier such as random forest, xgboost, or MLP on your classification task.

@norakearns
Copy link

Hi,
I have a question about shuffling the sequences while maintaining the association between value and sequence - in the UniRep jupyter notebook tutorial you mention
"You can get around this by just prepending every integer sequence with the sequence label (eg, every sequence would be saved to the file as "{brightness value}, 24, 1, 5,..." and then you could just index out the first column after calling the bucket_op."
I am not sure how to implement this and was wondering if you might provide some guidance?
Thank you!

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

3 participants