Skip to content

test(qvae_mnist): pin the encoder construction - #1430

Open
iloveeyjafjalla wants to merge 1 commit into
qboson:mainfrom
iloveeyjafjalla:codex/r72-create-encoder
Open

iloveeyjafjalla wants to merge 1 commit into
qboson:mainfrom
iloveeyjafjalla:codex/r72-create-encoder

Conversation

@iloveeyjafjalla

Copy link
Copy Markdown

目的

MnistQVAE._create_encoder derives the encoder node sequence from the configured hidden widths; nothing pins the input->hidden->latent direction or the weight-decay forwarding.

改动

  • tests/test_qvae_mnist_create_encoder.py(新增 2 个用例,input=8、hidden=[6]、latent=4)
    • 层为 (8,6)、(6,4);
    • encoder.weight_decay == 0.25。

验证

  • 基线:2 passed;
  • 变异:enc_nodes 首尾维度互换(锚点唯一)→ 维度用例 1 failed, 1 passed;随后还原;
  • 测试 pylint -E 10.00/10。

文档

测试即契约(见各用例 docstring)。

查重

AI 辅助说明

本次改动在 AI 辅助下完成(ZCode),断言与实现逐行核对。

Closes #1429

MnistQVAE._create_encoder derives the encoder node sequence from the configured hidden widths; nothing pins the input->hidden->latent direction or the weight-decay forwarding.
Copilot AI balanced review requested due to automatic review settings October 24, 2026 04:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(qvae_mnist): pin the encoder construction

2 participants