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/ch08 at master · luispedro/BuildingMachineLearningSystemsWithPython

Expand file tree

/

ch08

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

ch08

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
apriori
apriori
 
 
data
data
 
 
README.rst
README.rst
 
 
all_correlations.py
all_correlations.py
 
 
averaged.py
averaged.py
 
 
chapter.py
chapter.py
 
 
corrneighbours.py
corrneighbours.py
 
 
figure3.py
figure3.py
 
 
load_ml100k.py
load_ml100k.py
 
 
norm.py
norm.py
 
 
regression.py
regression.py
 
 
similar_movie.py
similar_movie.py
 
 
stacked.py
stacked.py
 
 

README.rst

Outline

Chapter 8

Support code for Chapter 8: Recommendations.

The code refers to the second edition of the book and this code has been significantly refactored when compared to the first one.

Ratings Prediction

Note that since the partition of the data into training and testing is random, everytime you run the code, the results will be different.

load_ml100k.py
Load data & partition into test/train
norm.py
Normalize the data
corrneighbours.py
Neighbour models based on ncrroaltoin
regression.py
Regression models
stacked.py
Stacked predictions
averaged.py
Averaging of predictions (mentioned in book, but code is not shown there).

Association Rule Mining

Check the folder apriori/

apriori/histogram.py
Print a histogram of how many times each product was bought
apriori/apriori.py
Implementation of Apriori algorithm and association rule building
apriori/apriori_example.py
Example of Apriori algorithm in retail dataset
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.