Keras Tuner 超参数调优
发布时间
阅读量:
阅读量
代码
# -*- coding: utf-8 -*-
"""
Created on 2020/11/20 14:04
@Author: CY
@email: 5844104706@qq.com
"""
# Hyperparameters
## Model hyperparameters
## Algorithm hyperparameters
import tensorflow as tf
from tensorflow import keras
import IPython
# !pip install -q -U keras-tuner
import kerastuner as kt
print("#1. 数据集 Fashion MNIST dataset.")
(img_train, label_train), (img_test, label_test) = keras.datasets.fashion_mnist.load_data()
# Normalize pixel values between 0 and 1
img_train = img_train.astype('float
全部评论 (0)
还没有任何评论哟~
