$30 off During Our Annual Pro Sale. View Details »

Introduction to Model Registry

Introduction to Model Registry

「モデルのバージョン管理どうするのがいいですか」と聞かれることが多くなってきたので作成した資料です。

Asei Sugiyama

October 13, 2022
Tweet

More Decks by Asei Sugiyama

Other Decks in Technology

Transcript

  1. Introduction to Model Registry

    View Slide

  2. View Slide

  3. View Slide

  4. View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. View Slide

  13. import json
    import model_card_toolkit as mctlib
    model_card_json = {
    'model_details': {'name': 'Census Income Classifier'},
    'model_details': {'overview': 'This is a wide and deep Keras model...'},
    'model_details': {
    'owners':[{"name": "Model Cards Team", "contact": "[email protected]"}]},
    'considerations':{
    'use_cases':[{
    "description":'This dataset that this model was trained on...'}]
    },
    'considerations': {
    'limitations': [{
    'description':'This is a class-imbalanced dataset...'}]
    },
    'considerations': {
    'ethical_considerations': [{
    'name': 'We risk expressing the viewpoint that...',
    'mitigation_strategy': 'As mentioned, some interventions may need to be ...'
    }]
    }
    }

    View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. View Slide

  20. View Slide

  21. # Specify the model source
    model_url = "s3://your-bucket-name/model.tar.gz"
    modelpackage_inference_specification = {
    "InferenceSpecification": {
    "Containers": [
    {
    "Image": '257758044811.dkr.ecr.us-east-2.amazonaws.com/sagemaker-xgboost:1.2-1',
    "ModelDataUrl": model_url
    }
    ],
    "SupportedContentTypes": [ "text/csv" ],
    "SupportedResponseMIMETypes": [ "text/csv" ],
    }
    }

    View Slide

  22. create_model_package_input_dict = {
    "ModelPackageGroupName" : model_package_group_name,
    "ModelPackageDescription" :
    "Model to detect 3 different types of irises (Setosa, Versicolour, and Virginica)",
    "ModelApprovalStatus" : "PendingManualApproval"
    }
    create_model_package_input_dict.update(modelpackage_inference_specification)

    View Slide

  23. View Slide

  24. View Slide

  25. View Slide

  26. View Slide

  27. View Slide

  28. View Slide

  29. View Slide

  30. View Slide