QuestionQ113

Environment Architectures

A Machine Learning Engineer is considering relocating their functions and unit tests from notebooks into separate Python files, such as modules and test scripts, to gain benefits including automated execution, code reuse, and version control.

Which challenge should the engineer consider with this approach?

  • A This change would prevent the use of any non-Python environments like Scala.
  • B Separating code and tests often leads to decreased reliability and poor code quality.
  • C Managing a more complex project structure can be harder to maintain and navigate.
  • D It makes functions harder to import and reuse across different notebooks.
Explanation

Separating notebook code into modules and test scripts typically creates a more structured project, but that structure can add directories, package boundaries, dependencies, and import paths that are harder to maintain and navigate.

Community Discussion

No comments yet. Be the first to start the discussion!