GithubHelp home page GithubHelp logo

machine-learning-in-action-python3's Introduction

Machine Learning in Action

This is the source code of the book Machine Learning in Action authored by Peter Harrington, which is modified to python3 version code.

System Information

Operating System: Mac OS High Sierra

Programming Language: Python 3.6.4

Instructions

Chapter 2: Classifying with k-Nearest Neighbors

knn.py: include some basic functions about the knn algorithm.

classify_person.py: the main program to test whether a person is suitable to Helen.

classify_digits.py: the main program to train and test the model to classify the handwriting 0-9.

Chapter 3: Splitting Datasets One Feature at a Time: Decision Trees

trees.py: include some basic functions about the decision tree algorithm.

tree_plotter.py: visualize the decision tree.

tree_test.py: test the example of lenses based on decision tree algorithm.

Chapter 4: Classifying with Probability Theory: Naive Bayes

bayes.py: include some basic functions about the naive bayes algorithm.

bayes_test.py: test the example in the book.

classify_email.py: classify the email based on naive bayes algorithm.

Chapter 5: Logistic Regression

logistic_regression.py: include some basic functions about the logistic regression algorithm.

logistic_test.py: test the example in the book based on logistic regression.

Chapter 6: Support Vector Machines

svm.py: include some basic functions about the Support Vector Machine algorithm.

svm_test.py: test the example in the book based on SVM algorithm.

test_digits.py: classify digits based on SVM.

Chapter 7: Improving Classification with the AdaBoost Meta-Algorithm

adaboost.py: include some basic functions about the AdaBoost algorithm.

test_adaboost.py: test the example in the book based on AdaBoost algorithm.

Chapter 8: Predicting Numeric Values: Regression

regression.py: include some basic functions about the linear regression algorithm.

regression_test.py: test the example in chapter 8

abalone.py: estimate the age of abalone.

Chapter 9: Tree-Based Regression

regression_tree.py: include some basic functions about the regression tree.

regression_tree_test.py: test for the example in the book.

example.py: comparing tree methods to standard regression.

Chapter10: Grouping Unlabeled Items Using K-Means Clustering

kmeans.py: include some basic functions about k-means clustering.

test_kmeans.py: test for the example in the book.

Chapter11: Association Analysis with the Apriori Algorithm

apriori.py: include some basic functions about Apriori algorithm.

test_apriori.py: test for the example in the book.

Chapter12: Efficiently Finding Frequent Itemsets with FP-Growth

fpgrowth.py: include some basic functions abou FP_Growth.

test_fpgrowth.py: test for the example in the book.

kosarak.py: kosarak example.

Chapter13: Using Principal Component Analysis to Simplify Data

pca.py: include some basic functions about PCA.

test_pca.py: test the example in the book.

example.py: using PCA to reduce the dimensionality of semiconductor manufacturing data.

Chapter14: Simplifying Data with the Singular Value Decomposition

svd.py: include some basic functions about the SVD.

test_svd.py: test the example in the book.

recommand.py: example: a restaurant dish recommendation engine.

compression.py: example: image compression with the SVD.

machine-learning-in-action-python3's People

Contributors

justinnie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.