项目作者: SamanKhamesian

项目描述 :
This project is an implementation of a simple linear SVM algorithm
高级语言: Python
项目地址: git://github.com/SamanKhamesian/Simple-Linear-SVM-Algorithm.git
创建时间: 2021-08-31T18:38:20Z
项目社区:https://github.com/SamanKhamesian/Simple-Linear-SVM-Algorithm

开源协议:Apache License 2.0

下载


Simple-Linear-SVM-Algorithm

Abstract

Support Vector Machine or SVM is one of the most popular Supervised Learning algorithms, which is used for Classification as well as Regression problems. However, primarily, it is used for Classification problems in Machine Learning. The goal of the SVM algorithm is to create the best line or decision boundary that can segregate n-dimensional space into classes so that we can easily put the new data point in the correct category in the future. This best decision boundary is called a hyperplane. Here is an example of how this algorithm works:

SVM algorithm result

To use this work on your researches or projects you need:

  • Python 3.7.0
  • Python packages:
    • matplotlib
    • numpy
    • scikit_learn
      #

To install Python:

First, check if you already have it installed or not.

  1. python3 --version

If you don’t have python 3 in your computer you can use the code below:

  1. sudo apt-get update
  2. sudo apt-get install python3

#

To install packages via pip install:

  1. sudo pip3 install matplotlib numpy scikit_learn

If you haven’t installed pip, you can use the codes below in your terminal:

  1. sudo apt-get update
  2. sudo apt install python3-pip

You should check and update your pip:

  1. pip3 install --upgrade pip

#