I used the under-appreciated tool FiftyOne to analyse the ways that my object detection model is underperforming. For computer vision problems, it's really useful to have visual debugging aids and FiftyOne is a well-documented and solid tool to help with that.
The parse, yarl and datefinder packages are all ways in Python to help parse input data of different formats and types. Nothing essential here, but useful nonetheless.
I iterated through several prototypes to get to a script that could autogenerate synthetic training data for my computer vision model. I hoped to bootstrap my training to get a bit jump in model performance.
Chapter 10 covers the last of the user-defined types explored in 'Robust Python': classes. We learn what an 'invariant' is and how to decide whether to use a data class or a class when rolling your own types.
Chapter 9 of 'Robust Python' dives into the uses of data classes, a user-defined datatype in which you can store heterogenous data together. They help formalise implicit concepts within your code and as a result also improve code readability.
The eight chapter of Patrick Viafore's book, 'Robust Python', gets into enums which you can use when you have a grouping of some constants that belong together.
Reflections on the sixth and seventh chapters of Patrick Viafore's book, 'Robust Python'. We slowly wind down our discussion of type hints in Python code and think through using `mypy` and how to introduce type hints to a legacy codebase.
Reflections on the fifth chapter of Patrick Viafore's book, 'Robust Python'. We learn about how to use type annotations when collections (lists, dictionaries and sets, primarily) are involved.
Reflections on the fourth chapter of Patrick Viafore's recent book, 'Robust Python'. We learn about the different options for combining types and constraining exactly which sets of types are permitted for a particular function or variable signature.
Some early thoughts on the benefits and possible drawbacks of using fastai's 'nbdev' literate programming tool which is a suite of tools that allows you to Python software packages from Jupyter notebooks.
Reflections on the third chapter of Patrick Viafore's recent book, 'Robust Python'. We get some quick practical examples of how to use type annotation and how to use tools like `mypy` to analyse how typed values pass through your code.