.3106580201476295:871cd6265d2b4a480125f69a27f0370e_69f5ecf1de92085ec7833909.69f5f2a9de92085ec7833a4d.69f5f2a9fbc5f84623048740:Trae CN.T(2026/5/2 20:48:41)#9
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.
请修复API挂接问题:确保pygad.GA实例可直接调用plot_metrics(),与examples/example_run_metrics.py一致(可在GA类中添加转发方法或正确继承可视化类)。同时校正run_metrics['generation']记录规则,保证与num_generations一致且不要额外多记一代;明确每代time_elapsed定义并实现正确计时。最后补一个最小测试/示例自检:run后to_csv()与plot_metrics()均可执行不报错。