Closed fatihsen20 closed 1 year ago
Change the code:
dfs = self.df.astype(pd.SparseDtype("int", np.nan))
dfs = self.df.astype(pd.SparseDtype("int", 0))
because the na_value of the "int" variable in the pd.SparseDtype() function must be 0. You can look at the document
Change the compare_dataframes()
function:
assert_array_equal()
function was not working correctly. To fix this error, I replaced it with the compare_dataframes()
function I wrote in "test_hmine.py".
Thanks so much for the update, the assert_array_equal() function was not working correctly
issue was a sneaky one.
Patch coverage: 53.84
% and project coverage change: -0.02
:warning:
Comparison is base (
8ebfd31
) 77.28% compared to head (e283a20
) 77.27%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Code of Conduct
Fix.
Description
Test codes with errors (or usage may have changed) have been fixed.
Related issues or pull requests
None
Pull Request Checklist
./docs/sources/CHANGELOG.md
file (if applicable)./mlxtend/*/tests
directories (if applicable)mlxtend/docs/sources/
(if applicable)PYTHONPATH='.' pytest ./mlxtend -sv
and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g.,PYTHONPATH='.' pytest ./mlxtend/classifier/tests/test_stacking_cv_classifier.py -sv
)flake8 ./mlxtend