Artificial Intelligence, Machine Learning, Data Science, Reinforcement Learning, OpenAI.
hidden1 = Dense(32, activation='relu')(inputs) hidden2 = Dense(32, activation='relu')(hidden1) # Define separate output layers output1 = Dense(num_actions)(hidden2) output2 = Dense(num_actions, activation='softmax')(hidden2) model = tf.keras.Model(inputs=inputs, outputs=[output2, output1])