Extensions to Linear Regression with Numeric Input
Solving Classification Problems with Penalized Regression
CODE
- Listing 4-4: Converting a Classifi cation Problem to an Ordinary Regression Problem
by Assigning Numeric Values to Binary Labels
- Figure 4-7: Coefficient curves for rocks versus mines classification problem solved by converting to labels
Working with Classification Problems Having More Than Two Outcomes
Understanding Basis Expansion: Using Linear Methods on Nonlinear Problems
CODE
- Listing 4-5: Basis Expansion for Wine Taste Prediction
- Figure 4-8: Functions generated to expand wine attribute session
Incorporating Non-Numeric Attributes into Linear Methods
CODE
- Listing 4-6: Coding Categorical Variable for Penalized Linear Regression - Abalone Data—larsAbalone.py