This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am dilaz on github. | |
* I am dilaz (https://keybase.io/dilaz) on keybase. | |
* I have a public key whose fingerprint is E1EA E6FA 7AB7 FA0F C726 7A46 C1F9 AE19 3C26 5598 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
def main(): | |
training_data = [ | |
(0, 0, 0), | |
(1, 0, 1), | |
(0, 1, 1), | |
(1, 1, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
def encode_input(num): | |
return [int(i) for i in tuple(bin(num)[2:].zfill(8))] | |
def encode_fizzbuzz(num): | |
if num % 3 == 0 and num % 5 == 0: | |
# Fizzbuzz | |
return [1, 0, 0, 0] | |
elif num % 3 == 0: |