Repository navigation
How to do the logistic regression on my own dataset #79
|
Hello, I want to retrain the part of logistic regression. Can I just update the parameters of
Thanks for your help. |
Replies: 1 comment 3 replies
|
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 |
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