8000 DOC underscores in DeprecationWarnings... shame on me for forgetting … · seckcoder/scikit-learn@6e67a82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e67a82

Browse files
committed
DOC underscores in DeprecationWarnings... shame on me for forgetting that....
1 parent 5729aa2 commit 6e67a82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sklearn/grid_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@ def score(self, X, y=None):
391391
@property
392392
@deprecated('GridSearchCV.best_estimator is deprecated'
393393
' and will be removed in version 0.12.'
394-
' Please use GridSearchCV.best_estimator_ instead.')
394+
' Please use ``GridSearchCV.best_estimator_`` instead.')
395395
def best_estimator(self):
396396
return self.best_estimator_
397397

398398
@property
399399
@deprecated('GridSearchCV.best_score is deprecated'
400400
' and will be removed in version 0.12.'
401-
' Please use GridSearchCV.best_score_ instead.')
401+
' Please use ``GridSearchCV.best_score_`` instead.')
402402
def best_score(self):
403403
return self.best_score_

sklearn/naive_bayes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,21 @@ def _joint_log_likelihood(self, X):
181181
@property
182182
@deprecated('GaussianNB.class_prior is deprecated'
183183
' and will be removed in version 0.12.'
184-
' Please use GaussianNB.class_prior_ instead.')
184+
' Please use ``GaussianNB.class_prior_`` instead.')
185185
def class_prior(self):
186186
return self.class_prior_
187187

188188
@property
189189
@deprecated('GaussianNB.theta is deprecated'
190190
' and will be removed in version 0.12.'
191-
' Please use GaussianNB.theta_ instead.')
191+
' Please use ``GaussianNB.theta_`` instead.')
192192
def theta(self):
193193
return self.theta_
194194

195195
@property
196196
@deprecated('GaussianNB.sigma is deprecated'
197197
' and will be removed in version 0.12.'
198-
' Please use GaussianNB.sigma_ instead.')
198+
' Please use ``GaussianNB.sigma_`` instead.')
199199
def sigma(self):
200200
return self.sigma_
201201

0 commit comments

Comments
 (0)
0