August 2017
Intermediate to advanced
288 pages
8h 6m
English
The next step is to run optimizer optimization. Executing this process in TensorFlow consists of two steps:
# Initializing the variablesinit = tf$global_variables_initializer()sess$run(init)
Optimization is performed based on optimizing and monitoring the train and test performance:
costconvergence<-NULLfor (step in 1:1000) { sess$run(optimizer) if (step %% 20==0){ costconvergence<-rbind(costconvergence, c(step, sess$run(cost), sess$run(costt))) cat(step, "-", "Traing Cost ==>", sess$run(cost), "\n") }}
Read now
Unlock full access