This is the second entry in my series exploring the fundamentals of machine learning and AI by programming them from scratch. Follow along with the accompanying notebook by clicking here. Previously, I built a binary classifier from scratch, and trained it using a random local search method. It was implemented in such a way that […]
Hello, I hope you are doing well. This is the first entry in what I hope to make a series of articles documenting my journey into learning about the fundamentals of machine learning and AI by building the systems from scratch. This time, I will demonstrate how I built a powerful binary classifier from scratch […]
Do you remember learning about inheritance in school? It may have seemed needlessly complex for the projects you worked on at the time. However, as you begin working on bigger, more complex projects, making wise use of this object-oriented design principal can vastly cut down on the size of your codebase, making maintenance and development […]
If you’ve used SQLAlchemy for any length of time, you will have come across the need to set up relationship cascade rules. These are rules that define how changes to instances of parent models should affect related models. For instance, when I delete a “Class” from my database, should I delete all “Enrollment” records related […]
What is GraphQL GraphQL is a powerful, expressive query language for APIs, as well as a runtime for using existing data to respond to these queries. Often viewed as the successor to REST APIs, it provides a concise and easily human-readable interface for querying your API for data and tasks. GraphQL offers a number of […]
Are you interested in learning FastAPI and SQLModel? I recently started a new job, and I needed to learn their tech stack. The company implements a microservices architecture, interacting with their databases through micro-apis built using FastAPI, a popular new python package for api development, using the SQLModel library as an ORM and input validator. […]
It is very common in application and database design to keep fields on a table for when a record was created and last updated. These fields are common enough that many large frameworks like Laravel handle them automatically. SQLModel is a relatively new Python library that combines the data validation of Pydantic with the ORM […]