[[
wikihub
]]
Search
⌘K
Explore
People
For Agents
Sign in
Explore
People
For Agents
Sign in
@jeremynixon / Thinking / daily/2017-08-28-interesting-facts-in-machine-learning-logistic-regression.md
Suggest edit
Cancel
Submit suggestion
Title
Name
Note
--- title: "17-08-28 Interesting Facts in Machine Learning (Logistic Regression)" visibility: public --- # 17-08-28 Interesting Facts in Machine Learning (Logistic Regression) Category: [[idea-lists-upon-request|Idea Lists (Upon Request)]] [Read the original document](https://docs.google.com/document/d/1Hd3hgFjzURUuzJhgvvGxl3R8F7KHKB-UlAYONrrrIJQ/edit?usp=drivesdk&sa=D&ust=1596495076898000&usg=AOvVaw3I0XOktCoI9dKtf9UqLo_v) <!-- gdoc-inlined --> --- 1. Two major ways to do multinomial eval: 1. Softmax Loss 2. One vs. All with binary (logistic) function 2. Naming - 1. “Logistic” regression due to Sigmoid (logistic) function 2. “Softmax” regression due to softmax function 3. No closed form solution, despite convexity 4. Many, many optimizers: 1. Newton / Newton-CG 2. BFGS 1. L-BFGS 3. IRLS 4. Trust Region Conjugate Gradient 5. Gradient Descent 1. GD + Line Search 6. Stochastic Average Gradient 5. Difficult Bayesian Solutions (No convenient conjugate prior) 6. Discriminative (Learns P(Y|X), rather than first the joint P(Y, X) and then conditioning on X (the generative approach)) 7. Without regularization, the weights will become arbitrary large, damaging generalization. Penalties are more important than in the regression setting. 8. You can get better generalization with a stochastic solver [https://arxiv.org/pdf/1708.05070.pdf] 9. The reason scaling can still be important is for the optimizer - even though you technically have a convex model and will get the same solution 10. Linear generalization is stronger than almost every other form of generalization for unstructured data (trees + networks overfit) 11. Every relationship between your feature and the label should be as close to linear as possible 12. You can use boxcox transform to automatically get close to linear --- *Source: [Original Google Doc](https://docs.google.com/document/d/1Hd3hgFjzURUuzJhgvvGxl3R8F7KHKB-UlAYONrrrIJQ/edit?usp=drivesdk&sa=D&ust=1596495076898000&usg=AOvVaw3I0XOktCoI9dKtf9UqLo_v)*