@@ -32,8 +32,25 @@ public Estimator Estimator(RunConfig config)
3232 public RunConfig RunConfig ( string model_dir )
3333 => new RunConfig ( model_dir : model_dir ) ;
3434
35- public void train_and_evaluate ( )
36- => Training . train_and_evaluate ( ) ;
35+ public void train_and_evaluate ( Estimator estimator , TrainSpec train_spec , EvalSpec eval_spec )
36+ => Training . train_and_evaluate ( estimator : estimator , train_spec : train_spec , eval_spec : eval_spec ) ;
37+
38+ public TrainSpec TrainSpec ( Action input_fn , int max_steps )
39+ => new TrainSpec ( input_fn : input_fn , max_steps : max_steps ) ;
40+
41+ /// <summary>
42+ /// Create an `Exporter` to use with `tf.estimator.EvalSpec`.
43+ /// </summary>
44+ /// <param name="name"></param>
45+ /// <param name="serving_input_receiver_fn"></param>
46+ /// <param name="as_text"></param>
47+ /// <returns></returns>
48+ public FinalExporter FinalExporter ( string name , Action serving_input_receiver_fn , bool as_text = false )
49+ => new FinalExporter ( name : name , serving_input_receiver_fn : serving_input_receiver_fn ,
50+ as_text : as_text ) ;
51+
52+ public EvalSpec EvalSpec ( string name , Action input_fn , FinalExporter exporters )
53+ => new EvalSpec ( name : name , input_fn : input_fn , exporters : exporters ) ;
3754 }
3855 }
3956}
0 commit comments