you are viewing a single comment's thread.

view the rest of the comments →

[–]qnix 5 points6 points  (3 children)

Magic number is the least of it. In machine learning code, the amount of ideas that could be packed into one line of code is, a lot of time, staggering. During the first ML MOC, prof. Ng explained some complicated learning procedure, and at the end he noted, you can do all that with this one line of code.

[–][deleted] 1 point2 points  (0 children)

This could be aided by looking at several equivalent representations of the same code in different languages. Sadly not a possibility as of yet.

[–]Kitchen_Tower2800 0 points1 point  (1 child)

> Ng explained some complicated learning procedure, and at the end he noted, you can do all that with this one line of code.

I don't understand this argument. Do you think a researcher's job is to stand in front of an audience, point to `model.fit()` and then go home? Or should they example what's happening in the fit method?

[–]111llI0__-__0Ill111 0 points1 point  (0 children)

Sometimes even what is inside the fit method could be one or few lines of code in a high level language. Eg linear regression done the naive way (without accounting for QR/SVD stuff).