Skip to content

Conversation

@Neeratyoy
Copy link
Contributor

@Neeratyoy Neeratyoy commented May 21, 2019

What does this PR implement/fix? Explain your changes.

_from_arff_file() in tasks/split.py uses liac-arff instead of scipy.io.arff.

How should this PR be tested?

Running pytest or checking for unit test status.

Comments.

Some code cleanup will be performed once the unit tests pass.

@codecov-io
Copy link

codecov-io commented May 21, 2019

Codecov Report

Merging #693 into develop will decrease coverage by 0.01%.
The diff coverage is 91.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #693      +/-   ##
===========================================
- Coverage    90.35%   90.34%   -0.02%     
===========================================
  Files           36       36              
  Lines         3785     3789       +4     
===========================================
+ Hits          3420     3423       +3     
- Misses         365      366       +1
Impacted Files Coverage Δ
openml/tasks/split.py 93.68% <91.66%> (-0.83%) ⬇️

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 eec86a9...12e675d. Read the comment docs.

@Neeratyoy Neeratyoy requested a review from mfeurer May 21, 2019 13:47
Copy link
Collaborator

@mfeurer mfeurer left a comment

Choose a reason for hiding this comment

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

Looks good, I think the failures are not actually caused by this pull request, but by some data shuffling on the test server, I'll fix this in a separate PR.

split = repetitions[repetition][fold][sample]

type_ = line[type_idx].decode('utf-8')
if not isinstance(line[type_idx], str):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this case actually triggered with liac-arff?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi,
The decode was required for how the file was being read earlier. With liac-arff it reads as str. So yes you are correct. This if-statement is not really triggered.
Removing it.

@mfeurer mfeurer merged commit 4257c48 into develop May 28, 2019
@mfeurer mfeurer deleted the fix_arff branch May 28, 2019 11:49
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.

4 participants