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 theirSessionProgramTuner
using the auto-generatedBuilder
attribute of the subclass.
Attributes
Configuration for how baseline outputs are computed. |
|
A list of metrics to compute in each |
|
Returns a list of tunable inputs associated with this tuner. |
|
A list of |
|
A subclass of |
Methods
Computes a single error report. |
|
Return all baselines defined in the class. |
|
Returns the program. |
|
Runs an error report for each set of values for the |
|
Computes all outputs for a single run. |