Exporting model artifacts
This task is optional and should be completed when you have assigned the CAN_RECEIVE_MODEL_OUTPUT
member ability to a member of the collaboration.
After model training has completed, the member who trained the model can initiate the
export of model artifacts. The member who trained the model chooses who will receive
model artifacts, provided that member has the ability to receive results and a valid ML
configuration.
- Console
-
To configure a custom ML model algorithm in AWS Clean Rooms
-
Sign in to the AWS Management Console and open the AWS Clean Rooms console with your AWS account
(if you haven't yet done so).
-
In the left navigation pane, choose
Collaborations.
-
On the Collaborations page, choose the collaboration that
contains the custom model that you want to export.
-
After the collaboration opens, choose the ML Models tab,
then choose your model from the Custom trained model table
-
On the custom trained model details page, click Export model output.
-
For Export model output, for Export model output
details, enter a Name and optional
Description.
Choose which member will receive the model artifacts in the Model
output exported to members of collaboration drop down
list.
-
Choose Export.
- API
-
To initiate the model export, run the following code:
import boto3
acr_ml_client= boto3.client('cleanroomsml')
acr_ml_client.start_trained_model_export_job(
membershipIdentifier='membership_id
',
trainedModelArn='arn:aws:cleanrooms-ml:region
:account
:membership
/membershipIdentifier/trained-model/identifier
',
outputConfiguration={
'member': {
'accountId': 'model_output_receiver_account
'
}
},
name='export_job_name
'
)