.3106580201476295:8fa4e8da481036e55efe08b41af675fd_69f6d5e4de92085ec7833f89.69f6d863de92085ec7834052.69f6d863fbc5f84623048746:Trae CN.T(2026/5/3 13:08:51)#14
Open
stonelv wants to merge 1 commit into
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.
请为pygad.kerasga.predict(reuse_model=...)新增pytest测试(放tests/):构建小Keras模型+固定solution+固定输入,分别在reuse_model=None/False/True/传入clone实例下预测,断言输出numpy.allclose一致;断言reuse_model=True多次调用缓存大小不增长;调用clear_model_cache()后缓存清空并可再次预测;再建第二个不同模型,确认不会共用缓存。必要时使用matplotlib无关、TensorFlow最小依赖写法,保证可在CI无GUI运行。