Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

How to do the logistic regression on my own dataset #79

Answered by joshim5
Yang-J-LIN asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Yang, yes that could work! If you just want to train the regression, make sure that you just train the regression and set requires_grad=False for everything else: https://github.com/facebookresearch/esm/blob/master/esm/modules.py#L315

You'll also want to include regularization. See Figure 6 for the grid search we performed to choose hyperparameters.

When we trained the logistic regression, we actually used the Liblinear solver from Scikit learn for fast convergence: https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Yang-J-LIN
Comment options

@tomsercu
Comment options

@Leo-T-Zang
Comment options

Answer selected by Yang-J-LIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants