引导式测验 · 中等 等级
单元测试机器学习代码测验
为变换、损失、张量契约和微小的过拟合行为选择适当的测试,而不会将代码检查与泛化混淆。
问题 1 的 8
哪些断言适用于预处理转换器?
预览每个问题8 问题
当您参加测验时,就会出现答案和解释。
- 哪些断言适用于预处理转换器?
- Expected output shape, column order and known transformed values
- Held-out accuracy on a deployment-like population
- Recall across rare production subgroups
- End-to-end latency under peak service load
- 为什么要将损失实现与手算进行比较?
- It proves the model will generalize
- It can catch formula or reduction errors on a known example
- It replaces training data quality checks
- It guarantees the optimizer converges
- 极小过拟合测试有助于检测什么?
- Fairness across all subgroups
- Reliable performance on unseen data
- Potential training-path or gradient bugs
- Production latency under load
- 测试应如何比较浮点数输出?
- Skip checks for all model outputs
- Require exact bitwise equality on every device
- Round every value to an integer
- Use explicit tolerances appropriate to numerical precision
- 哪个检查属于模型包装器接口测试?
- A statistical calibration curve on a held-out set
- One prediction per input row and clear rejection of malformed features
- Subgroup performance estimates with confidence intervals
- Training loss after a full retraining job
- Why separate unit tests from model-quality evaluation?
- Quality metrics test only syntax
- Unit tests cannot execute Python functions
- Code correctness does not establish statistical usefulness
- Model validation needs no data
- What can a finite-gradient assertion establish?
- The model is calibrated
- The gradients are mathematically optimal
- The model has no bias
- A basic gradient path exists for expected parameters
- Where should slow full-dataset training usually be placed?
- In a separate integration or training validation stage
- In every tiny unit test
- Inside a feature-name assertion
- In a package lockfile