PyTorch 实现与追问

题集来源:Alireza Dirafzoon(alirezadir)收录项目:AIMLInterviews查看原题集

题目来源
Devinterview 其中第 85—146 题的题目索引来自 Devinterview,答案由 AIMLInterviews 重新撰写;原文的 50 题补充部分在此收录为 62 道,含拆分追问。

题目目录

156 道原题
  1. Implement a reproducible train/validation split without scikit-learn.

    原题
  2. Write a generator that lazily reads and transforms records from a large dataset.

    原题
  3. Flatten a nested dictionary while preserving a reversible mapping.

    原题
  4. Merge metric dictionaries and compute weighted averages.

    原题
  5. Implement an execution-time decorator.

    原题
  6. Design a registry for losses, optimizers, or preprocessing functions.

    原题
  7. Refactor a monolithic training script into testable modules.

    原题
  8. Define a typed configuration object.

    原题
  9. Make a utility deterministic without mutable global state.

    原题
  10. When should you use a dataclass, function, class, or abstract base class?

    原题