Repository navigation
test(qvae_cell): pin epoch aggregation in evaluation mode - #1434
Open
iloveeyjafjalla wants to merge 1 commit into
Open
iloveeyjafjalla wants to merge 1 commit into
iloveeyjafjalla wants to merge 1 commit into
Conversation
Trainer.run_epoch averages the loss/KL/reconstruction metrics over batches and skips the BM phase when training is off; nothing pins the aggregation or the untouched optimizers.
This branch has not been deployed
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.
目的
Trainer.run_epoch averages the loss/KL/reconstruction metrics over batches and skips the BM phase when training is off; nothing pins the aggregation or the untouched optimizers.
改动
tests/test_qvae_cell_run_epoch.py(新增 1 个用例,桩模型固定 loss=3/kl=1/recon=2,两个“禁止调用”的优化器){loss:3, neg_elbo:3, kl:1, recon_loss:2, bm_loss:0}。验证
value / len(loader)→/(len(loader)+1)(锚点唯一)→ 1 failed;随后还原;pylint -E10.00/10。文档
测试即契约(见各用例 docstring)。
查重
gh pr list --search "run_epoch"仅命中 feat(qvae): unify the SVI training entry with Q_SVI (backend='svi'|'legacy') #319(SVI 训练入口,无关);AI 辅助说明
本次改动在 AI 辅助下完成(ZCode),断言与实现逐行核对。
Closes #1433