Configuration for the train component of train_and_evaluate
TrainSpec
determines the input data for the training, as well as the
duration. Optional hooks run at various stages of training.
train_spec(input_fn, max_steps = NULL, hooks = NULL)
input_fn |
Training input function returning a tuple of:
|
max_steps |
Positive number of total steps for which to train model.
If |
hooks |
List of session run hooks to run on all workers (including chief) during training. |
Other training methods: eval_spec
,
train_and_evaluate.tf_estimator
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.