Class CfnModelCardProps
Properties for defining a CfnModelCard
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnModelCardProps : Object, ICfnModelCardProps
Syntax (vb)
Public Class CfnModelCardProps
Inherits Object
Implements ICfnModelCardProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelcard.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var value;
var cfnModelCardProps = new CfnModelCardProps {
Content = new ContentProperty {
AdditionalInformation = new AdditionalInformationProperty {
CaveatsAndRecommendations = "caveatsAndRecommendations",
CustomDetails = new Dictionary<string, string> {
{ "customDetailsKey", "customDetails" }
},
EthicalConsiderations = "ethicalConsiderations"
},
BusinessDetails = new BusinessDetailsProperty {
BusinessProblem = "businessProblem",
BusinessStakeholders = "businessStakeholders",
LineOfBusiness = "lineOfBusiness"
},
EvaluationDetails = new [] { new EvaluationDetailProperty {
Name = "name",
// the properties below are optional
Datasets = new [] { "datasets" },
EvaluationJobArn = "evaluationJobArn",
EvaluationObservation = "evaluationObservation",
Metadata = new Dictionary<string, string> {
{ "metadataKey", "metadata" }
},
MetricGroups = new [] { new MetricGroupProperty {
MetricData = new [] { new MetricDataItemsProperty {
Name = "name",
Type = "type",
Value = value,
// the properties below are optional
Notes = "notes",
XAxisName = new [] { "xAxisName" },
YAxisName = new [] { "yAxisName" }
} },
Name = "name"
} }
} },
IntendedUses = new IntendedUsesProperty {
ExplanationsForRiskRating = "explanationsForRiskRating",
FactorsAffectingModelEfficiency = "factorsAffectingModelEfficiency",
IntendedUses = "intendedUses",
PurposeOfModel = "purposeOfModel",
RiskRating = "riskRating"
},
ModelOverview = new ModelOverviewProperty {
AlgorithmType = "algorithmType",
InferenceEnvironment = new InferenceEnvironmentProperty {
ContainerImage = new [] { "containerImage" }
},
ModelArtifact = new [] { "modelArtifact" },
ModelCreator = "modelCreator",
ModelDescription = "modelDescription",
ModelId = "modelId",
ModelName = "modelName",
ModelOwner = "modelOwner",
ModelVersion = 123,
ProblemType = "problemType"
},
ModelPackageDetails = new ModelPackageDetailsProperty {
ApprovalDescription = "approvalDescription",
CreatedBy = new ModelPackageCreatorProperty {
UserProfileName = "userProfileName"
},
Domain = "domain",
InferenceSpecification = new InferenceSpecificationProperty {
Containers = new [] { new ContainerProperty {
Image = "image",
// the properties below are optional
ModelDataUrl = "modelDataUrl",
NearestModelName = "nearestModelName"
} }
},
ModelApprovalStatus = "modelApprovalStatus",
ModelPackageArn = "modelPackageArn",
ModelPackageDescription = "modelPackageDescription",
ModelPackageGroupName = "modelPackageGroupName",
ModelPackageName = "modelPackageName",
ModelPackageStatus = "modelPackageStatus",
ModelPackageVersion = 123,
SourceAlgorithms = new [] { new SourceAlgorithmProperty {
AlgorithmName = "algorithmName",
// the properties below are optional
ModelDataUrl = "modelDataUrl"
} },
Task = "task"
},
TrainingDetails = new TrainingDetailsProperty {
ObjectiveFunction = new ObjectiveFunctionProperty {
Function = new FunctionProperty {
Condition = "condition",
Facet = "facet",
Function = "function"
},
Notes = "notes"
},
TrainingJobDetails = new TrainingJobDetailsProperty {
HyperParameters = new [] { new TrainingHyperParameterProperty {
Name = "name",
Value = "value"
} },
TrainingArn = "trainingArn",
TrainingDatasets = new [] { "trainingDatasets" },
TrainingEnvironment = new TrainingEnvironmentProperty {
ContainerImage = new [] { "containerImage" }
},
TrainingMetrics = new [] { new TrainingMetricProperty {
Name = "name",
Value = 123,
// the properties below are optional
Notes = "notes"
} },
UserProvidedHyperParameters = new [] { new TrainingHyperParameterProperty {
Name = "name",
Value = "value"
} },
UserProvidedTrainingMetrics = new [] { new TrainingMetricProperty {
Name = "name",
Value = 123,
// the properties below are optional
Notes = "notes"
} }
},
TrainingObservations = "trainingObservations"
}
},
ModelCardName = "modelCardName",
ModelCardStatus = "modelCardStatus",
// the properties below are optional
CreatedBy = new UserContextProperty {
DomainId = "domainId",
UserProfileArn = "userProfileArn",
UserProfileName = "userProfileName"
},
LastModifiedBy = new UserContextProperty {
DomainId = "domainId",
UserProfileArn = "userProfileArn",
UserProfileName = "userProfileName"
},
SecurityConfig = new SecurityConfigProperty {
KmsKeyId = "kmsKeyId"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
Cfn |
Properties
Content | The content of the model card. |
Created |
Information about the user who created or modified one or more of the following:. |
Last |
Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card. |
Model |
The unique name of the model card. |
Model |
The approval status of the model card within your organization. |
Security |
The security configuration used to protect model card data. |
Tags | Key-value pairs used to manage metadata for the model card. |
Constructors
CfnModelCardProps()
public CfnModelCardProps()
Properties
Content
The content of the model card.
public object Content { get; set; }
Property Value
System.
Remarks
CreatedBy
Information about the user who created or modified one or more of the following:.
public object CreatedBy { get; set; }
Property Value
System.
Remarks
LastModifiedBy
Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
public object LastModifiedBy { get; set; }
Property Value
System.
Remarks
ModelCardName
The unique name of the model card.
public string ModelCardName { get; set; }
Property Value
System.
Remarks
ModelCardStatus
The approval status of the model card within your organization.
public string ModelCardStatus { get; set; }
Property Value
System.
Remarks
Different organizations might have different criteria for model card review and approval.
SecurityConfig
The security configuration used to protect model card data.
public object SecurityConfig { get; set; }
Property Value
System.
Remarks
Tags
Key-value pairs used to manage metadata for the model card.
public ICfnTag[] Tags { get; set; }
Property Value
ICfn