shogun-toolbox / shogun-web

Shogun Website
5 stars 7 forks source link

Perceptron #25

Closed dvalcarce closed 11 years ago

dvalcarce commented 11 years ago

Implements Perceptron demo as @iglesias suggested (https://github.com/shogun-toolbox/shogun/pull/1005).

sonney2k commented 11 years ago

please rebase against master - this patch has conflicts.

Would it be possible to show contour lines in the figure too? It would be great to see the actual decision boundary...

dvalcarce commented 11 years ago

Sorry for the conflicts.

I added contour lines. However, they seem a bit confusing to me.

sonney2k commented 11 years ago

please drop demos/init.pyc from your submit

dvalcarce commented 11 years ago

Sorry for the .pyc files.

I am using the same JS contour library (conrec.js) I used in binary classification but it doesn't look very nice with a linear classifier.

sonney2k commented 11 years ago

closing for the time being

iglesias commented 11 years ago

I've just run the demo and taken a look. IMHO it would look nicer if every time you do "classify" a new perceptron is initialized and the separating hyperplane plotted. This idea doesn't fit though with the contour plots thing -- contour plots for several classifiers together may look really confusing.

Maybe it can be divided into two parts (two tabs?), one of them that shows one classifier with the contour plots and another that can show several perceptrons.