Author: Yintao-Xu, Date: 09/11, 2018
The solution code in Python3 to the exercise 8.6(a) of learning from data.
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.
- Open terminal at target directory
- 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
-
comparison.py
is the entry of the repository -
If you have trouble in the code of linear hard-margin SVM classifer, my another repository may provide you enough guidance.