@@ -304,7 +304,7 @@ def _get_check_estimator_ids(obj):
304
304
305
305
When `obj` is an estimator, this returns the pprint version of the
306
306
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.
308
308
309
309
`_get_check_estimator_ids` is designed to be used as the `id` in
310
310
`pytest.mark.parametrize` where `check_estimator(..., generate_only=True)`
@@ -521,7 +521,7 @@ def check_estimator(Estimator, generate_only=False, strict_mode=True):
521
521
522
522
Parameters
523
523
----------
524
- estimator : estimator object
524
+ Estimator : estimator object
525
525
Estimator instance to check.
526
526
527
527
.. versionchanged:: 0.24
@@ -740,7 +740,7 @@ def _generate_sparse_matrix(X_csr):
740
740
-------
741
741
out: iter(Matrices)
742
742
In format['dok', 'lil', 'dia', 'bsr', 'csr', 'csc', 'coo',
743
- 'coo_64', 'csc_64', 'csr_64']
743
+ 'coo_64', 'csc_64', 'csr_64']
744
744
"""
745
745
746
746
assert X_csr .format == 'csr'
@@ -1770,7 +1770,7 @@ def check_regressor_multioutput(name, estimator, strict_mode=True):
1770
1770
"Multioutput predictions by a regressor are expected to be"
1771
1771
" floating-point precision. Got {} instead" .format (y_pred .dtype ))
1772
1772
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."
1774
1774
" Expected {}, got {}." )
1775
1775
1776
1776
@@ -2871,7 +2871,7 @@ def check_set_params(name, estimator_orig, strict_mode=True):
2871
2871
estimator = clone (estimator_orig )
2872
2872
2873
2873
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"
2875
2875
2876
2876
estimator .set_params (** orig_params )
2877
2877
curr_params = estimator .get_params (deep = False )
0 commit comments