In machine learning, tensor is a multidimensional (multi-index, or multi-way) array of numbers, i.e. a generalization of a matrix.
Questions tagged [tensor]
74 questions
197
votes
10 answers
Why the sudden fascination with tensors?
I've noticed lately that a lot of people are developing tensor equivalents of many methods (tensor factorization, tensor kernels, tensors for topic modeling, etc) I'm wondering, why is the world suddenly fascinated with tensors? Are there recent…
Y. S.
- 1,277
29
votes
3 answers
Difference between samples, time steps and features in neural network
I am going through the following blog on LSTM neural network: http://machinelearningmastery.com/understanding-stateful-lstm-recurrent-neural-networks-python-keras/ The author reshapes the input vector X as [samples, time steps, features] for…
Vipul Jain
- 393
19
votes
2 answers
Tensors in neural network literature: what's the simplest definition out there?
In the neural network literature, often we encounter the word "tensor". Is it different from a vector? And from a matrix? Have you got any specific example that clarifies its definition? I'm a bit confused about its definition. Wikipedia doesn't…
user_1177868
- 752
11
votes
2 answers
"row" and "column" are the names of axes of 2d array, is there a similar naming for a 3d array?
row and column are the names of axes of 2d array. this python array, array([[0, 1, 2], [3, 4, 5], [6, 7, 8]]) could be viewed as a matrix that has 3 rows and 3 columns. first row is [0, 1, 2], first column is [0, 3, 6]. Is there a similar naming for…
whnlp
- 237
7
votes
1 answer
Usage of tensor notation in statistics
A friend of mine (mathematician) basically told me I shouldn't bother with matrix algebra and should focus on tensor analysis/manipulation. He said it's much more general and intuitive. I've been trying to grasp most of the matrix literature…
user143074
- 81
- 3
7
votes
1 answer
The meaning of tensors in the neural network community
In the neural network community, is a tensor pretty much always just a multi-dimensional array?
Franck Dernoncourt
- 49,212
- 35
- 186
- 308
5
votes
2 answers
Higher order tensors in Statistics
I am looking for problems in Statistics or application areas in Statistics which deal with three-way data or higher order data or 3-Tensors. Is there a regression setting where the covariates are expressed as a higher order tensor instead of a…
hearse
- 2,555
5
votes
2 answers
Proof of normal equation in regression using tensor notation
I'm struggling with a proof of the normal equation, so I posted a question which hopefully will get resolved soon. However, I mentioned there that I'm uncomfortable with the proofs dealing with matrix calculus , particularly when it comes to…
r_31415
- 3,381
5
votes
1 answer
obtaining 4th moment tensor under change of coordinates
Suppose I have a random real-valued vector $x=x_1,\ldots,x_d$ and $M_{ijkl}=E[x_i x_j x_k x_l]$ and apply a change of coordinates $y=Ax$ where $A$ is an orthogonal matrix. How do I obtain $N_{ijkl}=E[y_i y_j y_k y_l]$ ?
Yaroslav Bulatov
- 6,477
5
votes
0 answers
Intuition behind using tensors ?
I am trying to build a recommendation model by using a tensor. In order to recommend an article to a user, I have built a model to predict users' preferable articles. I am labeling articles based on topics, the result of my learning dataset is a…
user3378649
- 1,147
4
votes
1 answer
Quantile gam (qgam) of tensor product using gratia: drawing a contour plot of the response rather than the partial effect
Let's imagine the quantile regression (qgam) of the tensor product below. library("mgcv") library("qgam") library("gratia") library("ggplot2") library("dplyr") library("geomtextpath") # qgam qg0 <- qgam(z0 ~ te(x0, y0, k=c(5,5), bs=c("cr","cr")),…
denis
- 459
4
votes
2 answers
Constraint on te() tensor product gam mgcv
In the mgcv package in R, I'm working on models whose covariates are forced to change shape at the median (=0). These are the models: gam1 <- gam(Y~ s(X1, pc=0)+s(X2, pc=0), data=data) gam2 <- gam(Y~ te(X1, X2, pc=c(0,0)),data=data) Unfortunately,…
Tesla
- 41
4
votes
1 answer
Einstein notation $-$ or another $-$ to denote constraints in high dimensional ILP problems
When discussing marginal sums of arrays in 3 dimensions or more, is it customary in the statistical and/or data science communities to use the Einstein summation convention? Is some other form preferred? The context is an integer linear programming…
Peter Leopold
- 2,272
4
votes
1 answer
Higher moments of linear regression residuals?
I previously asked this on Math StackExchange , with no success, but this post will add to that with some simulations. Background In the following linear regression with i.i.d $\epsilon_i$ $(i = 1, \cdots, n)$ with mean 0 finite moments of all order…
Tom Chen
- 686
- 3
- 15
3
votes
2 answers
Solve Least Square Problem of a Sum of $N$ Quadratic Forms with a Positive Vector
Suppose we are given a list of $N$ positive definite quadratic forms $X^TQ_k X$ (where $k\in[1,N]$ and $Q_k\in\mathbb{R}^{p\times p}$ $\forall k$ ), and a positive vector $V$ of same length $N$ i.e. $V=(v_k>0)_{k\in[1,N]}$ . My question is the…
Ernest F
- 31