Archived Documentation

Welcome to the developer documentation for SigOpt. If you have a question you can’t answer, feel free to contact us!
You are currently viewing archived SigOpt documentation. The newest documentation can be found here.

Metric Object

A representation of the value that an experiment is optimizing, storing, or constraining.


namestringA user-specified name for this metric.
objectivestringOptional. Specifies the direction of improvement for this metric. Can be “maximize” or “minimize”. If unspecified, the metric will be maximized.
strategystringOptional. Specifies how SigOpt will use this metric. Can be “optimize”, “store”, or “constraint”. If unspecified, the metric will be optimized. Stored metrics can be helpful for tracking and additional analysis. See Using Metric Strategy for more details. Constraint metrics can be used to specifiy additional guardrail metrics. See Metric Constraints for more details.
thresholdfloatThe minimum or maximum desired value for your metric. To apply thresholds on optimized metrics, see the Metric Thresholds documentation for more details. To apply thresholds on non optimized metrics, see the Metric Constraints documentation for more details. This field must be defined when the strategy is set to constraint.


  "name": "Accuracy",
  "object": "metric",
  "objective": "maximize",
  "strategy": "optimize",
  "threshold": null