Questions tagged [matlab]
The matlab tag has no usage guidance.
1
vote
0answers
7 views
How to create a timeline graph ( Date / time series) in MATLAB?
The data file is attached https://ufile.io/ttwi8.How may I create a timeline graph where my y-axis is the number of cases(Demand and prediction as sjown in attached graph) and my x axis is increasing ...
2
votes
0answers
10 views
How to implement Moving window with LSTM for Time Series Prediction?
I am trying to implement a moving window in my dataset. The window size=14 (for instance).After implemntinf sliding window how to prepare inputs and outputs for netwok?
...
1
vote
1answer
25 views
How do I use LSTM Networks for time-series classification problems?
I have 2 binary outputs (1 and 0) with time series data. The dataset order is shown in the image..Can anyone suggest me how to handle this problem with LSTM? Particularly in MATLAB or Python. Thanks ...
1
vote
0answers
12 views
convert 16-Bit to 8-Bit images
I am using matlab, and I need to convert 16-bit images to 8-bit images (tif extention) ,
and I used
image = im2uint8(16bit_img);
image = uint8(16bit_img/256);
...
0
votes
0answers
9 views
Open image saved using python in matlab
I want to save the image created by matplotlib in python in .fig format to open it for editing in matlab. But it seems that savefig(.) in matplotlib does not support .fig for saving. How can I save ...
1
vote
0answers
25 views
Training a convolutional neural network for image denoising in Matlab
first time posting in this stack exchange.
I am currently trying to train CNNs to remove Poisson noise from images. The software I am using is Matlab 2018b, however the results I am getting are poor. ...
1
vote
2answers
48 views
Accuracy differs between MATLAB and scikit-learn for a decision tree
Is there any possibility to vary the accuracy of same data set in matlab and jupyter notebook by using python code ?
For same data set, at first I applied it in matlab and get 96% accuracy for ...
0
votes
1answer
24 views
Fuzzy rule based system: Should rules contain all inputs and outputs?
I am trying to design an FRBS using Matlab fuzzy tool box. The fuzzy system will be used to predict player's type based on the inputs and a set of rules defined by experts.
I have 6 inputs and 4 ...
1
vote
2answers
36 views
Poor performance for unbalanced dataset
Consider a dataset A which has examples for training in a binary classification problem. I have used SVM and applied the weighted method (in MATLAB) since the ...
0
votes
0answers
19 views
Newton's method gradient and hessian formulation difficulties
Logistic regression Newton's Method Newton Method Lecture II
In this picture the logistic regression cost function , Newtons Method and gradient and Hessian is defined. How to get this function that ...
0
votes
1answer
74 views
How can I increase the number of iterations per epoch in MATLAB?
I am training a deep learning network using MATLAB and would like to increase the number of iterations per epoch.
Using trainingOptions
...
1
vote
0answers
40 views
Using machine learning algorithm to approximate a matrix? [closed]
I don't know if this is a good question. I would like to use machine learning to approximate a matrix. For example, a very simple one as
\begin{align}
A=\begin{pmatrix}
1 &0 \\
0& 2
\end{...
1
vote
1answer
26 views
How can I create a pixel labelled image for Semantic Segmentation?
I am following the Semantic Segmentation Examples tutorial by MathWorks.
I understand that I can load pixel labeled images
...
0
votes
1answer
39 views
Graphically Speaking - how weight vector is perpendicular to hyperplane
why-is-weight-vector-orthogonal-to-decision-plane-in-neural-networks
vector-orthogonal-to-hyperplane
I wanted to visualize this by drawing a 3d plane where and the weight vector. By definition of ...
0
votes
1answer
26 views
Higher dimension data visualization in Matlab/Octave
I am working on sparse recovery for a classification task. I use Pine hyperspectral dataset which is a freely available dataset and this image contains 200 Dimension (Depth/channels/bands). In ...
1
vote
2answers
50 views
why nobody uses matlab [closed]
I wonder why most people now don't use matlab. I guess the reason is matlab is not free, so companies don't want to use it, then interviewees don't use it, then schools don't encourage it, then nobody ...
0
votes
1answer
24 views
Why the results from Matlab curve fitting function differ when using custom equation?
I'm using Matlab's curve fitting app, When I select Power fitting it returns values which perfectly describe the data but when I use the custom equation and enter ax^b as the equation it returns very ...
0
votes
0answers
91 views
How does `cvpartition` in Matlab work?
I have split my entire dataset X and the label set Y into Xtrain_val and ...
1
vote
1answer
33 views
Problem with calculating error rate for KNN
I am trying to validate the accuracy of my KNN algorithm for the movie rating prediction.
I have $2$ vectors: $Y$ - with the real ratings, $Y'$ - with predicted ones.
When I calculate Standard ...
1
vote
0answers
32 views
How can I combine images for Matlab deep learning?
I have a data set which consist a number of instances (of two-three different classes), and for each instance I have a handful of monochrome images. This handful of images have different resolutions (...
2
votes
0answers
196 views
Matlab: setting static iterations per epoch in a CNN
I'm building a convolutional neural network using Matlab's neural network toolbox. I have code designed to cross-train the network with different data sets, using the previous network's layers in ...
0
votes
0answers
92 views
Logistic Regression sklearn vs matlab Different Answers
Years ago I built a model in Matlab that used glmfit(X, Y, 'binomial, 'link', 'logit') and I am now trying to transfer the model to python using sklearn (i.e sklear.linear_model.LogisticRegression).
...
1
vote
1answer
187 views
Poor performance of SVM after training for rare events
I found out that Weighted SVM is a classification approach to handle class imbalance problem. My data set is highly imbalanced with rare event (minority class, labeled as 1) and the majority class (...
0
votes
1answer
58 views
Confusion regarding classification accuracy calculation and result
The total number of data points for which the following result is obtained = 1500. Out of which, I have
1473 labelled as 0 and
the remaining 27 as ...
4
votes
3answers
282 views
Which Format is Faster, Matlab (.mat) or NumPy (.npy)?
I am working on a deep learning problem to detect cancer in images of size 250 x 250. I have hardware limitations and I have been running out of memory.
I decided to convert my images to Matlab ...
1
vote
2answers
190 views
Terminology - cross-validation, testing and validation set for classification task
Confusion1) If k=10 then does this mean that 90% is for training and 10% for testing? So always we have k% for testing?
...
0
votes
2answers
104 views
Is ensemble learning using different classifier combination another name for Boosting?
For implementation I am following the Matlab code for AdaBoost. Based on my understanding, AdaBoost uses weak classifiers known as base classifiers and creates several instances of it. For example, a ...
0
votes
0answers
16 views
correspondence analyses in matlab to show presence/absence data in different locations
In MATLAB, I want to plot a PCA-type plot (I think) to show presence/absence of species in different locations so that points ...
4
votes
2answers
194 views
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 <...
3
votes
2answers
341 views
Why training and validation similar loss curves lead to poor performance
I am training a binary classification neural network model using matlab the graph that I got using 20 neurons in hidden layer is given below.
the confusion matrix and graph between cross entropy vs ...
0
votes
2answers
119 views
How to quantify the performance of the classifier (multi-class SVM) using the test data?
I am working on a traffic sign recognition code in MATLAB using Belgian Traffic Sign Dataset. The dataset consists of training data and test data.
I resized the given images and extracted HOG ...
2
votes
1answer
49 views
i need a characters /letters dataset for matlab
My final project is number plate recognition.i need a data set of A-Z characters and 0-9 letters. i donot find it on any website give me a data set or send me a link. i have to make a neural network ...
1
vote
1answer
198 views
What is difference between detrend and normalization? [closed]
matlab function detrend subtracts the mean from data. If data contains several data columns, detrend treats each data column separately.
One of the normalization technique is subtracting the mean ...
-1
votes
0answers
63 views
How to visualize SVM classifier output?
After applying SVM non-linear polynomial kernel, how to visualize the output of the classification performance in MATLAB? If anyone knows, please help.
-1
votes
0answers
63 views
Searching for machine learning algorithm for probability prediction - Matlab
I have a problem, and I'm not sure if there's a suitable algorithm.
Let's say I Have a matrix A mX3. The first two columns are coordinates, and the third is the density of flowers in the area in some ...
0
votes
1answer
218 views
Linear Regression of Sine wave using Gradient descent Not working [closed]
I am writing an algorithm to fit a sine wave. I want to have 4 parameters ( amplitude, frequency, phase & centre position). When I tried to program with all 4 parameters I wasn't able to find a ...
1
vote
0answers
181 views
How to identify ARIMA model parameters
I am trying to build ARIMA model, I have 144 terms in my standardized time series, which represent residuals form original time series. This residuals, on which I would like to build ARIMA model, are ...
1
vote
1answer
134 views
Classifying hand written digits dataset using Probabilistic neural network (PNN)?
I am trying to apply Probabilistic Neural Network (PNN) on MNIST dataset using MATLAB on 28000 samples. I tried to build the model but it gave an error saying matrix dimension exceeds memory showing ...
1
vote
0answers
30 views
How to create a neural network with many different values in Matlab? [closed]
I want to create a neural network in Matlab.
I have 16 import matrices in each iteration, my import data changes in every iteration and there are more than 100000 iterations. The target is a matrix ...
-1
votes
1answer
167 views
accumarray function not working in matlab
I have an 2D array like the one shown below.
35046, 0.17
1963, 0.34
1135, 0.51
405, 0.68
99, 0.85
1, 0.85
15, 1.02
2, 1.02
...
2
votes
1answer
239 views
Can we implement random forest using fitctree in matlab?
There is a function call TreeBagger that can implement random forest. However, if we use this function, we have no control on each individual tree. Can we use the MATLAB function fitctree, which build ...
-1
votes
0answers
98 views
PCA or FDA on large data set
I want to reduce the dimensionality of my data but I'm having trouble calculating the covariance matrix needed for both principal component analysis and Fisher discriminant analysis. The dimensions of ...
2
votes
2answers
533 views
How to rank a feature importance?
If I trained a network using Neural Network classifier, how can I know which feature was most important for predicting the target variable? I mean how to create a "feature ranking" among the features (...
-2
votes
1answer
1k views
Python ,R or matlab for programming very large data set? [closed]
I have a very large panel data set (around 50m observations, size around 3G). Now I want to implement an algorithm on it. The algorithm is basically loops over observations. Ideally I want to use ...
0
votes
1answer
243 views
Why Matlab neural network classification returns decimal values on prediction dataset?
I have an input dataset (matrix 25x2275) which is normalized to values between 0 and 1. I also have a binary formatted output matrix (3x2275) like 0 0 0 0 0 0 0 0 1, 1 0 0 1 1 1 0 0 1 ...
I imported ...
0
votes
1answer
2k views
How to calculate Precision and Recall using confusion matrix in Matlab?
I am working on 3 class problem.How to calculate precision,recall ,f-score,MCC of each class while using MATLAB. Here is my confusion matrix:
...
0
votes
2answers
112 views
How do I compare traditional classifiers performance with my proposed method?
I want to compare my proposed method with traditional machine learning classifiers like Multilayer Perceptron(MLP) and SVM to check the classification accuracy.How do I compare different classifiers?. ...
1
vote
0answers
247 views
Why is my classification tree is showing only one node, and how to resolve this issue?
I also asked here: https://stats.stackexchange.com/questions/287587/reason-of-getting-only-one-node-while-implementing-classification-tree-in-matlab
Hello, I have $N=1520=19*80$ samples, each of ...
2
votes
1answer
175 views
Does CART algorithm takes into account in the order of the set of attributes?
when using matlab command 'fitctree' for classification purpose, and I change the order of the attributes I do not find the same Tree and thus the same classificaiton error? why? CART algorithm does ...
-1
votes
1answer
89 views
How to train Matlab on a range of IP addresses?
I'd like to train a Decision Tree using the Classification Learner App. I have a range of IP addresses, and a country that the IP address range belongs to.
...