tf.keras模型——estimator、experimental
tf.keras.estimator
tf.keras.estimator.model_to_estimator():从给定的Keras模型构造评估实例。
1 tf.keras.estimator.model_to_estimator(
2 keras_model=None,
3 keras_model_path=None,
4 custom_objects=None,
5 model_dir=None,
6 config=None,
7 checkpoint_format='checkpoint'
8 )
keras_model:一个已经编译的keras模型;它与keras_model_path互斥;
custom_objects:自定义对象的字典;
model_dir:用于保存估算器模型参数、图表、Tensorboard摘要文件等的目录;
config:runconfig到config估计量;
checkpoint_forma:
tf.keras.experimental.CosineDecay
1 __init__(
2 initial_learning_rate,
3 decay_steps,
4 alpha=0.0,
5 name=None
6 )
清澈的爱,只为中国