Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

simple keras model with one layer

import tensorflow as tf

l0 = tf.keras.layers.Dense(units=1, input_shape=[1]) 
model = tf.keras.Sequential([l0])
model.compile(loss='mean_squared_error', optimizer=tf.keras.optimizers.Adam(0.1))
history = model.fit(celsius_q, fahrenheit_a, epochs=500, verbose=False)
Source by learn.udacity.com #
 
PREVIOUS NEXT
Tagged: #simple #keras #model #layer
ADD COMMENT
Topic
Name
3+4 =