Questions tagged [n-dimensional]

n-dimensional involves computation in higher dimensions

Usually used in math,physics,machine learning and computer graphics. Its common to downgrade n-dimensional problems down to 4D/3D/2D/1D using techniques like:

  • projection
  • cross-section
  • PCA

either to lower the needed processing or storage power needed to handle it or to visualize or just to simplify.

110 questions
0
votes
0 answers

ValueError: No gradients provided for any variable error when using gru unit and data with ndim = 3 with diffrent batch size

Code : from pandas import DataFrame from pandas import concat from keras.models import Sequential from keras.layers import Dense from keras.layers import GRU # y.shape : (2325, 2, 13) # X.shape : (2325, 10, 13) X =…
0
votes
0 answers

i want to calculate euclidean distance to generate the seedmaps for watershed of neural cells but got ValueError: XA must be a 2-dimensional array

while finding the euclidean distance to generate the seeds for watershed, I got an error XA must be a two dimensional array. I applied many things suggested on stack overflow but couldn't solved this error. Please help me where I'm making a mistake.…
0
votes
1 answer

How to create a function that accepts as an argument an n- dimensional vector and will return the vector (x1,x2^2,..xn^n) in R

How can I create a function that accepts as an argument an n- dimensional vector that will return (x1, x2^2, ..., xn^n) in R.
0
votes
1 answer

Sliding Window over stacked np.array (Python)

I am trying to create a multi-dimensional window across a stack np array and find the max of each of the windows. Below res is a stacked array with shape (3, 4, 4). I would like to have a window with 2x2 size through the axis. For example the first…
maximus
  • 335
  • 2
  • 16
0
votes
3 answers

Java - How to build unique object tuples (n-dimension)?

I have the following challenge that I need to create unique object tuples out of object lists. The speical challenge is here how I can do it for dynamic list sizes (n-dimension)? It is easy in case you have a fixed dimension. I hope somebody knows a…
Mark
  • 3
  • 2
0
votes
1 answer

Perform filtering on N Dimensional numpy array

I have two N dimensional array, the dimension of both arrays are same. a = (n,n,52) b = (n,n,52) I am trying to filter each of (n,n) array in variable a with (n,n) array in variable b. I am trying this using command b[a==0 | a>5] = 1 But I am…
Rohan
  • 43
  • 5
0
votes
0 answers

Formatting semi-structure data using numpy in python

I have generated the output using pandas. But, the same need to be implemented using numpy. The purpose to use numpy is it have more dynamic. Can any one please help me on implementing in numpy. I have read the excel file and converted in to array…
RSD
  • 27
  • 4
0
votes
1 answer

N-dimensional matrix class using vectors of vectors

I am trying to implement a custom class which handles n-dimensional matrices using vectors of vectors, generalizing the 1d, 2d and 3d definitions: using mat1dd = std::vector; using mat2dd = std::vector; using mat3dd =…
0
votes
0 answers

Nearest Neighbor algorithm that is fast for non-matches

I have a dataset with millions of points in 100-dimensional space. I need to quickly check whether a query point is not within a certain distance to any of the points in the set. Are there fast algorithms for it? The algorithm may have false…
Kornel
  • 97,764
  • 37
  • 219
  • 309
0
votes
2 answers

Numpy Matrix Subtraction Different Dimensions

I currently have a 5D numpy array of dimensions 40 x 3 x 3 x 5 x 1000 where the dimensions are labelled by a x b x c x d x e respectively. I have another 2D numpy array of dimensions 3 x 1000 where the dimensions are labelled by b x e respectively.…
0
votes
2 answers

Calculate n-dimensional euclidean distance from group centroids for each sample and select the lowest 3 for each group in R

This is two-part question and is pretty complex. First. I want to calculate the 'n'-dimensional euclidean distance between each individual sample in dataframe "ind_scores" and it's respective group centroid in dataframe "centroids". Then, I want to…
0
votes
1 answer

How to use scipy.optimize.minimize(...) to find the optimal parameters of z = f(x, y) (like an ellipse)?

I am trying to learn how to optimize data fits in higher dimensions using python / numpy / scipy. Having successfully used scipy to fit a line of the form y = f(x), I tried extending the logic to fit an ellipse of the form z = f(x, y); both are…
user10121139
0
votes
1 answer

Python: How to reflect many n dimensional points in two n dimensional lines consecutively

Python: How to reflect several (if not many) n dimensional points in two lines, one after another, which are defined by two n dimensional coordinates each. Given several n dimensional points, eg P1 = (4, 3, 2, 5, 7) P2 = (7, 3, 2, 2, 3), and two n…
0
votes
0 answers

Interpolation in n dimensions

I'm trying to use interpn function and probing even a simple 2D example I cannot reproduce the interpolation value FUN(xi,yi) compared to the matrix grid value i.e. FUN(1,11) != 4. A = [13,-1,12;5,4,3;1,6,2]; x = [0,1,2]; y = [10,11,12]; xi =…
Damir Devetak
  • 726
  • 4
  • 10
0
votes
5 answers

is there any way to make a two dimensional database on vb 2010?

Im preparing a program for my teacher friends using vb 2010 express. They keep records about their students. I prepared a database that contains a table named "Mystudents". It has columns like "studentId , Name, Surname, etc.." . My problem starts…