共用方式為


Metric 類別

表示資料漂移分析中傳回的計量。

Metric 類別僅供內部使用。 get_output使用 物件的 方法 DataDriftDetector 可傳回計量。

計量建構函式。

繼承
builtins.object
Metric

建構函式

Metric(name, value, extended_properties, schema_version='1.0')

參數

名稱 Description
name
必要
str

計量的名稱。

value
必要

計量的值。

extended_properties
必要

字串字典到 Python 基本類型 (int、float、str) 。

schema_version
str

選擇性的計量架構版本。 如果未設定特定值,請將 設定為 METRIC_SCHEMA_VERSION_CUR。

預設值: 1.0
name
必要
str

計量的名稱。

value
必要

計量的值。

extended_properties
必要

字串字典到 Python 基本類型 (int、float、str) 。

schema_version
必要
str

選擇性的計量架構版本。 如果未設定特定值,請將 設定為 METRIC_SCHEMA_VERSION_CUR。

方法

add_extended_properties
get_extended_properties
validate_extended_properties_type

add_extended_properties

add_extended_properties(ep)

參數

名稱 Description
ep
必要

get_extended_properties

get_extended_properties()

validate_extended_properties_type

validate_extended_properties_type(key, value)

參數

名稱 Description
key
必要
value
必要