Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing test cases
  • Loading branch information
Neeratyoy committed Sep 9, 2019
commit 3b44e86c5a1a8d10135cd8146111a7126e6e152e
2 changes: 1 addition & 1 deletion openml/extensions/sklearn/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def match_format(s):
return s.strip()
except ValueError:
logging.warning("'Read more' not found in descriptions. "
"Trying to trim till 'Parameters' if available in docstring.")
"Trying to trim till 'Parameters' if available in docstring.")
pass
Comment thread
mfeurer marked this conversation as resolved.
try:
# if 'Read more' doesn't exist, trim till 'Parameters'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,26 +277,26 @@ def test_serialize_pipeline(self):
fixture_short_name = 'sklearn.Pipeline(StandardScaler,DummyClassifier)'

if version.parse(sklearn.__version__) >= version.parse("0.21.0"):
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially " \
"apply a list of transforms and a final estimator.\nIntermediate " \
"steps of the pipeline must be 'transforms', that is, they\nmust " \
"implement fit and transform methods.\nThe final estimator only " \
"needs to implement fit.\nThe transformers in the pipeline can be " \
"cached using ``memory`` argument.\n\nThe purpose of the pipeline is" \
" to assemble several steps that can be\ncross-validated together " \
"while setting different parameters.\nFor this, it enables setting " \
"parameters of the various steps using their\nnames and the " \
"parameter name separated by a '__', as in the example below.\nA " \
"step's estimator may be replaced entirely by setting the " \
"parameter\nwith its name to another estimator, or a transformer " \
"removed by setting\nit to 'passthrough' or ``None``."
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
" apply a list of transforms and a final estimator.\n"\
"Intermediate steps of the pipeline must be 'transforms', that "\
"is, they\nmust implement fit and transform methods.\nThe final "\
"estimator only needs to implement fit.\nThe transformers in "\
"the pipeline can be cached using ``memory`` argument.\n\nThe "\
"purpose of the pipeline is to assemble several steps that can "\
"be\ncross-validated together while setting different parameters"\
".\nFor this, it enables setting parameters of the various steps"\
" using their\nnames and the parameter name separated by a '__',"\
" as in the example below.\nA step's estimator may be replaced "\
"entirely by setting the parameter\nwith its name to another "\
"estimator, or a transformer removed by setting\nit to "\
"'passthrough' or ``None``."
else:
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
" apply a list of transforms and a final estimator.\nIntermediate"\
" steps of the pipeline must be 'transforms', that is, they\nmust "\
"implement fit and transform methods.\nThe final estimator only "\
"needs to implement fit.\nThe transformers in the pipeline can "\
"be cached using ``memory`` argument.\n\nThe purpose of the "\
" apply a list of transforms and a final estimator.\n"\
"Intermediate steps of the pipeline must be 'transforms', that "\
"is, they\nmust implement fit and transform methods.\nThe final"\
" estimator only needs to implement fit.\n\nThe purpose of the "\
"pipeline is to assemble several steps that can be\n"\
"cross-validated together while setting different parameters."\
"\nFor this, it enables setting parameters of the various steps"\
Expand Down Expand Up @@ -397,26 +397,26 @@ def test_serialize_pipeline_clustering(self):
fixture_short_name = 'sklearn.Pipeline(StandardScaler,KMeans)'

if version.parse(sklearn.__version__) >= version.parse("0.21.0"):
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially " \
"apply a list of transforms and a final estimator.\nIntermediate " \
"steps of the pipeline must be 'transforms', that is, they\nmust " \
"implement fit and transform methods.\nThe final estimator only " \
"needs to implement fit.\nThe transformers in the pipeline can be " \
"cached using ``memory`` argument.\n\nThe purpose of the pipeline is" \
" to assemble several steps that can be\ncross-validated together " \
"while setting different parameters.\nFor this, it enables setting " \
"parameters of the various steps using their\nnames and the " \
"parameter name separated by a '__', as in the example below.\nA " \
"step's estimator may be replaced entirely by setting the " \
"parameter\nwith its name to another estimator, or a transformer " \
"removed by setting\nit to 'passthrough' or ``None``."
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
" apply a list of transforms and a final estimator.\n"\
"Intermediate steps of the pipeline must be 'transforms', that "\
"is, they\nmust implement fit and transform methods.\nThe final "\
"estimator only needs to implement fit.\nThe transformers in "\
"the pipeline can be cached using ``memory`` argument.\n\nThe "\
"purpose of the pipeline is to assemble several steps that can "\
"be\ncross-validated together while setting different parameters"\
".\nFor this, it enables setting parameters of the various steps"\
" using their\nnames and the parameter name separated by a '__',"\
" as in the example below.\nA step's estimator may be replaced "\
"entirely by setting the parameter\nwith its name to another "\
"estimator, or a transformer removed by setting\nit to "\
"'passthrough' or ``None``."
else:
fixture_description = "Pipeline of transforms with a final estimator.\n\nSequentially"\
" apply a list of transforms and a final estimator.\nIntermediate"\
" steps of the pipeline must be 'transforms', that is, they\nmust "\
"implement fit and transform methods.\nThe final estimator only "\
"needs to implement fit.\nThe transformers in the pipeline can "\
"be cached using ``memory`` argument.\n\nThe purpose of the "\
" apply a list of transforms and a final estimator.\n"\
"Intermediate steps of the pipeline must be 'transforms', that "\
"is, they\nmust implement fit and transform methods.\nThe final"\
" estimator only needs to implement fit.\n\nThe purpose of the "\
"pipeline is to assemble several steps that can be\n"\
"cross-validated together while setting different parameters."\
"\nFor this, it enables setting parameters of the various steps"\
Expand Down