All Questions
21 questions
1
vote
0
answers
132
views
How do you code Garson's algorithm in matlab to find the relative importance of parameters when training a neural network model?
I am working on a predictive analysis study and came across garson's algorithm but I am facing trouble in programming the formula for it. Here is my code:
%%% Data Inputs
inputs = data(:, 1:4)';
...
0
votes
0
answers
42
views
My gradient decent is converging but curve is not fitting properly
My Gradient Decent code is not working. I do not understand where i am doing wrong
close all;
clear all;
clc
xx=linspace(0,10,100);
y=xx.^3+rand(1,100)*10;
subplot(1,2,1);
plot(xx,y,'.');
hold on
x0=...
0
votes
2
answers
305
views
Gradient Descent for Linear Regression not finding optimal parameters
I am trying to implement the gradient descent algorithm to fit a straight line to noisy data following the following image taken from Andrew Ng's course.
First, I am declaring the noisy straight line ...
1
vote
1
answer
363
views
Gradient descent algorithm giving incorrect answer in matlab
I'm taking a course in machine learning and trying to implement the gradient descent algorithm in matlab. The function computeCost works fine, as I have tested it separately. I use it to see the cost ...
3
votes
1
answer
2k
views
Understanding a FastICA implementation
I'm trying to implement FastICA (independent component analysis) for blind signal separation of images, but first I thought I'd take a look at some examples from Github that produce good results. I'm ...
0
votes
1
answer
785
views
How to use QR-Decomposition to reduce the dimension of a dataset?
Let A be a matrix of dimension m×n, representing the original data set.
The QR decomposition, [Q, R] = qr (A) produces:
Upper triangular matrix R of the same dimension as A
Unitary matrix Q
so that ...
0
votes
0
answers
822
views
EM algorithm for gaussian mixture model in matlab
I am trying to implement EM algorithm for a clustering problem on a Gaussian mixture model.I generate a mixture of two gaussians and then try to learn the parameters of the two gaussians.I am ...
0
votes
0
answers
64
views
How to find the important locations of two matrices?
I have two matrices A and B, the size of which are both 50*1000 double. Matrices A and B are fMRI data matrices. The value in the two matrices are activation values. 50 represents the number of time ...
-2
votes
1
answer
889
views
How to find common characteristics of the three matrices?
I have three matrices A, B and C, the size of which are all 120*1000 double, where 120 represents the number of time points and 1000 represents the total number of features. For each matrix, there is ...
-2
votes
1
answer
240
views
Can someone explain this piece of code that recognises a digit from the Coursera Machine Learning course
This is a snippet from the predict function of exercise 4 of the Coursera machine learning course. What it does is it stores the predicted digit from a trained neural network in p. Can someone explain ...
0
votes
1
answer
242
views
Line Projected - Linear discriminant analysis
I have two question.
I have the attached code for linear discriminant analysis, that deals with two classes -each two features. It is the very basic one.
However,
I don't know why my projected line ...
2
votes
1
answer
2k
views
How to choose value of k in RELIEFF Algorithm in MATLAB
I'm using relieff algorithm to investigate the ranking of various inputs for solving a classification problem. I have five inputs and about 500 observations.
I'm using MATLAB to solve this.
I start ...
2
votes
1
answer
142
views
Linear Local Embedding Residual Variance Matlab
I am trying to reproduce linear local embedding in matlab. Now I am able to get the Y vectors for this. However, what I am unclear about is getting the residual variance. I was wondering if perhaps ...
5
votes
3
answers
664
views
What is wrong with my Gradient Descent algorithm
Hi I'm trying to implement Gradient Descent algorithm for a function:
My starting point for the algorithm is w = (u,v) = (2,2). The learning rate is eta = 0.01 and bound = 10^-14. Here is my MATLAB ...
1
vote
2
answers
791
views
KMBOX for Kernel Canonical Correlation Analysis
I am currently using KMBOX toolbox for kernel canonical correlation analysis in MATLAB.
The code here is part of km_kcca.m
I = eye(N); Z = zeros(N);
N0 = eye(N)-1/N*ones(N);
% get kernel matrices
...