AppliedGo / comments

Utteranc.es comments for appliedgo.net
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

perceptron #6

Open christophberger opened 1 year ago

christophberger commented 1 year ago

Written on 02/25/2017 14:00:43

URL: https://appliedgo.net/perceptron/

christophberger commented 1 year ago

Migrated comment, written by Tom Kirby-Green on 04/11/2017 04:40:27

Thank you for the wonderful article. I'm currently exploring Deep Learning I my spare time and Go has been on my 'to-do' list to learn for a while now. Your article serves to push it up said list. Looking forward to reading your other posts.

christophberger commented 1 year ago

Migrated comment, written by Christoph on 04/15/2017 16:41:24

Thanks! I think Go will find its place in the area of deep learning. It is one of the few languages that bring the speed of compilation and the simplicity of a scripting language together.

christophberger commented 1 year ago

Migrated comment, written by slidenerd on 08/06/2017 12:43:47

nice tutorial, could you redo a version of this in python , not a go programmer

christophberger commented 1 year ago

Migrated comment, written by Christoph on 08/06/2017 13:29:22

This blog is about Go; hence a post about Python would not really fit in. Tip: Click the last link in the article to find a blog post about building a single-neuron "network" (similar to the perceptron discussed here) in Python.

christophberger commented 1 year ago

Migrated comment, written by cjoshmartin on 06/14/2018 06:24:34

How are the values of `a` and `b` set?

christophberger commented 1 year ago

Migrated comment, written by Christoph on 06/14/2018 20:40:46

They are set in main(). I take a cheap and dirty shortcut here and declare a and b as global variables (see the code block after the Training headline). This saves a few function parameters, but frankly, I would not do it again this way. Global variables are only ok in very small entities of source code, and even there they can cause the reader to lose track of the data flow, as your question proves. Even I had to look twice until I found the place were a and be are set, and I am the one who wrote the code! (Even though it has been quite a while ago...)