[python-package] Add tests for some plotting functions#7144
[python-package] Add tests for some plotting functions#7144jameslamb merged 2 commits intomicrosoft:masterfrom
Conversation
@microsoft-github-policy-service agree |
eb4dbfd to
1bc0e65
Compare
Alright, all unrelated formatting changes has been reverted and branch updated to the latest |
jameslamb
left a comment
There was a problem hiding this comment.
Thanks for working on this! I left some suggestions for making these tests a bit stronger.
xlim/ylim and max_num_features parameters|
I've updated the description and title, removing references to tests that you've since removed. It would be ok to add back |
1b55e96 to
6e14ae1
Compare
Thanks for clarifying and for updating the title. I'll add |
6e14ae1 to
c429fc0
Compare
|
@jameslamb , all changes have now been addressed. Thank you. |
jameslamb
left a comment
There was a problem hiding this comment.
These tests are looking great! I learned some new things about testing matplotlib figures from reviewing this.
If CI passes I'll merge this. Thanks!
Thanks so much for the review. Glad the tests were helpful. Appreciate you taking out time to look through this. |
|
Thanks very much, welcome to the community of LightGBM contributors 😊 We'd welcome more contributions in the future! |
Contributes to #7031 by expanding test coverage for plotting module parameters.
New tests added:
plot_importance()max_num_featuresplot_split_value_histogram()xlimplot_metric()xlimTest plan
pytest tests/python_package_test/test_plotting.py::test_plot_importancepassespytest tests/python_package_test/test_plotting.py::test_plot_split_value_histogrampassespytest tests/python_package_test/test_plotting.py::test_plot_metricspasses