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

Add unit tests to cover save-path flag in all visualization modules #175

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

amirhessam88
Copy link
Member

@amirhessam88 amirhessam88 commented Dec 26, 2022

Description

  • Added unit-tests to cover save-paths.
  • Added missing tests to cover kwargs for glmnet and shap.
  • Fixed pyproject.toml to match poetry version >= 1.3.1.
  • Fixed default reviewer to @amirhessam88 in all issue templates.

Resolves: #issue-number-here

Pull Request Checklist

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

@@ -58,6 +58,9 @@ jobs:
# therefore, all the CI jobs for those python versions failed at first, then we re-run the
# jobs, the cached venv using `python v3.8` will be retrieved and the jobs will run successfully
# ideally, we should be able to add `python-versions` here to distinguish between caches
# key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
Copy link
Member Author

Choose a reason for hiding this comment

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

stupid glmnet does not still let us do this!

@@ -78,7 +78,7 @@ matplotlib = "^3.5,<3.6"
seaborn = "^0.12"


[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
Copy link
Member Author

Choose a reason for hiding this comment

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

following new poetry syntax

@amirhessam88 amirhessam88 self-assigned this Dec 26, 2022
@amirhessam88 amirhessam88 added the enhancement New feature or request label Dec 26, 2022
@codecov
Copy link

codecov bot commented Dec 26, 2022

Codecov Report

Base: 93.39% // Head: 97.33% // Increases project coverage by +3.94% 🎉

Coverage data is based on head (d1813e4) compared to base (011f4d6).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #175      +/-   ##
==========================================
+ Coverage   93.39%   97.33%   +3.94%     
==========================================
  Files          22       22              
  Lines        1876     1873       -3     
  Branches      209      209              
==========================================
+ Hits         1752     1823      +71     
+ Misses         63       24      -39     
+ Partials       61       26      -35     
Flag Coverage Δ
unittests 97.33% <100.00%> (+3.94%) ⬆️

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

Impacted Files Coverage Δ
src/slickml/base/_estimator.py 100.00% <ø> (+1.35%) ⬆️
src/slickml/base/_metrics.py 100.00% <ø> (+25.00%) ⬆️
src/slickml/visualization/_glmnet.py 89.62% <ø> (+20.75%) ⬆️
src/slickml/visualization/_metrics.py 94.64% <ø> (+12.50%) ⬆️
src/slickml/visualization/_xgboost.py 94.66% <ø> (+16.00%) ⬆️
src/slickml/metrics/_classification.py 99.25% <100.00%> (ø)
src/slickml/metrics/_regression.py 98.97% <100.00%> (ø)
src/slickml/base/_enum.py 100.00% <0.00%> (+6.25%) ⬆️
src/slickml/visualization/_shap.py 93.47% <0.00%> (+13.04%) ⬆️
... and 3 more

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 057773b into master Dec 26, 2022
@amirhessam88 amirhessam88 deleted the amir/fix-unit-tests branch December 26, 2022 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant