NBWrapper 类
Naive Bayes 包装器,用于使用伯努利或多项式模型的条件概率。
- 继承
-
sklearn.base.BaseEstimatorNBWrappersklearn.base.ClassifierMixinNBWrapperazureml.automl.runtime.shared.model_wrappers._AbstractModelWrapperNBWrapper
构造函数
NBWrapper(model, **kwargs)
参数
- model
方法
| fit |
Naive Bayes 模型的拟合函数。 |
| get_model |
返回 Naive Bayes 模型。 |
| get_params |
返回 Naive Bayes 模型的参数。 |
| predict |
Naive Bayes 包装器模型的预测函数。 |
| predict_proba |
Naive Bayes 包装器模型的 X 的预测类概率。 |
fit
Naive Bayes 模型的拟合函数。
fit(X, y, **kwargs)
参数
- kwargs
必需
其他参数。
get_model
返回 Naive Bayes 模型。
get_model()
返回
Naive Bayes 模型。
get_params
返回 Naive Bayes 模型的参数。
get_params(deep=True)
参数
返回
Naive Bayes 模型的参数。
predict
Naive Bayes 包装器模型的预测函数。
predict(X)
参数
返回
来自实际 Naive Bayes 模型的预测值。
predict_proba
Naive Bayes 包装器模型的 X 的预测类概率。
predict_proba(X)
参数
返回
来自实际 Naive Bayes 模型的预测概率值。
反馈
提交和查看相关反馈