Live data from Hacker News

Tinn: A tiny neural network library written in C99

github.com

61–62 of 62 posts

Re: Tinn: A tiny neural network library written in C99

#61
post #42

What exactly is the output of the example in `test.c`? I.e. what do the numbers mean? The error in the prediction I guess, but the prediction of what? What is the first entry in the semion data set? a "0"?

The first row of output is the vector of numerals 0-9 where 1.0 indicates "it was this digit."

The second row is the probability of each given the input.

e.g. This output means it's 98.6% certain that the input represents the digit 7.

    0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 
    0.000009 0.000005 0.000000 0.000000 0.003899 0.012933 0.000436 0.986013 0.000005 0.000000

Re: Tinn: A tiny neural network library written in C99

#62
post #7

Earlier quoted context omitted.

Minimal dependencies; people are starting to get fed up with having to bootstrap and/or compile the planet just to be able to run some software. The situation has gotten completely out of hand, especially if one is not on GNU/Linux.

This does nor preclude the use of threads or SIMD. Essentially this library is a demo toy that will need a lot to work to make useful in real conditions.

The included test script demonstrates that it can learn to recognise the semeion digits with reasonable accuracy in under a second. I've tested it on the pendigits data (8 points to describe a digit) and it can learn to recognise those with 93% accuracy in 1.5 seconds. What more do you want from 200 lines of code?
Post reply on HN