Questions tagged [tensor]

In machine learning, tensor is a multidimensional (multi-index, or multi-way) array of numbers, i.e. a generalization of a matrix.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Mismatch in input shape - Inference server exception

I am using Nvidia's tensorrt-inference server. We have a model trained and deployed in the inference server. The input image shape is (224,224,3) and output shape is 224,224,1. Currently I pass a ...
0
votes
0answers
8 views

Arithmetic/logic operations with large sparse tensors in R [migrated]

I need to make quick calculations (+,*,>) with large 3D arrays (tensors) in R (like 1500 x 150 x 30000). Since these arrays are very sparse (only 0.03% entries are non-zeros) I first use as_sptensor ...
1
vote
0answers
23 views

Why are some robust algorithms valid for Tucker decomposition, but not for CP decomposition?

I have been reading up about CP and Tucker decomposition. It makes sense that CP decomposition is a special case of Tucker decomposition, where the core tensor is super-diagonal. However, if this is ...
1
vote
0answers
15 views

Diffusion tensor as a covariance matrix

TLDR: In nuclear magnetic resonance (NMR), to study molecular diffusion we assume that molecules displace in 3D space according to a trivariate gaussian distribution. The variables are then the ...
1
vote
0answers
43 views

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, \...
1
vote
0answers
32 views

Regarding the quantics tensor train (QTT) format

I originally posted this question in Data Science Stack Exchange, however, I think this forum may be better for this question. I believe I have a fair understanding of the tensor train (TT) format, ...
0
votes
0answers
90 views

Random forest for tensors

Say we have have input tensor $X \in \mathbb{R}^{T \times N \times P}$ and output tensor $Y \in \mathbb{R}^{T \times N \times K}$, and we aim to build a Random Forests model $Y = f(X)+ \epsilon$. ...
1
vote
1answer
315 views

Can a Fully Connected layer transform a 4D tensor to a 3D tensor by itself?

Recently, I was researching some topics in biometrics and I stumbled upon this paper. They have a table there (Table 1) in which they state that they used a modified CNN from this paper (Table 9). In ...
3
votes
1answer
762 views

Machine learning methods for multi-dimensional input and output

I have a large dataset where my input is an $M$-dimensional tensor, and each input has a corresponding $N$-dimensional output. My goal is to train a method to learn outputs from the millions of inputs ...
2
votes
0answers
48 views

Is there any sort of higher-order SVD (quadratic and above) for dimensionality reduction?

X-Posted on math.stackexchange, apologies, though I thought this was equally relevant to both communities. I'm wondering if there exists any higher-order SVD for dimensionality reduction. Note that ...
0
votes
1answer
49 views

Parameters in a neural tensor network

I am reading the paper of "Reasoning With Neural Tensor Networks for Knowledge Base Completion". I read it many times but I couldn't understand the parameters that are used especially the parameter U. ...
0
votes
1answer
91 views

Best way to represent 3D data for Neural Networks

I want to train a generative model over a dataset where each example is a $X = (N,3)$ matrix representing $N$ points in $\mathbb{R}^3$. The local structure (i.e. the correlations between neighboring ...
1
vote
1answer
121 views

Satellite data pre-processing for Keras CNNs [closed]

I’m looking at satellite data and want to do object detection using CNNs in Keras. I’m currently pre-processing the data (turning them into tensors) that I’ve obtained which include the original ...
0
votes
1answer
64 views

Shape of a tensor [closed]

Suppose I have a variable that looks like this [[[1., 2., 3.]], [[7., 8., 9.]]] I have read this is a rank 3 tensor with shape ...
0
votes
0answers
79 views

References on tensor algebra for machine learning? [duplicate]

So tensors come up a lot in machine learning in various settings. Any math major will have studied linear algebra heavily and it's usually much simpler to use linear operators and the corresponding ...
0
votes
1answer
214 views

Tensor Classification Models

Aside from Convolution Neural Networks, are there any other methods that allow for classification of Tensors? My observations consist of multi-dimensional tensors with height of 1, where each channel ...
1
vote
1answer
947 views

CP decomposition for tensor factorization

I am trying to understand CP decomposition for a three way tensor. Lets have a tensor which has the dimensions I by J by K. When we apply CP decomposition, it decomposes the tensor as a sum of a rank-...
0
votes
1answer
259 views

Fitting Tensor Product P-splines, Penalty Parameters

I am working with the mgcv package in r and I am fitting tensor product P-splines. ...
1
vote
2answers
301 views

Implementation of algorithm to determine next basket recommendation?

I hope I am asking in right forum, and forgive me, if I am wrong. I am trying to implement an algorithm based on an open paper ...
0
votes
0answers
23 views

Validating decomposition of Synthetic Tensor generated from Unevenly Sampled Tensor

I have a 3-way tensor generated from 7 experiments, with each experiment being matricized and becoming a frontal slice of the tensor (thus mode-3 is of length 7). The data is generated from ...
15
votes
2answers
16k views

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 ...
1
vote
1answer
49 views

Tensor method under high noise

Tensor methods give good results under low approximation error. (e.g. at 7min http://videolectures.net/iclr2016_anandkumar_nonconvex_learning/). I am wondering how do they do when the noise in the ...
4
votes
1answer
565 views

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 ...
16
votes
1answer
1k views

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 ...
1
vote
0answers
197 views

Logistic Tensor Regression

Say there are users and they view articles and click (or not click) on articles. I represent the $i$-th user as $x_i$, a $D \times1 $ vector and $j$-th article as $z_j$, a $C \times 1$vector. The ...
5
votes
0answers
173 views

Intuition behind using tensors ? [closed]

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 ...
168
votes
9answers
33k views

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 ...
7
votes
1answer
882 views

The meaning of tensors in the neural network community [duplicate]

In the neural network community, is a tensor pretty much always just a multi-dimensional array?