Giter Club home page Giter Club logo

ml1-lab2's Introduction

ML1-Lab2

SVM, lab2 in the course Machine Learning at KTH

ml1-lab2's People

Contributors

oskarek avatar robban112 avatar

Watchers

 avatar  avatar

ml1-lab2's Issues

Implement the function objective

Define a function which implements equation (4). This function will only
receive the vector ⃗α as a parameter. You can use global variables for other
things that the function needs (t and K values).

Implement the indicator function

Implement the indicator function (equation 6) which uses the non-zero
αi
’s together with their ⃗xi
’s and ti
’s to classify new points

Plotting

In order to see your data, you can use the plot functions from matplotlib

• Extract the non-zero α values

If the data is well separated, only a few of the α values will be non-zero.
Since we are dealing with floating point values, however, those that are
supposed to be zero will in reality only be approximately zero. Therefore,
use a low threshold (10−5
should work fine) to determine which are to be
regarded as non-zero.
You need to save the non-zero αi
’s along with the corresponding data
points (⃗xi) and target values (ti) in a separate data structure, for instance
a list.

non linear kernels

Implement the two non-linear kernels. You should be able to classify
very hard data sets with these.

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.