Skip to content

Pipeline doesn't register model trained by the pipeline #1

Description

@lgaud

It looks to me like these two steps of the pipeline train a bunch of models, saves them to outputs/ridge_{alpha}.pkl in train-sklearn.py, and then registers an entirely different .pkl file that was already checked in under model-deployment/sklearn_regression_model.pkl. Shouldn't it be registering one of the models it created?

`- task: AzureCLI@1
inputs:
azureSubscription: 'build-demo'
scriptLocation: 'inlineScript'
inlineScript: 'az ml run submit-script -c sklearn -e test -d training-env.yml train-sklearn.py'
workingDirectory: 'model-training'

  • task: AzureCLI@1
    inputs:
    azureSubscription: 'build-demo'
    scriptLocation: 'inlineScript'
    inlineScript: 'az ml model register -n mymodel -p sklearn_regression_model.pkl -t model.json'
    workingDirectory: 'model-deployment'`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions