Coder Social home page Coder Social logo

svmfirstlook's Introduction

#SVM

using scikit-learn do execrises about SVM

environment:Ubuntu14.04 sublime2 python2.7.6

Classification contrast :

  • Linear model: compare with Perceptron

    • plot_linear_model.py
    • plot_perceptron_test1.py (different coef_init and intercept_init)
    • plot_perceptron_test2.py (different order)
  • Non-linear model: To explain the performance of the svm is sensitive to the different kernel:

Regression contrast :

How to choose parameters C and gamma in linear and RBF kernel ?

  • plot_linear_parameters_different_c.py
  • plot_linear_parameters_different_c_one_noise.py
  • plot_rbf_parameters_different_c.py
  • plot_rbf_parameters_different_gamma.py

DataSets :

  • iris

    • Number of Instances: 150 (50 in each of three classes)
    • Number of Attributes: 4 numeric, predictive attributes and the class

    Summary Statistics: Min Max Mean SD Class Correlation sepal length = 4.3 7.9 5.84 0.83 0.7826 sepal width = 2.0 4.4 3.05 0.43 -0.4194 petal length = 1.0 6.9 3.76 1.76 0.9490 (high!) petal width = 0.1 2.5 1.20 0.76 0.9565 (high!)

  • balance scale (polynomial)

    • Number of Instances: 625 (49 balanced, 288 left, 288 right)
    • Number of Attributes: 4 (numeric) + class name = 5

    Later, I have already discarded the datas of 49 balanced to hold the same weight of the dataset.

##关于作者

    nickName = "Quentin_Hsu"
    email    = "[email protected]"

svmfirstlook's People

Contributors

jlovedragon avatar

Stargazers

Roman avatar  avatar

Watchers

James Cloos avatar  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.