Skip to content

Runtests#255

Merged
mfeurer merged 15 commits intodevelopfrom
runtests
May 15, 2017
Merged

Runtests#255
mfeurer merged 15 commits intodevelopfrom
runtests

Conversation

@janvanrijn
Copy link
Copy Markdown
Member

Extended unit tests,

fixed some bugs that came up

  • regarding pipeline / random search combination
  • regarding runtimes (did not end up in runs)

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 13, 2017

Codecov Report

Merging #255 into develop will increase coverage by 0.75%.
The diff coverage is 87.5%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #255      +/-   ##
===========================================
+ Coverage    89.69%   90.45%   +0.75%     
===========================================
  Files           24       24              
  Lines         2058     2064       +6     
===========================================
+ Hits          1846     1867      +21     
+ Misses         212      197      -15
Impacted Files Coverage Δ
openml/runs/functions.py 88.01% <87.5%> (+2.59%) ⬆️
openml/runs/run.py 94.89% <0%> (+5.1%) ⬆️

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 b4df819...03f798c. Read the comment docs.

"criterion": ["gini", "entropy"]},
num_iterations, random_state=42)

# [SPEED] make unit test faster by exploiting run information from the past
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe it would be easier to only test _create_trace_from_description and hope that the additional line get_run_trace works.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not so sure. This is the one thing this function is supposed to test. Let's keep it for now?

Comment thread tests/test_runs/test_run_functions.py Outdated
self.assertEqual(len(run_trace.trace_iterations), num_iterations * num_folds)

def test__run_exists(self):
# would be better to not sentinel these clfs ..
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added comment

check_res = self._check_serialized_optimized_run(run.run_id)
self.assertTrue(check_res)

# todo: check if runtime is present
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe you should add this check ;)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added

@mfeurer mfeurer merged commit ea4c9be into develop May 15, 2017
@mfeurer mfeurer deleted the runtests branch May 15, 2017 12:34
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.

3 participants