Skip to content

DOC add missing attributes in GaussianProcessClassifier (#14312) #17698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 24, 2020
4 changes: 4 additions & 0 deletions sklearn/gaussian_process/_gpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ def optimizer(obj_func, initial_theta, bounds):

Attributes
----------
base_estimator_ : ``Estimator`` instance
The estimator instance that defines the likelihood function
using the observed data.

kernel_ : kernel instance
The kernel used for prediction. In case of binary classification,
the structure of the kernel is the same as the one passed as parameter
Expand Down
2 changes: 1 addition & 1 deletion sklearn/tests/test_docstring_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def test_fit_docstring_attributes(name, Estimator):
assert hasattr(est, attr.name)

IGNORED = {'BayesianRidge', 'Birch', 'CCA', 'CategoricalNB', 'ElasticNet',
'ElasticNetCV', 'GaussianProcessClassifier',
'ElasticNetCV',
'HistGradientBoostingClassifier',
'HistGradientBoostingRegressor',
'KernelCenterer', 'KernelDensity',
Expand Down