How to efficiently interact with config files in Python — Originally published at https://mathdatasimplified.com on May 26, 2023. Problem In your data science project, certain values tend to change frequently, such as file names, selected features, train-test split ratio, and hyperparameters for your model.