Skip to content

liubai01/Learning-from-data-ex8.6-a-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning-from-data-ex8.6-a

Author: Yintao-Xu, Date: 09/11, 2018

Introduction

The solution code in Python3 to the exercise 8.6(a) of learning from data.

A brief recall of the question

Construct a toy data set with N = 20 using the method in Example 8.4. (a) Run the SVM algorithm to obtain the maximum margin separator (b, w) SVM and compute its E_out and margin.

Note: If you want more details(like what is Example8.4), please query the book(e-Chapter8) by yourself. Because it may offend copyright if I post all the detailed content in the book.

Prerequisite

cvxopt, seaborns

Quick Start

  1. Open terminal at target directory
  2. follow these steps:
git clone https://github.com/liubai01/Learning-from-data-ex8.6-a-.git
cd Learning-from-data-ex8.6-a-/
python comparison.py 

Hint

  1. comparison.py is the entry of the repository

  2. If you have trouble in the code of linear hard-margin SVM classifer, my another repository may provide you enough guidance.

About

The solution to the exercise 8.6(a) of learning from data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages