News for hackers. Stuff that matters.
Re:Neural networks in JavaScript by klapinat0r on Friday July 11, 2014 @11:21AM (#8020589)
Would you mind elaborating the linear separable part?

As in, the following would be linear separable (all labels on the same side of the line)?

   x2 ^
      |
      |
      A     A
      |
      |
      B-----B----->
                   x1
Re:Neural networks in JavaScript by cyorir on Friday July 11, 2014 @02:06PM (#8021525)
It's a bit hard to elaborate. You have to rember that a classification problem may be generalized to more than just two dimensions, in fact it can be generalized to however many dimensions are necessary to describe the data. In the general multidimensional cases linearly separable relates to the number and type of hyperplanes (subspaces) necessary to correctly classify the data.

In this simple 2-d case the subspace is a line, so this example is linearly separable. In the 3rd dimensional case linearly separable refers to classification using a single 2-dimensional plane. For 4 dimensions with the data, you need a single 3-dimensional hyperplane for it to be linearly separable, and so on.

Re:Neural networks in JavaScript by dnautics on Friday July 11, 2014 @02:41PM (#8021716)
generally a linear function takes the form of:

v(x1,x2) = C1 * x1 + C2 * x2 + C3.

C's being "coefficients".

In your case, v(x1,x2) = 0x1 + x2 + 0

i.e. C1 = 0; C2 = 1; C3 = 0

suffices, where a result v > 0.5 indicates A and v <= 0.5 indicates B.