Determine whether the two classes are linearly separable (algorithmically in 2D)

前端 未结 9 1969
一向
一向 2020-12-13 11:09

There are two classes, let\'s call them X and O. A number of elements belonging to these classes are spread out in the xy-plane. Here is an example where the two classes are

9条回答
  •  甜味超标
    2020-12-13 11:29

    As mentioned by ElKamina, Linear Perceptron is guaranteed to find a solution if one exists. This approach is not efficient for large dimensions. Computationally the most effective way to decide whether two sets of points are linearly separable is by applying linear programming.

    A code with an example to solve using Perceptron in Matlab is here

提交回复
热议问题