I'm initialising DNN of shape [2 inputs, 2 hiddens, 1 output] with these weights and biases:
#hidden layer
weight1= tf.Variable(tf.random_uniform([2,2], -1, 1),
name="layer1");
bias1 = tf.Variable(tf.zeros([2]), name="bias1");
#output layer
weight2 = tf.Variable(tf.random_uniform([2,1], -1, 1),
name="layer2");
bias2 = tf.Variable(tf.zeros([1]), name="bias2");
That's what I followed some online article, however, I wonder what if I initialise bias values using tf.random_uniform
instead of tf.zeros
? Should I choose zero biases or random biases generically?