Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue209 #222

Merged
merged 5 commits into from
Apr 11, 2017
Merged

Issue209 #222

merged 5 commits into from
Apr 11, 2017

Conversation

janvanrijn
Copy link
Member

Fixes #209. Prevents users from spoofing parameter names

… model. This way, we can check whether a user-defined keyword (e.g., the steps in a pipeline) does not shadow a model parameter
if isinstance(o, tuple):
assert(parent_model is not None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this checks should live in _extract_information_from_model as this function only distributes objects to the right serialization functions.

for case in cases:
self.assertRaises(PyOpenMLError, sklearn_to_flow, case)

def test_illegal_parameter_names_sklearn(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you repeat this test for FeatureUnion.

@janvanrijn janvanrijn merged commit f4df535 into develop Apr 11, 2017
@janvanrijn janvanrijn deleted the issue209 branch April 11, 2017 13:14
@codecov-io
Copy link

codecov-io commented Apr 11, 2017

Codecov Report

Merging #222 into develop will decrease coverage by 0.06%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #222      +/-   ##
===========================================
- Coverage    88.88%   88.82%   -0.07%     
===========================================
  Files           23       23              
  Lines         1800     1807       +7     
===========================================
+ Hits          1600     1605       +5     
- Misses         200      202       +2
Impacted Files Coverage Δ
openml/runs/run.py 91.94% <0%> (-1.26%) ⬇️
openml/flows/sklearn_converter.py 92.88% <100%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9ca0b8...076ef50. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants