8000 DOC fix typos in estimator_checks.py (#18599) · scikit-learn/scikit-learn@57d4f52 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57d4f52

Browse files
authored
DOC fix typos in estimator_checks.py (#18599)
1 parent ed4e539 commit 57d4f52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sklearn/utils/estimator_checks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def _get_check_estimator_ids(obj):
304304
305305
When `obj` is an estimator, this returns the pprint version of the
306306
estimator (with `print_changed_only=True`). When `obj` is a function, the
307-
name of the function is returned with its keyworld arguments.
307+
name of the function is returned with its keyword arguments.
308308
309309
`_get_check_estimator_ids` is designed to be used as the `id` in
310310
`pytest.mark.parametrize` where `check_estimator(..., generate_only=True)`
@@ -521,7 +521,7 @@ def check_estimator(Estimator, generate_only=False, strict_mode=True):
521521
522522
Parameters
523523
----------
524-
estimator : estimator object
524+
Estimator : estimator object
525525
Estimator instance to check.
526526
527527
.. versionchanged:: 0.24
@@ -740,7 +740,7 @@ def _generate_sparse_matrix(X_csr):
740740
-------
741741
out: iter(Matrices)
742742
In format['dok', 'lil', 'dia', 'bsr', 'csr', 'csc', 'coo',
743-
'coo_64', 'csc_64', 'csr_64']
743+
'coo_64', 'csc_64', 'csr_64']
744744
"""
745745

746746
assert X_csr.format == 'csr'
@@ -1770,7 +1770,7 @@ def check_regressor_multioutput(name, estimator, strict_mode=True):
17701770
"Multioutput predictions by a regressor are expected to be"
17711771
" floating-point precision. Got {} instead".format(y_pred.dtype))
17721772
assert y_pred.shape == y.shape, (
1773-
"The shape of the orediction for multioutput data is incorrect."
1773+
"The shape of the prediction for multioutput data is incorrect."
17741774
" Expected {}, got {}.")
17751775

17761776

@@ -2871,7 +2871,7 @@ def check_set_params(name, estimator_orig, strict_mode=True):
28712871
estimator = clone(estimator_orig)
28722872

28732873
orig_params = estimator.get_params(deep=False)
2874-
msg = ("get_params result does not match what was passed to set_params")
2874+
msg = "get_params result does not match what was passed to set_params"
28752875

28762876
estimator.set_params(**orig_params)
28772877
curr_params = estimator.get_params(deep=False)

0 commit comments

Comments
 (0)
0