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

Support Support Vector Machine models #31

Merged
merged 5 commits into from Jul 24, 2021
Merged

Support Support Vector Machine models #31

merged 5 commits into from Jul 24, 2021

Conversation

iamDecode
Copy link
Owner

This PR adds support for Support Vector Machines. Radial-basis, linear, polynomial and sigmoid kernels are all supported. Categorical support is implemented by one hot encoding features, just like done for linear models. Results are consistent with sklearn2pmml models, as the integration tests reflect. PMML models from R with svm from the e1071 library have embedded feature scaling, for which we will add support in a follow-up PR shortly.

@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #31 (328f7e1) into master (21a608d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            master       #31    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           13        16     +3     
  Lines          735       956   +221     
==========================================
+ Hits           735       956   +221     
Impacted Files Coverage Δ
sklearn_pmml_model/base.py 100.00% <100.00%> (ø)
sklearn_pmml_model/svm/__init__.py 100.00% <100.00%> (ø)
sklearn_pmml_model/svm/_base.py 100.00% <100.00%> (ø)
sklearn_pmml_model/svm/_classes.py 100.00% <100.00%> (ø)
sklearn_pmml_model/tree/tree.py 100.00% <100.00%> (ø)

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 21a608d...328f7e1. Read the comment docs.

@iamDecode iamDecode merged commit b4d548c into master Jul 24, 2021
@iamDecode iamDecode deleted the decode/svm branch July 24, 2021 11:38
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

1 participant