Hey Ivan, first of all great approach, and I love the Star Wars theme! At first after reading your post I too felt confused about how you’re using your error function and updating the parameters, as 钱小谦 also mentions.
But after reading your comments, it makes more sense to me. I think this essay is technical enough that its readers would fall into a category of people who would want more detailed explanations. So I suggest you to add more details of the maths behind the scenes!
Keep up the great work Ivan!