Re:TensorFlow.js: Machine Learning for the Web and Beyond
by naveen99 on Tuesday February 05, 2019 @08:16AM
(#19084970)
Chaining function calls makes things harder to debug, so I don’t do it.
Re:TensorFlow.js: Machine Learning for the Web and Beyond
by rajangdavis on Wednesday February 06, 2019 @01:08AM
(#19093092)
I don't think it's any harder than broadcasting... I try to avoid chaining unless I know the structure of the data I am working with.
Once you have something sufficiently complex (such as using map, filter, and reduce all at the same time), there becomes so much line noise that it starts working against you.
With JS/Ruby/Scala, you chain functional methods as opposed to Python where you can keep wrapping functions.
Something like
becomes a little more cryptic with Python: While Python is very beginner friendly, it has a really strange (in my opinion) approach to functional concepts. However, it is has other features that make it really nice to work with (like decorators, data classes, sets, robust ML libraries, really nice built ins).