Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR converts the testing from a class-based and unittest-powered infrastructure to a function-based pytest-powered infrastructure. Additionally, generalized fixtures have been adopted for the project ENGIE data creation and resetting of the random number generators.
Some test values have been updated in the following places.
test/unit/test_ml_toolkit.py::test_algorithm_defaults: 7 iterations are now run for the random search, so the best fit RMSE has increased.test/unit/test_timeseries_toolkit::test_convert_local_to_utc: previously checked for a genericExceptionthat was actually raised due to an improper use of passing a non-callable tounittest.assertRaises.test/regression/test_long_term_monte_carlo_aep.py: left largely untouched so that it can be handled in the updates introduced in Replace pyGAM withTweedieRegressorinMachineLearningSetup#329.test/regression/wake_losses.py: UQ-based test discrepancies have been identified as stemming from differences in MacOS runs, so an acceptable deviation has been added to the test results.test/regression/yaw_misalignment.py: Reenables the 95% CI tests, and adjusts the results to allow for MacOS variations similar to the wake loss checks.