Safe-DS / Library

A user-friendly library for Data Science in Python.
https://library.safeds.com
MIT License
17 stars 4 forks source link

feat: hyperparameter optimization for fnn models #897

Closed sibre28 closed 4 months ago

sibre28 commented 4 months ago

Closes #861

Summary of Changes

Added fit_by_exhaustive_search method to NNClassifier, NNRegressor Added FittingWithChoice and FittingWithoutChoice Error Added Choice options for neuron_count params of all layers Added contains_choices method to all layers Added _get_layers_for_all_choices method to all layers Added ClassifierMetric and RegressorMetric as Enums

fit_by_exhaustive_search currently only works for tables as input, images and timeseries will be added in a later pr

github-actions[bot] commented 4 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 17 0 0 1.54s
✅ PYTHON mypy 17 0 3.38s
✅ PYTHON ruff 17 0 0 0.3s
✅ REPOSITORY git_diff yes no 0.28s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 97.91%. Comparing base (5447551) to head (7903fad). Report is 28 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #897 +/- ## ========================================== + Coverage 97.79% 97.91% +0.11% ========================================== Files 122 122 Lines 6659 6892 +233 ========================================== + Hits 6512 6748 +236 + Misses 147 144 -3 ```

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

lars-reimann commented 4 months ago

:tada: This PR is included in version 0.27.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: