azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

"_prepare_to_copy" none intuitive step with sdk (no documentation)

Open FlorianPydde opened this issue 2 years ago • 2 comments

[Enter feedback here] Why do we need to use "_prepare_to_copy" with the SDK. Could you expand on a it a bit ? What happens if don't use an MFLow model but sklearn or onnx ?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

FlorianPydde avatar Dec 14 '22 15:12 FlorianPydde

@spottedmahn

Thanks for your feedback! We will investigate and update as appropriate.

@FlorianPydde

I've delegated this to content author @ManojBableshwar to review and share his valuable insights.

Any update ?

FlorianPydde avatar Dec 27 '22 10:12 FlorianPydde

@FlorianPydde "_prepare_to_copy" was to share an Azure Mahine Learning asset (ex: model) from a Azure Machine Learning workspace to Azure Machine Learning registry. However, this syntax no longer exists and instead share() can be used.

# share the model from registry to workspace ml_client.models.share(name="nyc-taxi-model", version=1, registry_name=<registry_name>, share_with_name=<new-name>, share_with_version=<new-version>)

Check out this article to learn more

fkriti avatar May 19 '23 17:05 fkriti