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 regression for tree-based models #25

Merged
merged 3 commits into from Jun 16, 2021
Merged

Conversation

iamDecode
Copy link
Owner

As gradient boosting uses regression trees internally, #23 already contained the majority of preparation for supporting regression in tree-based models. This PR adds two new classes PMMLTreeRegressor (extending DecisionTreeRegressor) and PMMLForestRegressor (extending RandomForestRegressor) for regression problems.

@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

Merging #25 (84f380b) into master (afb42d0) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            master       #25    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           12        12            
  Lines          624       729   +105     
==========================================
+ Hits           624       729   +105     
Impacted Files Coverage Δ
sklearn_pmml_model/ensemble/__init__.py 100.00% <100.00%> (ø)
sklearn_pmml_model/ensemble/forest.py 100.00% <100.00%> (ø)
sklearn_pmml_model/ensemble/gb.py 100.00% <100.00%> (ø)
sklearn_pmml_model/tree/__init__.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 afb42d0...84f380b. Read the comment docs.

@iamDecode iamDecode changed the title Support regression for tree-based trees Support regression for tree-based models Jun 16, 2021
@iamDecode iamDecode merged commit 71413a5 into master Jun 16, 2021
@iamDecode iamDecode deleted the decode/regression-trees branch June 16, 2021 19:04
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