All Questions
Tagged with machine-learning matlab
7 questions
1
vote
1
answer
219
views
Calculation of the Distance Matrix in the K-Means Algorithm in MATLAB
Purpose of the code :
To assign the corresponding label of the centroids to the points which are close to it. Below is a graphical (2D) example.
Variable X is a matrix, rows represent the points, ...
2
votes
0
answers
47
views
Implementation of calculation of gamma for RBF SVM
I have implemented the calculation of gamma value for RBF SVM as described in Liu et al (2012) [https://ieeexplore.ieee.org/abstract/document/6246300]. Here's a snapshot of the example from the paper:
...
6
votes
1
answer
265
views
Simple SVM in MATLAB
I'm studying SVMs and wrote a demo in MATLAB (because I couldn't get a quadratic programming package to work correctly in Python). Right now it's simple and can only do linearly-separable cases (...
3
votes
0
answers
108
views
Classifying test data into several classes
The following code is to classify the test data into several classes:
...
1
vote
1
answer
2k
views
Pattern recognition and machine learning - Bernoulli mixture model
I have been reading the book Pattern Recognition and Machine Learning (Bishop) for a while, and recently I came across this figure, which was created using Bernoulli mixture model on the MNIST dataset:...
5
votes
1
answer
180
views
Implementation of Logistic Regression
Is this kind of vectorized operations the most efficient way to do this in matlab? Any critics about my code? Am I doing something wrong (i tested several times, I think it works). Notice that I use J ...
0
votes
1
answer
2k
views
Stochastic gradient descent squared loss
I have implemented stochastic gradient descent in matlab and I would like to compare my results with another source but the error I am getting is higher (I am using squared error). I am worried I am ...