Linear Models for Classification — Applied Machine Learning in Python
Tue Oct 31 2023 07:44:01 GMT+0000 (Coordinated Universal Time)
Saved by
@elham469
Solver choices¶
Don’t use SVC(kernel='linear'), use LinearSVC
For n_features >> n_samples: Lars (or LassoLars) instead of Lasso.
For small n_samples ( < 10.000?), don’t worry.
LinearSVC, LogisticRegression: dual=False if n_samples >> n_features
LogisticRegression(solver="sag") for n_samples large.
Stochastic Gradient Descent for n_samples really large
content_copyCOPY
computationally better to be used
https://amueller.github.io/aml/02-supervised-learning/06-linear-models-classification.html
Comments