News for hackers. Stuff that matters.
Re:Show HN: Single neuron neural network written in COBOL by im3w1l on Thursday September 03, 2020 @10:21PM (#24371134)
When classifying it's often a good idea to feed the prediction into a sigmoid-function.

I have never seen cobol code before, only heard about it so thanks for posting some. What do rows like "01 ERR PIC S99V9999." mean?

Re:Show HN: Single neuron neural network written in COBOL by __palo_alto__ on Thursday September 03, 2020 @10:43PM (#24371225)
I think the perceptron algorithm does not include a sigmoid, just a stepwise activation. https://en.wikipedia.org/wiki/Perceptron
Re:Show HN: Single neuron neural network written in COBOL by atum47 on Thursday September 03, 2020 @10:27PM (#24371162)
ERR is the name of my variable "error" S indicates that this value is signed 99 is two digits V is a decimal separator and the other 9999 are 4 decimal places

http://www.csis.ul.ie/cobol/course/DataDeclaration.htm

Re:Show HN: Single neuron neural network written in COBOL by jecel on Thursday September 03, 2020 @10:53PM (#24371262)
And the 01 at the start of the line is the level number as explained in the link. It is how Cobol declared nested records, which Fortran and Algol lacked but became popular through PL/I, Pascal and C.
Re:Show HN: Single neuron neural network written in COBOL by bbunix on Thursday September 03, 2020 @10:29PM (#24371172)
I think 01 line number ERR what you think it means PIC S99V9999 is like a printf format for the number field