altair.LoessTransform#

class altair.LoessTransform(loess=Undefined, on=Undefined, bandwidth=Undefined, groupby=Undefined, **kwds)#

LoessTransform schema 包装器。

参数:
loessstr, FieldName

用于平滑的因变量的数据字段。

onstr, FieldName

用作预测变量的自变量的数据字段。

bandwidthfloat

带宽参数,范围在 [0, 1],用于确定平滑量。

默认值: 0.3

groupbySequence[str, FieldName]

用于分组的数据字段。如果未指定,将使用包含所有数据对象的单个组。

asSequence[str, FieldName]

loess 转换生成的平滑点的输出字段名。

默认值: 输入 x 和 y 值的字段名。

__init__(loess=Undefined, on=Undefined, bandwidth=Undefined, groupby=Undefined, **kwds)#

方法

__init__([loess, on, bandwidth, groupby])

copy([deep, ignore])

返回对象的副本。

from_dict(dct[, validate])

从字典表示构造类。

from_json(json_string[, validate])

从有效的 JSON 字符串实例化对象。

resolve_references([schema])

在此对象的 schema 或根 schema 的上下文中解析引用。

to_dict([validate, ignore, context])

返回对象的字典表示。

to_json([validate, indent, sort_keys, ...])

将此对象的 JSON 表示输出为字符串。

validate(instance[, schema])

在根 schema 的上下文中验证实例是否符合类 schema。

validate_property(name, value[, schema])

在根 schema 的上下文中验证属性是否符合属性 schema。