FeatureSet 類別

注意

這是實驗性類別,可以隨時變更。 請參閱 https://aka.ms/azuremlexperimental 以取得詳細資訊。

繼承
azure.ai.ml.entities._assets._artifacts.artifact.Artifact
FeatureSet

建構函式

FeatureSet(*, name: str, version: str, entities: List[str], specification: FeatureSetSpecification, stage: str | None = 'Development', description: str | None = None, materialization_settings: MaterializationSettings | None = None, tags: Dict | None = None, **kwargs)

參數

name
str
必要

資源名稱。

version
str
必要

資源的版本。

entities
list[str]
必要

指定實體清單。

specification
FeatureSetSpecification
必要

指定功能規格詳細資料。

stage
str
必要

功能集階段。 允許的值:開發、生產、封存

description
str
必要

資源的描述。

tags
dict[str, str]
必要

標記字典。 標記可以新增、移除和更新。

materialization_settings
MaterializationSettings
必要

指定具體化設定。

kwargs
dict
必要

其他組態參數的字典。

方法

dump

以 YAML 格式將資產內容傾印到檔案中。

dump

以 YAML 格式將資產內容傾印到檔案中。

dump(dest: str | PathLike | IO, **kwargs) -> None

參數

dest
Union[<xref:PathLike>, str, IO[AnyStr]]
必要

要寫入 YAML 內容的本機路徑或檔案資料流程。 如果 dest 是檔案路徑,則會建立新的檔案。 如果 dest 是開啟的檔案,則會直接寫入檔案。

kwargs
dict

要傳遞至 YAML 序列化程式的其他引數。

例外狀況

如果 dest 是檔案路徑且檔案已經存在,則引發。

如果 dest 是開啟的檔案,而且無法寫入檔案,則引發。

屬性

base_path

資源的基底路徑。

傳回

資源的基底路徑。

傳回類型

str

creation_context

資源的建立內容。

傳回

資源的建立中繼資料。

傳回類型

id

資源識別碼。

傳回

資源的全域識別碼,Azure Resource Manager (ARM) 識別碼。

傳回類型

path

version

資產版本。

傳回

資產版本。

傳回類型

str