Skip to content

Instantly share code, notes, and snippets.

@sdcubber
Last active August 9, 2018 09:47
Show Gist options
  • Select an option

  • Save sdcubber/47af0fbb26f23d6fce252fd72ce088da to your computer and use it in GitHub Desktop.

Select an option

Save sdcubber/47af0fbb26f23d6fce252fd72ce088da to your computer and use it in GitHub Desktop.
model = tf.keras.Model(inputs=image_input, outputs=[weather_output, ground_output])
model.compile(optimizer='adam',
loss={'weather': 'categorical_crossentropy',
'ground': 'binary_crossentropy'})
history = model.fit(ds_train,
steps_per_epoch=100, # let's take just a couple of steps
epochs=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment