摘要: tf.keras包含各种内置层,例如: 卷积层: Conv1D , Conv2D , Conv3D , Conv2DTranspose 池化层: MaxPooling1D , MaxPooling2D , MaxPooling3D , AveragePooling1D RNN层: GRU , LST 阅读全文
posted @ 2020-09-21 16:59 说分手后还能做炮友? 阅读(178) 评论(0) 推荐(0)
摘要: >>> np.random.randint(2, size=10) array([1, 0, 0, 0, 1, 1, 0, 0, 1, 0]) # random >>> np.random.randint(1, size=10) array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0 阅读全文
posted @ 2020-09-21 16:19 说分手后还能做炮友? 阅读(140) 评论(0) 推荐(0)
摘要: num_tags = 12 # Number of unique issue tags num_words = 10000 # Size of vocabulary obtained when preprocessing text data num_departments = 4 # Number 阅读全文
posted @ 2020-09-21 15:46 说分手后还能做炮友? 阅读(129) 评论(0) 推荐(0)
摘要: encoder_input = keras.Input(shape=(28, 28, 1), name="img") x = layers.Conv2D(16, 3, activation="relu")(encoder_input) x = layers.Conv2D(32, 3, activat 阅读全文
posted @ 2020-09-21 14:54 说分手后还能做炮友? 阅读(215) 评论(0) 推荐(0)
摘要: template = 'Epoch {}, Loss: {}, Accuracy: {}, Test Loss: {}, Test Accuracy: {}' print(template.format(epoch + 1, train_loss.result(), train_accuracy.r 阅读全文
posted @ 2020-09-21 14:26 说分手后还能做炮友? 阅读(424) 评论(0) 推荐(0)