import tensorflow as tf
x = tf.range(100)
neurons = 5 # Number of neurons in the hidden layer activation = tf.keras.activations.relu # Activation function for the hidden layer
def neural_network_model(x, neurons, activation): # Define first layer first_layer = tf.keras.layers.Dense(units=neurons, activation=activation)
Comments
0No comments yet.