Skip to content
v2.275.0

FunctionProperty Struct ​

Function details.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const functionProperty: sagemaker.CfnModelCard.FunctionProperty = {
  condition: 'condition',
  facet: 'facet',
  function: 'function',
};

Properties ​

conditionoptionalstringconditionoptionalstrconditionoptionalStringConditionoptionalstringConditionoptional*string#
An optional description of any conditions of your objective function metric.
facetoptionalstringfacetoptionalstrfacetoptionalStringFacetoptionalstringFacetoptional*string#
The metric of the model's objective function.

For example, loss or rmse . The following list shows examples of the values that you can specify for the metric:

  • ACCURACY
  • AUC
  • LOSS
  • MAE
  • RMSE
functionoptionalstringfunctionoptionalstrfunctionoptionalStringFunctionoptionalstringFunctionoptional*string#
The optimization direction of the model's objective function. You must specify one of the following values:.
  • Maximize
  • Minimize