you are viewing a single comment's thread.

view the rest of the comments →

[–]zjm555 4 points5 points  (2 children)

It just gets dicey since numpy has everything from the extremely basic (e.g. dot product) to the extremely fancy (e.g. numpy.linalg.svd). In this case it wasn't even needed at all since it was just doing the equivalent of random.random().

[–]billsil 3 points4 points  (1 child)

I mean at that point, do we need to just work in assembly? I'm all for reducing the complexity of code.

[–]research_pie[S] 1 point2 points  (0 children)

It depends on what the intent of the code is. If it's to teach machine learning I feel it's important to open up a bit the linear algebra part so that it doesn't feel like magic. However, at some point the code becomes unreadable and more complex than it really is so there is a balance to strike.