OOP

Object-oriented programming concepts: classes, objects, inheritance, encapsulation, and polymorphism.

DL: First Neural Network with TensorFlow/Keras

Writing a neural network in raw PyTorch means a training loop, gradient zeroing, and a pile of boilerplate before your model learns a thing. TensorFlow Keras throws all of that out: you stack a few layers, call compile() and fit(), and training just runs. In this tutorial you build your first Keras network, add callbacks, and even run it on the PyTorch backend, since TensorFlow itself will not install on the newest Python yet. “The purpose of Keras is to ... Read More

DL: First Neural Network with PyTorch

Remember spelling out the chain rule by hand in the NumPy posts just to train one tiny network? This PyTorch tutorial hands you the calculator instead: tensors that run on a GPU, autograd that computes gradients for you, and the one training loop every project reuses, from a 50-line classifier to a giant language model. “PyTorch is Python first. It feels like NumPy with GPU support and automatic differentiation built in. That is why researchers love it.” Soumith Chintala, PyTorch ... Read More

Python: GUI Programming with Tkinter (Windows, Widgets, Events)

Every Python script you have written so far probably lives in a terminal, printing lines of text and waiting for typed input. Python Tkinter changes that: it puts a real window on the screen, one with buttons and text fields you click with your mouse. There is nothing to install, since it ships with Python itself. In this tutorial you build one from scratch, right up to a working calculator. “The best interface is no interface. The second best is ... Read More