3 ms·
Can't believe it's already been 10 years... https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/ https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
by ckastner 11d ago
Can't believe it's already been 10 years...
https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/ https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
- BenoitP 11d agoWhat an eerie feeling reading this, or was it prescient?: """ def fizz_buzz_encode(i): if i % 15 == 0: return np.array([0, 0, 0, 1]) elif i % 5 == 0: return np.array([0, 0, 1, 0]) elif i % 3 == 0: return np.array([0, 1, 0, 0]) else: return np.array([1, 0, 0, 0]) interviewer: OK, that's probably enough. me: That's enough setup, you're exactly right. [<--- !!] [...] """ Damn, Claude was there all along
- ckastner 11d agooh, I missed that. Brilliant!
- kevinrineer 11d ago> me: That's enough setup, you're exactly right. So that's where in the training set current models get that phrase! /j