Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion _posts/2024-04-07-unit-testing-datascience.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.