From 168b4986a05af7d19ee90fd0bf20201e80b9e5f1 Mon Sep 17 00:00:00 2001 From: arpithub Date: Sat, 13 Apr 2024 21:10:26 -0500 Subject: [PATCH] added code repo --- _posts/2024-04-07-unit-testing-datascience.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_posts/2024-04-07-unit-testing-datascience.md b/_posts/2024-04-07-unit-testing-datascience.md index f2b7536..787c727 100644 --- a/_posts/2024-04-07-unit-testing-datascience.md +++ b/_posts/2024-04-07-unit-testing-datascience.md @@ -38,7 +38,7 @@ data-science-project/ **src/:** Directory containing Python modules for data preprocessing (preprocessing.py) and model training (model.py).\ **tests/:** Directory for storing test modules (test_preprocessing.py and test_model.py).\ **data/:** Directory containing the Iris dataset (iris.csv).\ -**requirements.txt:** File listing project dependencies (e.g., pytest, pandas, scikit-learn).\ +**requirements.txt:** File listing project dependencies (e.g., pytest, pandas, scikit-learn). #### Installing Dependencies Make sure you have Python and pip installed. Create a conda environment and install the required packages: @@ -172,5 +172,6 @@ To run the tests using Pytest, navigate to the `tests` directory and execute: pytest ``` +- [Full Code in Git Repo](https://github.com/arpitHub/blogposts_code/tree/main/unit-testing-datascience) #### Conclusion By incorporating a suite of comprehensive unit tests, you can ensure the robustness and correctness of your data preprocessing, modeling, and evaluation workflows. Continuously expand and refine your tests to cover various scenarios and edge cases, enhancing the reliability and integrity of your data science projects. \ No newline at end of file