Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

compile and train cnn models

model.compile(optimizer='adam',              loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),              metrics=['accuracy'])history = model.fit(train_images, train_labels, epochs=10,                     validation_data=(test_images, test_labels))
Source by www.tensorflow.org #
 
PREVIOUS NEXT
Tagged: #compile #train #cnn #models
ADD COMMENT
Topic
Name
2+8 =