DNN Handson
DNN Handson
DNN Handson
y_data =y.reshape(1,1000)
layer_dims = [2,9,9,1]
import tensorflow as tf
def initialize_parameters_deep(layer_dims):
L = len(layer_dims)
parameters = {}
for l in range(1,L):
parameters['W' + str(l)] =
tf.Variable(initial_value=tf.random_normal([layer_dims[l], layer_dims[l-1]],
dtype=tf.float64)* 0.01)
parameters['b' + str(l)] =
tf.Variable(initial_value=tf.zeros([layer_dims[l],1],dtype=tf.float64) * 0.01)
return parameters