Skip to content
This repository was archived by the owner on Nov 20, 2026. It is now read-only.
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