Skip to content

Instantly share code, notes, and snippets.

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:
@Dilaz
Dilaz / xor.py
Last active March 3, 2020 23:40
import tensorflow as tf
def main():
training_data = [
(0, 0, 0),
(1, 0, 1),
(0, 1, 1),
(1, 1, 0)
### 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: