Exemplo n.º 1
0
        private void run_local()
        {
            var evaluator = new _Evaluator(_estimator, _eval_spec, _train_spec.max_steps);

            /*_estimator.train(input_fn: _train_spec.input_fn,
             *   max_steps: _train_spec.max_steps,
             *   hooks: train_hooks,
             *   saving_listeners: saving_listeners);*/
        }
Exemplo n.º 2
0
        /// <summary>
        /// Runs training and evaluation locally (non-distributed).
        /// </summary>
        private void run_local()
        {
            Console.WriteLine("Start train and evaluate loop. The evaluate will happen " +
                              "after every checkpoint. Checkpoint frequency is determined " +
                              $"based on RunConfig arguments: save_checkpoints_steps {_estimator.config.save_checkpoints_steps} or " +
                              $"save_checkpoints_secs {_estimator.config.save_checkpoints_secs}.");
            var evaluator = new _Evaluator(_estimator, _eval_spec, _train_spec.max_steps);

            /*_estimator.train(input_fn: _train_spec.input_fn,
             *   max_steps: _train_spec.max_steps,
             *   hooks: train_hooks,
             *   saving_listeners: saving_listeners);*/
        }
 public _NewCheckpointListenerForEvaluate(_Evaluator evaluator, int eval_throttle_secs)
 {
     _evaluator = evaluator;
 }