Questions tagged [reshape]

The tag has no usage guidance.

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

Keras loaded model output is different from the training model output

When I train my model it has a two-dimension output - it is (none, 1) - corresponding to the time series I'm trying to predict. But whenever I load the saved model in order to make predictions, it has ...
0
votes
1answer
29 views

Reshaping Pandas DataFrame

I am trying to do the following as shown below. ...
0
votes
0answers
16 views

How to reshape long data to wide data format using Orange?

I have a table with 3 columns: Time, Tagname, TagValue. I would like to split the TagValue column by Tagname so that the resulting table has Time and each Tagname in a separate column and the ...
0
votes
0answers
12 views

Input shape error for multi label segmentation

I am trying to perform multi-class segmentation and when I try to feed the model with my input images and model it get this error: ...
0
votes
0answers
27 views

Recurrent Python Neural Networks - Reshape () Error [duplicate]

The script below creates the arrays for data prediction using recurring neural networks, If I set the period to 4, the script runs, but I have a 5 value input, how to fix my reshape? DATA SET ...
0
votes
2answers
348 views

Data Reshaping for CNN using Keras

I'm a beginner in Keras. I've loaded MNIST dataset in Keras and checked it's dimension. The code is ...
0
votes
1answer
31 views

how to create multiple plot from a panda Dataframe

I want to plot multiple plots. The data is stored in a pandas dataframe and each row should be a seperate plot. Each row has an ID (ZRD_ID) which doenst matter and a date (TAG) and 24 values to be ...
-1
votes
1answer
171 views

Word Embeddings with TFIDF vectorizer

I am a beginner in machine learning. I have a large corpus of texts, divided into thematic groups. I would like to get idf values for the whole corpus, and then apply it on each group before ...
1
vote
0answers
42 views

ValueError when reshaping to 4 dim array for the Keras API

DL beginner here. I'm trying to implement LeNet using Keras and apply it on good ol' MNIST. ...
1
vote
1answer
90 views

numpy array reshape question

Let's say that I have image data with shape $(32, 32, 3)$ and $50000$ If I would like to reshape it to $(50000, 3, 32, 32)$ what should I do? I tried ...
1
vote
0answers
18 views

Tensor Shape 'Reshape' during the dataflow

I would like to combine an Autoencoder with a LSTM. However, the 'timestep' is a block for the implements and I would like to train them together. Is there a solution to the tensor 'reshape'? I mean, ...
1
vote
1answer
39 views

What is the difference between different batch_sizes in Keras Sequential models?

I am interested to know, what happens when I choose batch_size=1 or batch_size=1000 or any other numbers in ...
0
votes
1answer
400 views

keras Sequential CNN for image data reshaping data issues

I am new at keras and CNN and am working on building at CNN for sequential analysis of movement in a image. What I am having issues with is the reshaping the data and the labels that go into the ...
1
vote
1answer
2k views

Keras input shape error

I am trying to load a Keras model and make predictions with it and run into a strange error. An minimal example is the following: ...
2
votes
1answer
189 views

Is the multilayer perceptron only able to accept 1d vector of input data? If yes, why is this so?

I am going through the tutorial at the link below which uses MNIST handwritten digit database. https://machinelearningmastery.com/handwritten-digit-recognition-using-convolutional-neural-networks-...
5
votes
1answer
7k views

Please explain input shape in Keras

My data consists of 2-dimensional arrays with shape (2,3). The whole dataset (emp) consists of 12 items (I know that it is too small of a number for an NN training, ...
2
votes
1answer
4k views

Are view() in Pytorch and reshape() in Numpy similar?

Are view() in torch and reshape() in Numpy similar? view() is applied on torch tensors to ...
0
votes
1answer
437 views

Reshape features in rows intro columns python?

My features are arranged in rows, Can anyone tell me please how can I transform them into columns with theirs corresponding times and values?? I mean each features has a set of corresponding times and ...
0
votes
1answer
740 views

Predictions with arbitrairy sequence length for stateful RNN (LSTM/GRU) in Keras

I have time series data of the following properties: input shape: (num_timesteps, num_features) output shape: (num_timesteps, num_outputs) I reshape it to batch ...
3
votes
4answers
2k views

rows to columns in data.table R (or Python)

This is something I can't achieve with the reshape2 library for R. I have the following data: ...