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

Wrap ccalls with proper Julia functions #76

Merged
merged 4 commits into from
Jun 11, 2021

Conversation

barucden
Copy link
Member

Following #75, this PR wraps all calls to the LIBSVM C library with proper Julia functions. That way we get some type safety and it also makes the code cleaner.

Following JuliaML#75, this commit wraps all calls to the LIBSVM C library with
proper Julia functions. That way we get some type safety and it also
makes the code cleaner.
@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2021

Codecov Report

Merging #76 (9ae9c4e) into master (e4c64c3) will decrease coverage by 1.13%.
The diff coverage is 89.28%.

❗ Current head 9ae9c4e differs from pull request most recent head 95ede48. Consider uploading reports for the commit 95ede48 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
- Coverage   84.01%   82.88%   -1.14%     
==========================================
  Files           4        5       +1     
  Lines         219      222       +3     
==========================================
  Hits          184      184              
- Misses         35       38       +3     
Impacted Files Coverage Δ
src/libcalls.jl 85.71% <85.71%> (ø)
src/LIBSVM.jl 91.46% <92.85%> (-1.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 e4c64c3...95ede48. Read the comment docs.

src/libcalls.jl Outdated Show resolved Hide resolved
src/LIBSVM.jl Outdated Show resolved Hide resolved
Co-authored-by: Iblis Lin <iblis.dif01@nctu.edu.tw>
iblislin added a commit that referenced this pull request Jun 11, 2021
Co-authored-by:Denis Barucic <barucden@fel.cvut.cz>
iblislin added a commit that referenced this pull request Jun 11, 2021
Co-authored-by: Denis Barucic <barucden@fel.cvut.cz>
@iblislin iblislin mentioned this pull request Jun 11, 2021
iblislin added a commit that referenced this pull request Jun 11, 2021
Co-authored-by: Iblis Lin <iblis@hs.ntnu.edu.tw>
This adds a test for decision values and fixes passing the pointer to
the decision value array.
@barucden
Copy link
Member Author

barucden commented Jun 11, 2021

@iblis17 I did what you suggested about the decision values. We now have a basic test to check the decision values too.

I will try to tackle the pointers later, but I think this one is ready for merge.

test/runtests.jl Outdated Show resolved Hide resolved
@iblislin iblislin merged commit 76e57ad into JuliaML:master Jun 11, 2021
@barucden barucden deleted the wrapped-calls branch June 12, 2021 07:44
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