FastICA

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

FastICA

chris_sim87
Anyone have experience using FastICA ?

Attached is the link http://www.cis.hut.fi/projects/ica/fastica/code/dlcode.html



Reply | Threaded
Open this post in threaded view
|

Re: FastICA

Robin Hewitt
I've used it. Works well.

- Robin



________________________________
From: chris_sim87 <[hidden email]>
To: [hidden email]
Sent: Tue, October 5, 2010 11:12:47 PM
Subject: [OpenCV] FastICA

 
Anyone have experience using FastICA ?

Attached is the link http://www.cis.hut.fi/projects/ica/fastica/code/dlcode.html


 


     
Reply | Threaded
Open this post in threaded view
|

Re: FastICA

chris_sim87

Hi Robin,

Mind to share more? I'm a bit stuck here:(

Chris
--- In [hidden email], Robin Hewitt <get_imaginary@...> wrote:

>
> I've used it. Works well.
>
> - Robin
>
>
>
> ________________________________
> From: chris_sim87 <chris_sim87@...>
> To: [hidden email]
> Sent: Tue, October 5, 2010 11:12:47 PM
> Subject: [OpenCV] FastICA
>
>  
> Anyone have experience using FastICA ?
>
> Attached is the link http://www.cis.hut.fi/projects/ica/fastica/code/dlcode.html
>


Reply | Threaded
Open this post in threaded view
|

Re: FastICA

Robin Hewitt
Share what? I used their example code and simply inserted my own data....

- Robin





________________________________
From: chris_sim87 <[hidden email]>
To: [hidden email]
Sent: Wed, October 6, 2010 5:17:15 PM
Subject: [OpenCV] Re: FastICA

 

Hi Robin,

Mind to share more? I'm a bit stuck here:(

Chris
--- In [hidden email], Robin Hewitt <get_imaginary@...> wrote:

>
> I've used it. Works well.
>
> - Robin
>
>
>
> ________________________________
> From: chris_sim87 <chris_sim87@...>
> To: [hidden email]
> Sent: Tue, October 5, 2010 11:12:47 PM
> Subject: [OpenCV] FastICA
>
>
> Anyone have experience using FastICA ?
>
> Attached is the link
>http://www.cis.hut.fi/projects/ica/fastica/code/dlcode.html
>


 

Reply | Threaded
Open this post in threaded view
|

Re: FastICA

Robin Hewitt
Found the code I used. Here it is:

clear all;
addpath '../FastICA_25'

STD_SIZE = [64,45];
nDim = 30;

[trainSet, trainLabels] = loadTrain(STD_SIZE);
[testSet,  testLabels]  = loadTest(STD_SIZE);

trainSet    = trainSet(:,1:4:59);
trainLabels = trainLabels(1:4:59);

% Do ICA on the training set
[icasig, A, W] = FASTICA(trainSet, 'numOfIC', nDim);

% Project the training and test sets
projectedTrainData = W * trainSet;
projectedTestData  = W * testSet;

nCorrect = 0;
for i=1:size(testSet,2)
projectedTestImg = projectedTestData(:,i);

% Classify test image
predictedLabel(i) = findNearestNeighbor...
(projectedTestImg, projectedTrainData, trainLabels);

if predictedLabel(i) == testLabels(i)
nCorrect = 1 + nCorrect;
end
end

fprintf(1, 'nTested = %d, nCorrect = %d\n', ...
size(testSet,2), nCorrect);




________________________________
From: Robin Hewitt <[hidden email]>
To: [hidden email]
Sent: Thu, October 7, 2010 5:13:32 AM
Subject: Re: [OpenCV] Re: FastICA

 
Share what? I used their example code and simply inserted my own data....

- Robin





________________________________
From: chris_sim87 <[hidden email]>
To: [hidden email]
Sent: Wed, October 6, 2010 5:17:15 PM
Subject: [OpenCV] Re: FastICA

 

Hi Robin,

Mind to share more? I'm a bit stuck here:(

Chris
--- In [hidden email], Robin Hewitt <get_imaginary@...> wrote:

>
> I've used it. Works well.
>
> - Robin
>
>
>
> ________________________________
> From: chris_sim87 <chris_sim87@...>
> To: [hidden email]
> Sent: Tue, October 5, 2010 11:12:47 PM
> Subject: [OpenCV] FastICA
>
>
> Anyone have experience using FastICA ?
>
> Attached is the link
>http://www.cis.hut.fi/projects/ica/fastica/code/dlcode.html
>