PreFittedSoftVotingClassifier 类

预拟合软投票分类器类。

继承
sklearn.ensemble._voting.VotingClassifier
PreFittedSoftVotingClassifier

构造函数

PreFittedSoftVotingClassifier(estimators, weights=None, flatten_transform=None, classification_labels=None)

参数

estimators
list
必需

要包括在 PreFittedSoftVotingClassifier 中的模型

weights
ndarray
默认值: None

为每个估算器提供权重

flatten_transform
bool
默认值: None

如果为 True,则 transform 方法返回矩阵形状(n_samples、n_classifiers * n_classes)。 如果为 False,则返回(n_classifiers、n_samples、n_classes)。

classification_labels
默认值: None

方法

get_params

从集成获取估算器的参数。

get_params

从集成获取估算器的参数。

get_params(deep: bool = True) -> Dict[str, Any]

参数

deep
bool
默认值: True

如果设置为 True,也可获取各种分类器和分类器的参数。