Giter Site home page Giter Site logo

svm's Introduction

TP SVM

Question 1

We load the Iris Dataset and train a simple Linear Kernel SVM. The fiting score is 66%. We get a cross validated score of 72% +/-16% accuracy.

Question 2

We now train a polynomial kernel SVM and get a fiting score of 72% (better) but the cross validated score is 72% +/- 16%. No improvement

Question 3

See Notebook

Question 4

The classification error 1 or 0 has 2 shelves, so we can't minimise this constant by chunk and discountinuous function. We use the Hinge function which is majorating the error function (see plot in notebook). It is a convex function so we can minimise it with a gradient descent.

Question 5

We can see in the plot that as C increases, the prediction error decreases until it's stable. The coefficient tunes the number of classification errors we accept when larger we accept less errors.*

Question 6

As expected when we add columns of noise the performances decreases but the rate is not so strong

Question 7

The features are standardized because the SVM algorithm lays on distances calculations. So we need to reduce the importance of the big values.

Question 8

The plot clearly shows that the performances are significantly lower than those of the linear kernel SVM.

svm's People

Contributors

rvi008 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.