simonwardjones

Joined 6 years ago

Karma
145
Submissions
12
Member since
Jun 18
View on Hacker News

Recent submissions

Comment · 6 years ago
haha - I love the use of the word brutal here! It is a brutal leap.

I wanted to give the ideas in the simplest way with friendly emojis and then go onto the more complex derivation with the cost function etc. I haven't explained the idea of the cost function enough. I think your idea for stating with the cost function (as a concept - not a formula) and absolute error may have been nicer to be fair. I can see a nice d3 visual where you can slide the gradient and see the total error change!

I could always add the line of best fit approach and more intuition for the cost function after I introduce training data (and before the brutal leap)?

Comment · 6 years ago
I had never actually seen "Data Science from Scratch" - sounds like a book I should read!

Fair point about the gradient descent Vs normal equations closed form solution. I am planning on working through a few algorithms so thought it would be better to introduce gradient descent with something simple before talking about gradient boosted decision trees and Neural Networks. Also I would have to explain more complex matrix stuff like invertibility issues and linear dependance like you said.

I guess I just dodged that bullet and went for gradient descent. Maybe another post for the linear algebra fans! Thanks for reading though!

Comment · 6 years ago
Explanation, maths and code

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton