Giter VIP home page Giter VIP logo

separating_hyperplane's Introduction

Separate hyperplane with Linear programing

This assignment was made as a term project for the class of Optimal Nonlinear Design for the 2021-1 semester. The goal of this task is to separate the dummy of points using a hyperplane. There are two types of datasets in this task. One can split two dummy with a linear-hperplane and the other can split two dummy with a non-linear-hyperplane. linear_dummy nonlinear_dummy

The example of dummies(datasetA-5000, datasetB-5000)

Installation

Before anything else, you must have the cplex-env virtual environment installed. Everything proceeds under the assumption that the cplex-env virtual environment is installed.

# You must be on the enviroment of `cplex`
pip setup.py install
pip install -e .

Results

DataSetA-1000.dat

linear_hyperplane1

DataSetB-1000.dat

nonlinear_hyperplane1

DataSetA-2000.dat

linear_hyperplane2

DataSetB-2000.dat

nonlinear_hyperplane2

DataSetA-3000.dat

linear_hyperplane1

DataSetB-3000.dat

nonlinear_hyperplane1

DataSetA-4000.dat

linear_hyperplane1

DataSetB-4000.dat

nonlinear_hyperplane1

DataSetA-5000.dat

linear_hyperplane1

DataSetB-5000.dat

nonlinear_hyperplane1

Example

To check the generalized code, I tried to obtain the hyperplane separation by changing only the order using an arbitrary dumy. nonlinear_hyperplane

Order 1

nonlinear_hyperplane1

Order 2

linear_hyperplane1

Order 5

nonlinear_hyperplane1

separating_hyperplane's People

Contributors

joonyeobjeon avatar revol2236 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.