10 principles of source code management for ML
Here are 10 principles that can be applied to your code to ensure the quality, robustness, and scalability of your code:
- Modularity: It is better to have modular code than to have one big chunk. Modularity encourages reusability and facilitates upgrading by replacing the required components. To avoid needless complexity and repetition, follow this golden rule:
An ML component that is not tightly paired with its environment can be more easily modified or replaced than a tightly paired component.
- Single task dedicated functions: Functions are important building blocks of pipelines and the system, and they are small sections of code that are used to perform particular tasks. The purpose of functions is to avoid repetition of commands and enable reusable code. They can easily become a complex...