Skip to content

Files

Latest commit

 

History

History

OC-SVM

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

OC-SVM

This is the implementation of OC-SVM (One Class Support Vector Machine).

  • Class: 1
  • Problem: Linearly Non-separable
  • Decision Boundary: Hyperplane + Kernel

Usage

1. Build

Please build the source file according to the procedure.

$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ..

2. Dataset Setting

The following hierarchical relationships are recommended.

OC-SVM_dataset

3. Execution

The following is an example for Toy Dataset.

Setting

Please set the shell for executable file.

$ vi scripts/toy.sh

If you want to view specific examples of command line arguments, please view "src/main.cpp" or add "--help" to the argument.

#!/bin/bash

DATA='toy'

./OC-SVM \
    --dataset ${DATA} \
    --nd 2 \
    --nu 0.003 \
    --lr 0.0001 \
    --kernel "rbf" \
    --gamma 5.0

Run

Please execute the following to start the program.

$ sh scripts/toy.sh

Formula

OC-SVM_dual OC-SVM_obj OC-SVM_delta OC-SVM_update OC-SVM_class

Algorithm

train test