SessionProgramTuner#

from tmlt.tune import SessionProgramTuner
class tmlt.tune.SessionProgramTuner(builder)#

Bases: object

Base class to define tuners to evaluate and optimize DP programs.

Example usage can be found in the API reference section about Tuning programs, and in the tutorials starting at Basics of error measurement.

SessionProgramTuners should not be directly constructed. Instead, users should create a subclass of SessionProgramTuner, then construct their SessionProgramTuner using the auto-generated Builder attribute of the subclass.

Attributes

SessionProgramTuner.baseline_options

Configuration for how baseline outputs are computed.

SessionProgramTuner.metrics

A list of metrics to compute in each error_report.

SessionProgramTuner.tunables

Returns a list of tunable inputs associated with this tuner.

SessionProgramTuner.views

A list of View on output tables.

SessionProgramTuner.program

A subclass of SessionProgram to be tuned.

Methods

SessionProgramTuner.error_report

Computes a single error report.

SessionProgramTuner.get_baselines

Return all baselines defined in the class.

SessionProgramTuner.get_concrete_program

Returns the program.

SessionProgramTuner.multi_error_report

Runs an error report for each set of values for the Tunables.

SessionProgramTuner.run

Computes all outputs for a single run.