Partilhar via


IntellectualProperty Classe

Nota

Esta é uma classe experimental e pode mudar em qualquer altura. Para obter mais informações, veja https://aka.ms/azuremlexperimental.

Definição de definições de propriedade intelectual.

Herança
azure.ai.ml.entities._mixins.RestTranslatableMixin
IntellectualProperty

Construtor

IntellectualProperty(*, publisher: str | None = None, protection_level: IPProtectionLevel = IPProtectionLevel.ALL)

Parâmetros Só de Palavra-Chave

Name Description
publisher

O nome do editor.

protection_level

Nível de Proteção de Recursos. Os valores aceites são IPProtectionLevel.ALL ("all") e IPProtectionLevel.NONE ("none"). A predefinição é IPProtectionLevel.ALL ("tudo").

Exemplos

Configurar definições de propriedade intelectual num CommandComponent.


   from azure.ai.ml.constants import IPProtectionLevel
   from azure.ai.ml.entities import CommandComponent, IntellectualProperty

   component = CommandComponent(
       name="random_name",
       version="1",
       environment="azureml:AzureML-Minimal:1",
       command="echo hello",
       intellectual_property=IntellectualProperty(publisher="contoso", protection_level=IPProtectionLevel.ALL),
   )