News for hackers. Stuff that matters.
Re:Fizz Buzz in Tensorflow (2016) by razodactyl on Monday February 12, 2018 @06:18AM (#16357945)
This was fun, I did a live demo at work a few months ago on this, got stuck on getting the model to predict with enough accuracy to be useful then came across this post, my activation function was slightly off.

Most people understand Fizz Buzz, building up and solving the problem with a neural network shows that a bit of ML code can solve the problem without being programmed explicitly to do so, quite a good example.

Re:Fizz Buzz in Tensorflow (2016) by skrebbel on Monday February 12, 2018 @06:40AM (#16358026)
> ML code can solve the problem without being programmed explicitly to do so

Umm, no. He implemented all of Fizz Buzz except the loop in his "fizz_buzz_encode" function. Totally explicit.

Re:Fizz Buzz in Tensorflow (2016) by nl on Monday February 12, 2018 @07:17AM (#16358145)
That’s the joke!

He implements it explicitly but only to generate training data.

Re:Fizz Buzz in Tensorflow (2016) by ovi256 on Monday February 12, 2018 @06:57AM (#16358097)
That's just code to generate the examples, an example of synthetic data. He could just have written down the expected output instead of doing that.
Re:Fizz Buzz in Tensorflow (2016) by amelius on Monday February 12, 2018 @07:55AM (#16358281)
> Most people understand Fizz Buzz, building up and solving the problem with a neural network shows that a bit of ML code can solve the problem without being programmed explicitly to do so, quite a good example.

If you train your model with completely different data than you use for inference, there is absolutely no guarantee that it will work as expected. In this case, they trained with numbers >= 1024, where numbers <= 100 were used for inference.