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

Call svm_check_parameter before training #72

Merged
merged 2 commits into from
Jun 10, 2021

Conversation

barucden
Copy link
Member

@barucden barucden commented Jun 8, 2021

LIBSVM provides function svm_check_parameter that validates the parameters given by SVMParameter. This PR calls this function before calling svm_train.

It also removes one unused return value.

@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2021

Codecov Report

Merging #72 (a27130a) into master (095c60b) will increase coverage by 2.08%.
The diff coverage is 100.00%.

❗ Current head a27130a differs from pull request most recent head 7e6dd05. Consider uploading reports for the commit 7e6dd05 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   81.86%   83.94%   +2.08%     
==========================================
  Files           4        4              
  Lines         215      218       +3     
==========================================
+ Hits          176      183       +7     
+ Misses         39       35       -4     
Impacted Files Coverage Δ
src/LIBSVM.jl 92.52% <100.00%> (+2.47%) ⬆️

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 095c60b...7e6dd05. Read the comment docs.

src/LIBSVM.jl Outdated Show resolved Hide resolved
test/runtests.jl Outdated Show resolved Hide resolved
src/LIBSVM.jl Outdated Show resolved Hide resolved
@iblislin
Copy link
Member

iblislin commented Jun 9, 2021

Let's put aside the data var issue and revert changes on it first.

@barucden barucden force-pushed the check_parameter branch 3 times, most recently from 736d3fe to 7e6dd05 Compare June 10, 2021 10:11
LIBSVM provides function `svm_check_parameter` that validates the
parameters given by `SVMParameter`. This commit calls this function
before calling `svm_train`.
@barucden
Copy link
Member Author

@iblis17 Thanks for the review. The changes are implemented now.

src/LIBSVM.jl Outdated Show resolved Hide resolved
@iblislin iblislin merged commit 139f162 into JuliaML:master Jun 10, 2021
@barucden barucden deleted the check_parameter branch June 10, 2021 10:36
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