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

Trees Module #351

Merged
merged 3 commits into from
Aug 19, 2021
Merged

Trees Module #351

merged 3 commits into from
Aug 19, 2021

Conversation

gcasadesus
Copy link
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #(issue_number)

Type of change

Please delete options that are not relevant.

  • New algorithm or support class.
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. If you haven't added any test and it is relevant provide instructions so we can reproduce.

  • I have added a new test file: [E.g. test_rf.py]
  • I have added a new test case: [E.g. RFTest.test_make_classification]
  • I have tested it manually in a local environment.
  • I have tested it manually in a supercomputer.

Reproduce instructions:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas.
  • I have documented the public methods of any public class according to the guide styles.
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes
  • I have rebased my branch before trying to merge.

@codecov
Copy link

codecov bot commented Aug 18, 2021

Codecov Report

Merging #351 (1ddfeed) into master (8b34f9c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #351   +/-   ##
=======================================
  Coverage   97.77%   97.77%           
=======================================
  Files          38       39    +1     
  Lines        4001     4004    +3     
=======================================
+ Hits         3912     3915    +3     
  Misses         89       89           
Impacted Files Coverage Δ
dislib/trees/test_split.py 100.00% <ø> (ø)
dislib/classification/__init__.py 100.00% <100.00%> (ø)
dislib/regression/__init__.py 100.00% <100.00%> (ø)
dislib/trees/__init__.py 100.00% <100.00%> (ø)
dislib/trees/data.py 98.73% <100.00%> (ø)
dislib/trees/decision_tree.py 99.00% <100.00%> (ø)
dislib/trees/forest.py 97.76% <100.00%> (ø)
dislib/utils/saving.py 98.61% <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 8b34f9c...1ddfeed. Read the comment docs.

Copy link
Collaborator

@michal-choinski michal-choinski left a comment

Choose a reason for hiding this comment

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

This small change would be nice (not exposing "private" objects of the module)

@@ -1,5 +1,4 @@
import tempfile
Copy link
Collaborator

Choose a reason for hiding this comment

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

please consider exposing only objects that are necessary in dislib/regression/init.py
(currently all of them are exposed)

@@ -8,7 +8,7 @@
from sklearn.tree import DecisionTreeClassifier as SklearnDTClassifier
Copy link
Collaborator

Choose a reason for hiding this comment

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

please consider exposing only objects that are necessary in dislib/regression/init.py
(currently all of them are exposed)

@@ -8,13 +8,14 @@
from sklearn.base import BaseEstimator
Copy link
Collaborator

Choose a reason for hiding this comment

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

please consider exposing only objects that are necessary in dislib/regression/init.py
(currently all of them are exposed)

@michal-choinski michal-choinski merged commit bb6303d into bsc-wdc:master Aug 19, 2021
@gcasadesus gcasadesus deleted the trees-module branch August 19, 2021 08:32
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