tfma.export.make_export_strategy

tfma.export.make_export_strategy(
    eval_input_receiver_fn,
    exports_to_keep=5
)

Create an ExportStrategy for EvalSavedModel.

Args:

  • eval_input_receiver_fn: Eval input receiver function.
  • exports_to_keep: Number of exports to keep. Older exports will be garbage-collected. Defaults to 5. Set to None to disable garbage collection.

Returns:

An ExportStrategy for EvalSavedModel that can be passed to the tf.contrib.learn.Experiment constructor.