Skip to content

Commit 3b44e86

Browse files
committed
Fixing test cases
1 parent 52cbdb7 commit 3b44e86

2 files changed

Lines changed: 37 additions & 37 deletions

File tree

openml/extensions/sklearn/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def match_format(s):
514514
return s.strip()
515515
except ValueError:
516516
logging.warning("'Read more' not found in descriptions. "
517-
"Trying to trim till 'Parameters' if available in docstring.")
517+
"Trying to trim till 'Parameters' if available in docstring.")
518518
pass
519519
try:
520520
# if 'Read more' doesn't exist, trim till 'Parameters'

tests/test_extensions/test_sklearn_extension/test_sklearn_extension.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -277,26 +277,26 @@ def test_serialize_pipeline(self):
277277
fixture_short_name = 'sklearn.Pipeline(StandardScaler,DummyClassifier)'
278278

279279
if version.parse(sklearn.__version__) >= version.parse("0.21.0"):
280-
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially " \
281-
"apply a list of transforms and a final estimator.\nIntermediate " \
282-
"steps of the pipeline must be 'transforms', that is, they\nmust " \
283-
"implement fit and transform methods.\nThe final estimator only " \
284-
"needs to implement fit.\nThe transformers in the pipeline can be " \
285-
"cached using ``memory`` argument.\n\nThe purpose of the pipeline is" \
286-
" to assemble several steps that can be\ncross-validated together " \
287-
"while setting different parameters.\nFor this, it enables setting " \
288-
"parameters of the various steps using their\nnames and the " \
289-
"parameter name separated by a '__', as in the example below.\nA " \
290-
"step's estimator may be replaced entirely by setting the " \
291-
"parameter\nwith its name to another estimator, or a transformer " \
292-
"removed by setting\nit to 'passthrough' or ``None``."
280+
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
281+
" apply a list of transforms and a final estimator.\n"\
282+
"Intermediate steps of the pipeline must be 'transforms', that "\
283+
"is, they\nmust implement fit and transform methods.\nThe final "\
284+
"estimator only needs to implement fit.\nThe transformers in "\
285+
"the pipeline can be cached using ``memory`` argument.\n\nThe "\
286+
"purpose of the pipeline is to assemble several steps that can "\
287+
"be\ncross-validated together while setting different parameters"\
288+
".\nFor this, it enables setting parameters of the various steps"\
289+
" using their\nnames and the parameter name separated by a '__',"\
290+
" as in the example below.\nA step's estimator may be replaced "\
291+
"entirely by setting the parameter\nwith its name to another "\
292+
"estimator, or a transformer removed by setting\nit to "\
293+
"'passthrough' or ``None``."
293294
else:
294295
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
295-
" apply a list of transforms and a final estimator.\nIntermediate"\
296-
" steps of the pipeline must be 'transforms', that is, they\nmust "\
297-
"implement fit and transform methods.\nThe final estimator only "\
298-
"needs to implement fit.\nThe transformers in the pipeline can "\
299-
"be cached using ``memory`` argument.\n\nThe purpose of the "\
296+
" apply a list of transforms and a final estimator.\n"\
297+
"Intermediate steps of the pipeline must be 'transforms', that "\
298+
"is, they\nmust implement fit and transform methods.\nThe final"\
299+
" estimator only needs to implement fit.\n\nThe purpose of the "\
300300
"pipeline is to assemble several steps that can be\n"\
301301
"cross-validated together while setting different parameters."\
302302
"\nFor this, it enables setting parameters of the various steps"\
@@ -397,26 +397,26 @@ def test_serialize_pipeline_clustering(self):
397397
fixture_short_name = 'sklearn.Pipeline(StandardScaler,KMeans)'
398398

399399
if version.parse(sklearn.__version__) >= version.parse("0.21.0"):
400-
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially " \
401-
"apply a list of transforms and a final estimator.\nIntermediate " \
402-
"steps of the pipeline must be 'transforms', that is, they\nmust " \
403-
"implement fit and transform methods.\nThe final estimator only " \
404-
"needs to implement fit.\nThe transformers in the pipeline can be " \
405-
"cached using ``memory`` argument.\n\nThe purpose of the pipeline is" \
406-
" to assemble several steps that can be\ncross-validated together " \
407-
"while setting different parameters.\nFor this, it enables setting " \
408-
"parameters of the various steps using their\nnames and the " \
409-
"parameter name separated by a '__', as in the example below.\nA " \
410-
"step's estimator may be replaced entirely by setting the " \
411-
"parameter\nwith its name to another estimator, or a transformer " \
412-
"removed by setting\nit to 'passthrough' or ``None``."
400+
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
401+
" apply a list of transforms and a final estimator.\n"\
402+
"Intermediate steps of the pipeline must be 'transforms', that "\
403+
"is, they\nmust implement fit and transform methods.\nThe final "\
404+
"estimator only needs to implement fit.\nThe transformers in "\
405+
"the pipeline can be cached using ``memory`` argument.\n\nThe "\
406+
"purpose of the pipeline is to assemble several steps that can "\
407+
"be\ncross-validated together while setting different parameters"\
408+
".\nFor this, it enables setting parameters of the various steps"\
409+
" using their\nnames and the parameter name separated by a '__',"\
410+
" as in the example below.\nA step's estimator may be replaced "\
411+
"entirely by setting the parameter\nwith its name to another "\
412+
"estimator, or a transformer removed by setting\nit to "\
413+
"'passthrough' or ``None``."
413414
else:
414415
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
415-
" apply a list of transforms and a final estimator.\nIntermediate"\
416-
" steps of the pipeline must be 'transforms', that is, they\nmust "\
417-
"implement fit and transform methods.\nThe final estimator only "\
418-
"needs to implement fit.\nThe transformers in the pipeline can "\
419-
"be cached using ``memory`` argument.\n\nThe purpose of the "\
416+
" apply a list of transforms and a final estimator.\n"\
417+
"Intermediate steps of the pipeline must be 'transforms', that "\
418+
"is, they\nmust implement fit and transform methods.\nThe final"\
419+
" estimator only needs to implement fit.\n\nThe purpose of the "\
420420
"pipeline is to assemble several steps that can be\n"\
421421
"cross-validated together while setting different parameters."\
422422
"\nFor this, it enables setting parameters of the various steps"\

0 commit comments

Comments
 (0)