January 2018
Intermediate to advanced
474 pages
10h 23m
English
Now let's see how to implement the same MLP using TFLearn, another high-level library for TensorFlow:
import tflearn
num_layers = 2num_neurons = []for i in range(num_layers):num_neurons.append(256) learning_rate = 0.01n_epochs = 50batch_size = 100
# Build deep neural networkinput_layer = tflearn.input_data(shape=[None, num_inputs])dense1 = tflearn.fully_connected(input_layer, num_neurons[0], activation='relu') ...
Read now
Unlock full access