pystruct/pystruct — pull request #12 by vene (2013-07-02 16:37:43+00:00)
Title: [WIP] fix perceptron

Fix an embarrassing bug, add a test, simplify averaging a bit.

TODO: perform moving average to prevent overflow (failing test)