keras-team / keras-core

A multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch.
Apache License 2.0
1.27k stars 115 forks source link

Increase test coverage in `keras_core`/`trainers` #860

Closed Faisal-Alsrheed closed 12 months ago

Faisal-Alsrheed commented 12 months ago

Increase test coverage in:

1- keras_core/trainers/data_adapters/tf_dataset_adapter_test.py

New test methods have been added to handle scenarios with invalid dataset types, simultaneous use of class_weight and sample_weight, and many more.

2- keras_core/trainers/epoch_iterator_test.py A significant increase in test cases focusing on scenarios with insufficient data, unsupported arguments for different backends, and many more.

codecov[bot] commented 12 months ago

Codecov Report

Patch coverage has no change and project coverage change: +0.06% :tada:

Comparison is base (f2d9838) 76.15% compared to head (f4e5efd) 76.21%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #860 +/- ## ========================================== + Coverage 76.15% 76.21% +0.06% ========================================== Files 329 329 Lines 31270 31270 Branches 6083 6083 ========================================== + Hits 23814 23833 +19 + Misses 5857 5844 -13 + Partials 1599 1593 -6 ``` | [Flag](https://app.codecov.io/gh/keras-team/keras-core/pull/860/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team) | Coverage Δ | | |---|---|---| | [keras_core](https://app.codecov.io/gh/keras-team/keras-core/pull/860/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team) | `76.12% <ø> (+0.06%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team#carryforward-flags-in-the-pull-request-comment) to find out more. [see 2 files with indirect coverage changes](https://app.codecov.io/gh/keras-team/keras-core/pull/860/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.