1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Install and configure boto3 if you haven't done so already. Use the create_labeling_job function from the SageMaker client in boto3. Pass necessary parameters like HumanTaskConfig, InputConfig, and OutputConfig containing information about the labeling workforce, input data location, and output data location.
import boto3
sagemaker_client = boto3.client('sagemaker')
response = sagemaker_client.create_labeling_job(
LabelingJobName='your-labeling-job-name',
LabelAttributeName='your-label-attribute-name',
InputConfig={
'DataSource': {
'S3DataSource': {
'ManifestS3Uri': 's3://your-input-data-bucket/your-manifest-file.manifest'
}
},
'DataAttributes': {
'ContentClassifiers': [
'FreeOfPersonallyIdentifiableInformation',
'FreeOfAdultContent',
]
}
},
OutputConfig={
'S3OutputPath': 's3://your-output-data-bucket/'
},
RoleArn='your-sagemaker-execution-role-arn',
HumanTaskConfig={
'WorkteamArn': 'your-workteam-arn',
'UiConfig': {
'UiTemplateS3Uri': 's3://your-ui-template-bucket/your-ui-template.zip'
},
'PreHumanTaskLambdaArn': 'your-pre-human-task-lambda-arn',
'TaskKeywords': ['your-task-keyword'],
'TaskTitle': 'Your Task Title',
'TaskDescription': 'Your Task Description',
'NumberOfHumanWorkersPerDataObject': 1,
'TaskTimeLimitInSeconds': 600,
'TaskAvailabilityLifetimeInSeconds': 86400,
'MaxConcurrentTaskCount': 10,
'AnnotationConsolidationConfig': {
'AnnotationConsolidationLambdaArn': 'your-annotation-consolidation-lambda-arn'
}
}
)
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
To create a labelling job,
WorkteamArn
is required. To create a Work Team,CognitoMemberDefinition
(withUserPool
,UserGroup
, andClientId
) is required. To create a user pool with client App, callback URLs (i.e.,https://XXX.labeling.REGION.sagemaker.aws
and possiblyhttps://YYY.cloudfront.net
) are required. My question is, how to spin offhttps://XXX.labeling.REGION.sagemaker.aws
? What doeshttps://YYY.cloudfront.net
do?