News for hackers. Stuff that matters.
Re:The tensor renaissance in data science by im3w1l on Thursday May 07, 2015 @03:07PM (#9507485)
They use tensors here to mean simply multidimensional array. And as this discussion shows, that choice of words is unfortunate and confusing.
Re:The tensor renaissance in data science by rspeer on Thursday May 07, 2015 @04:29PM (#9508051)
What I'm seeing is that physicists and geometers disagree with programmers about what "tensor" means -- not in that their views are inconsistent, but in that the programmers' view is too limited for the things that the physicists and geometers want to do with tensors.

They also disagree about what "vector" and "matrix" mean for the same reason, but they can't really put that horse back in the barn. But "tensors" remain unfamiliar enough that this disagreement can come up whenever anyone says "tensor".

Here's a possible truce:

- Programmers should default to talking about "arrays"

- Geometers and physicists should default to talking about "vectors", "matrices", and "tensors"

- We all generally recognize that some (vectors|matrices|tensors) are arrays, and some arrays are (vectors|matrices|tensors), and it's not the worst thing ever if someone uses one to mean the other

- We all generally recognize that you can sometimes do damn cool things by using an array as a tensor or a tensor as an array, so there isn't that much benefit in shouting "NO THEY'RE TOTALLY DIFFERENT".

Re:The tensor renaissance in data science by tel on Thursday May 07, 2015 @06:05PM (#9508664)
Eh, I think as you stack more and more "structure" atop something it becomes less and less appropriate to confuse it with its representation. There is afterall already a completely appropriate, cross-disciplinary term for what "programmers" here call "tensors": multidimensional arrays, or even nd-arrays.

No mathematician will bat an eye if you say that a tensor can be represented by an nd-array---but if you equate them, then you're clearly missing something.

Re:The tensor renaissance in data science by dvanduzer on Friday May 08, 2015 @12:55AM (#9510023)
So... Do "programmers" think of "matrix" and "tensor" as "synonymous"?

edit: that was actually a serious question, because i really don't understand this idea that programmers have a common notion of what a matrix is.

Re:The tensor renaissance in data science by tel on Friday May 08, 2015 @09:34AM (#9511603)
I didn't mention the term "matrix". I think it has a much more complex story with respect to common use by "programmers" along with vector. Since linear algebra is such a commonly taught subject there are lots of people with practical working knowledge of matrices. If you don't have the geometric or abstract algebraic perspective here then matrix is almost certainly "2d-array" at first blush, but you'll also admit that there's a sort of non-trivial relationship between these "matrices" and size-conformant "vectors" (1d-arrays) and another one between two size-conformant matrices. This distinction is made from time to time [0][1].

Finally, of course, a matrix is a special case of a tensor. Tensor is such a broader topic that it becomes more and more difficult to talk about it without its geometric underpinnings. This is what I was writing about above.

[0] Is a black-and-white image a matrix? I'd imagine a lot of people would have a bit of a tough time saying yes directly---and for good reason. But there's also a reasonable argument for pretending like it is, and even reasonable arguments for turning it into one!

[1] Numpy distinguishes between nd-arrays and matrices exactly right in that matrices are 2d-arrays only and are imbued with multiplication as composition of maps. In practice, many people I know who are Numpy users just think of matrix as a convenient way to overload *, though.

Re:The tensor renaissance in data science by jheriko on Thursday May 07, 2015 @08:38PM (#9509374)
poor choices of name happen all the time. we can't change them after they set in, so we have some really dumb use of terms today in the context of 5 or 10 years ago. it even happens inside of software development alone - the use of "responsive" in web design, which always used to mean "responds quickly", not "adapts to resolution and aspect ratio".

std::vector was an exceptionally poor choice of name...

is it so hard to just call it pseudotensor like it is? its confusing for people trying to research the subject when they come across all kinds of geometry and calculus stuff which is irrelevant to the usage here.

Re:The tensor renaissance in data science by tel on Friday May 08, 2015 @09:42AM (#9511637)
The use of "functor" in C++ is pretty terrible, too.
Re:The tensor renaissance in data science by musgravepeter on Thursday May 07, 2015 @09:12PM (#9509474)
I agree it's unfortunate.

I think this is really a flimsy use of a technical term which does have a precise meaning in the context of mathematical physics to make the idea of multi-dimensional array seem "deeper" than it really is.

There are enough hard problems in data science - I don't think it needs to burdened with terms like this.

Re:The tensor renaissance in data science by tel on Friday May 08, 2015 @09:42AM (#9511643)
Especially if information geometry ever grows and data scientists start to actually have to use real tensors.