共用方式為


Metric 類別

表示數據漂移分析中傳回的計量。

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

計量建構函式。

建構函式

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
必要