GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BuildingMachineLearningSystemsWithPython/ch07 at master · luispedro/BuildingMachineLearningSystemsWithPython

Expand file tree

/

ch07

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

ch07

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
data
data
 
 
.gitignore
.gitignore
 
 
README.rst
README.rst
 
 
boston1.py
boston1.py
 
 
boston1numpy.py
boston1numpy.py
 
 
boston_cv_penalized.py
boston_cv_penalized.py
 
 
figure1_2.py
figure1_2.py
 
 
figure3.py
figure3.py
 
 
figure4.py
figure4.py
 
 
lasso_path_plot.py
lasso_path_plot.py
 
 
lr10k.py
lr10k.py
 
 
predict10k_en.py
predict10k_en.py
 
 

README.rst

Outline

Chapter 7

Support code for Chapter 7: Regression

Boston data analysis

This dataset is shipped with sklearn. Thus, no extra download is required.

boston1.py
Fit a linear regression model to the Boston house price data
boston1numpy.py
Version of above script using numpy operations for linear regression
boston_cv_penalized.py
Test different penalized (and OLS) regression schemes on the Boston dataset
figure1_2.py
Show the regression line for Boston data
figure3.py
Show the regression line for Boston data with OLS and Lasso
figure4.py
Scatter plot of predicted-vs-actual for multidimensional regression

10K data analysis

lr10k.py
Linear regression on 10K dataset, evaluation by cross-validation
predict10k_en.py
Elastic nets (including with inner cross-validation for parameter settings). Produces scatter plot.

MovieLens data analysis

In this chapter, we only consider a very simple approach, which is implemented in the usermodel.py script.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.