theochem / Selector

Python library of algorithms for selecting diverse subsets of data for machine-learning.
https://selector.qcdevs.org
GNU General Public License v3.0
22 stars 21 forks source link

Fix the errors when only some feature columns are constants for `wdud` #225

Closed FanwangM closed 3 months ago

FanwangM commented 3 months ago

This PR addresses the problem.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.89%. Comparing base (d931154) to head (8c4dc19). Report is 5 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/theochem/Selector/pull/225/graphs/tree.svg?width=650&height=150&src=pr&token=0UJixrJfNJ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=theochem)](https://app.codecov.io/gh/theochem/Selector/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=theochem) ```diff @@ Coverage Diff @@ ## main #225 +/- ## ========================================== - Coverage 96.00% 95.89% -0.11% ========================================== Files 9 9 Lines 975 974 -1 ========================================== - Hits 936 934 -2 - Misses 39 40 +1 ``` | [Files](https://app.codecov.io/gh/theochem/Selector/pull/225?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=theochem) | Coverage Δ | | |---|---|---| | [selector/diversity.py](https://app.codecov.io/gh/theochem/Selector/pull/225?src=pr&el=tree&filepath=selector%2Fdiversity.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=theochem#diff-c2VsZWN0b3IvZGl2ZXJzaXR5LnB5) | `98.57% <100.00%> (+0.03%)` | :arrow_up: |