MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. Don’t use both the [matlab] and [octave] tags, unless the question is explicitly about the similarities or differences between the two. When using this tag, please mention the MATLAB release you're working with (e.g. R2017a).
Questions tagged [matlab]
158 questions
10
votes
1 answer
Avoid reloading DataFrame between different python kernels
Is there a way of keeping a variable (large table / data frame) in memory and share it across multiple ipython notebooks?
I'd be looking for something, which is conceptually similar to MATLAB's persistent variables. There it is possible to call a…
tsttst
- 151
- 1
- 9
7
votes
1 answer
How to draw a simple LSTM network
I'm new to deep learning, I am learning LSTM for my PhD work. This is a simple LSTM network for sequence classification.
This code is from MATLAB tutorial:
layers = [sequenceInputLayer(1)
lstmLayer(5,'OutputMode','last')
…
Osama El-Ghonimy
- 241
- 3
- 6
5
votes
1 answer
how can I generate a Bernoulli block mixture model in matlab?
I am trying to write the code of a Bernoulli block mixture model in matlab, but am facing an error every time I run the function. In particular, I'm having a problem with how to relate the distribution parameter $\alpha$ to the latent variables $Z$…
Ahmad Tay
- 51
- 2
5
votes
2 answers
Data Visualization with multiple dimension, and linear separability
I have a dataset of two classes with several features, how can I visualise such data using Matlab to decide if it is linear separable or not?
gin
- 341
- 2
- 13
5
votes
1 answer
Using the cosine activation function seems to perform very badly
I have created a neural network to classify the MNIST handwritten numbers dataset. It is using softmax as the activation function for the output layer and various other functions for the hidden layer.
My implementation with the help of this question…
ealiaj
- 205
- 2
- 6
4
votes
3 answers
Same SVM configuration, same input data gives different output using Matlab and scikit-learn implementation of SVM, in a classification problem
I have a classification problem with 60 data points in a 2-dimensional feature space. The data originally is divided into 2 classes. Earlier I was using Statistics Toolbox of Matlab so it was giving me fairly good results.It was giving 1 false…
Shaleen Jain
- 191
- 1
- 7
4
votes
1 answer
Minimize correlation between input and output of black box system
I am not sure if "minimize correlation" is the right title for this issue but I could not find a better sentence to describe what I would like to achieve.
Let's say that I have a black box with multiple inputs and a single output. I know one of the…
David
- 141
- 2
4
votes
1 answer
Training a classifier when some of the features are unknown
I am training a classifier in Matlab with a dataset that I created.
Unfortunately some of the features in the dataset were not recorded.
I currently have the unknown features set as -99999.
So, for example my dataset looks something like…
DarkLink
- 145
- 5
4
votes
2 answers
How to make sense of confusion matrix
Consider a binary classification problem with 0 labels denoting normal and 1 abnormal or rare. The number of instances with 0 classes are more in comparison to 1. In general,
1) Does 0 always refer to positive or a negative depending on what we…
Srishti M
- 469
- 4
- 9
4
votes
2 answers
MATLAB Perceptron
I cant seem to figure out why I have a high percentage error.
I'm trying to get a perceptron between X1 and X2 which are Gaussian distributed data sets with distinct means and identical co-variances.
Below is my code:
N=200;
C= [2 1; 1 2];…
ElevenEleven
- 41
- 2
4
votes
1 answer
Issue with backpropagation using a 2 layer network and softmax
I have a simple neural network with one hidden layer and softmax as the activation function for the output layer. The hidden layer uses various activation functions since I am testing and implementing as many of them as I can.
For training and…
ealiaj
- 205
- 2
- 6
4
votes
1 answer
Performance and architecture of neural network for increased dimensions
I posted this question on Cross Validated before I realized that this existed. I think it is better suited here and got no answers over there so I have deleted other post. I have reproduced the question below:
I have been playing around with the…
pragmatist1
- 143
- 3
4
votes
1 answer
Is there a problem of over fitting in my dataset?
I have applied the sequential forward selection to my dataset having 214 samples and 515 features (2 class problem). The feature selection algorithm has selected 8 features. Now I have applied the svm (MATLAB) on these 8 features. I have also tried…
girl101
- 1,161
- 2
- 11
- 25
4
votes
2 answers
How to find a changing relation between continuous variables?
I have a dataset with 8 continuous variables describing the behavior of a machine:
- input a,b,c for both left and right: a_left, b_left, c_left, a_right, b_right, c_right
- output o, non-linearly related to the inputs (and almost certainly also…
jochem_schelde
- 49
- 3
3
votes
1 answer
How to find the various matrix sizes in designing a CNN
I am trying to understand CNN especially the maths and working mechanism using Matlab as the coding language. I have few confusion regarding the concept and the associated programming and will be immensely grateful for an intuitive answer.
Below is…
Sm1
- 511
- 3
- 17