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

Fix tests #29

Merged
merged 5 commits into from
Jan 20, 2020
Merged

Fix tests #29

merged 5 commits into from
Jan 20, 2020

Conversation

xukai92
Copy link
Collaborator

@xukai92 xukai92 commented Jan 15, 2020

KMM test is now fixed. There was also a bug in the KLIEP test (missing i for creating the names of plots)

test/kliep.jl Outdated
@@ -1,5 +1,5 @@
@testset "KLIEP -- $optlib" for optlib in [OptimLib, ConvexLib]
for (pair, rtol) in [(pair₁, 2e-1), (pair₂, 4e-1)]
for (i, pair, rtol) in [(1, pair₁, 2e-1), (2, pair₂, 4e-1)]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is needed in Line 20

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps write it as enumerate([(pair1, 2e-1), (pair2, 4e-1)]) instead?

Copy link
Member

@juliohm juliohm left a comment

Choose a reason for hiding this comment

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

Thank you for fixing the tests and improving the JuMP version. Attached some minor comments.

src/kmm/jump.jl Show resolved Hide resolved
test/kliep.jl Outdated
@@ -1,5 +1,5 @@
@testset "KLIEP -- $optlib" for optlib in [OptimLib, ConvexLib]
for (pair, rtol) in [(pair₁, 2e-1), (pair₂, 4e-1)]
for (i, pair, rtol) in [(1, pair₁, 2e-1), (2, pair₂, 4e-1)]
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps write it as enumerate([(pair1, 2e-1), (pair2, 4e-1)]) instead?

test/kmm.jl Outdated
@@ -1,22 +1,21 @@
@testset "KMM -- $optlib" for optlib in [JuliaLib, JuMPLib]
for (i, pair) in enumerate([pair₁, pair₂])
for (i, pair, rtol) in [(1, pair₁, 2e-1), (2, pair₂, 4e-1)]
Copy link
Member

Choose a reason for hiding this comment

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

I think we can keep enumarate here like suggested above.

test/kmm.jl Show resolved Hide resolved
@xukai92
Copy link
Collaborator Author

xukai92 commented Jan 18, 2020

I will address them during weekends.

@xukai92
Copy link
Collaborator Author

xukai92 commented Jan 18, 2020

Okay so I replaced explicit indexing with enumerate now.

Copy link
Member

@juliohm juliohm left a comment

Choose a reason for hiding this comment

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

All good, thanks for the update.

@juliohm juliohm merged commit 9d69bb2 into master Jan 20, 2020
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.

2 participants