Giter Club home page Giter Club logo

svm's Introduction

Support Vector Machine

Simple SVM from scratch using CVXOPT.

Based on: D. J. Sebald and J. A. Bucklew, "Support vector machine techniques for nonlinear equalization," in IEEE Transactions on Signal Processing, vol. 48, no. 11, pp. 3217-3226, Nov. 2000.

Dependency: numpy, cvxopt, matplotlib, sklearn (For convenience)

usage:

main.py [-h] [--test_type TEST_TYPE] [--test_number TEST_NUMBER] [--kernel_type KERNEL_TYPE] [--dataset_path DATASET_PATH] [--dataset_name DATASET_NAME]

Support Vector Machine from Scratch

optional arguments: -h, --help show this help message and exit

--kernel_group KERNEL_GROUP Select kernel's group from: [linear, non_linear]

--dataset_number DATASET_NUMBER Insert ID for LINEAR dataset: [1, 2]. Insert ID for NON LINEAR dataset: [1:RandomNonLinear, 2:XDataset, 3:MoonDataset, 4:CirclesDataset, 6:IrisDataset]

--kernel_type KERNEL_TYPE [ONLY FOR NON LINEAR] Select kernel's type from: [polynomial, gaussian]

--dataset_path DATASET_PATH Insert path of your own dataset

--dataset_name DATASET_NAME Insert name of your own dataset

Example:

python3 main.py --kernel_group linear

python3 main.py --kernel_group non_linear --dataset_number 1 --kernel_type polynomial

svm's People

Contributors

pavva94 avatar

Watchers

 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.