[ML] Neural Net for XOR
Neural Net XOR with logistic regression 소스 코드12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import tensorflow as tfimport numpy as np tf.set_random_seed(777) # for reproducibilitylearning_rate = 0.1 x_data = [[0, 0], [0, 1], [1, 0], [1, 1]]y_data = [[0], [1], [1], [0]]x_data = np.array(x_data, dtype=np.float32)y_data = np.array(y_data, dtype=np.flo..
2018. 6. 23.