PreprocWrapper 类

规范化输入矩阵的行。 支持稀疏矩阵。

继承
sklearn.base.TransformerMixin
PreprocWrapper
azureml.automl.runtime.shared.model_wrappers._AbstractModelWrapper
PreprocWrapper

构造函数

PreprocWrapper(cls, module_name=None, class_name=None, **kwargs)

参数

cls
module_name
默认值: None
class_name
默认值: None

方法

fit

PreprocWrapper 的拟合函数。

get_model

返回包装器模型。

get_params

返回 PreprocWrapper 的参数。

inverse_transform

PreprocWrapper 的反向转换函数。

transform

PreprocWrapper 的转换函数。

fit

PreprocWrapper 的拟合函数。

fit(X, y=None)

参数

X
ndarray 或 <xref:scipy.sparse.spmatrix>
必需

输入数据。

y
ndarray
默认值: None

已忽略。

返回

返回 self 的实例。

get_model

返回包装器模型。

get_model()

返回

包装器模型

get_params

返回 PreprocWrapper 的参数。

get_params(deep=True)

参数

deep
bool
默认值: True

如果为 True,则返回此估算器的参数和包含的子对象(即估算器)。

返回

PreprocWrapper 的参数。

inverse_transform

PreprocWrapper 的反向转换函数。

inverse_transform(X)

参数

X
ndarray 或 <xref:scipy.sparse.spmatrix>
必需

新数据。

返回

反转已转换的数据。

transform

PreprocWrapper 的转换函数。

transform(X)

参数

X
ndarray 或 <xref:scipy.sparse.spmatrix>
必需

输入数据。

返回

内部模型的转换后输出。