Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@amirhessam88
Copy link
Member

@amirhessam88 amirhessam88 commented Oct 24, 2022

Description

  • Refactored XGBoostFeatureSelector + added unit-tests.
  • Updated Selection notebook example with classification and regression.
  • More cleanup.

TODO

Resolves: #issue-number-here

Pull Request Checklist

  • Added tests for added or changed code.
  • Added documentation for changed code.

@amirhessam88 amirhessam88 self-assigned this Oct 24, 2022
) -> None:
"""Validates `XGBoostFeatureSelector` instanation passes with valid inputs for classification."""
X, y = clf_x_y_data
# TODO(amir): callbacks=True has not been tested yet. The look of `self._cv()` would change
Copy link
Member Author

Choose a reason for hiding this comment

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

This is still a TODO


def plot_frequency(
self,
*,
Copy link
Member Author

Choose a reason for hiding this comment

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

We need to make * required for all named args in the class methods. We did have them required in the upstream viz functions; not for the downstream ones tho.

@codecov
Copy link

codecov bot commented Oct 24, 2022

Codecov Report

Base: 67.50% // Head: 80.43% // Increases project coverage by +12.93% 🎉

Coverage data is based on head (bf6f7d5) compared to base (718137b).
Patch coverage: 93.52% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #156       +/-   ##
===========================================
+ Coverage   67.50%   80.43%   +12.93%     
===========================================
  Files          22       22               
  Lines        1997     1963       -34     
  Branches      302      263       -39     
===========================================
+ Hits         1348     1579      +231     
+ Misses        602      329      -273     
- Partials       47       55        +8     
Flag Coverage Δ
unittests 80.43% <93.52%> (+12.93%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/slickml/classification/_xgboost.py 100.00% <ø> (ø)
src/slickml/visualization/_xgboost.py 78.66% <ø> (ø)
src/slickml/visualization/_selection.py 76.66% <76.66%> (ø)
src/slickml/selection/_xgboost.py 98.93% <98.93%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@amirhessam88 amirhessam88 merged commit 53ac29b into master Oct 24, 2022
@amirhessam88 amirhessam88 deleted the amir/xfs branch October 24, 2022 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants