the software of GA

27 views
Skip to first unread message

Wenjie Wu

unread,
Oct 9, 2016, 3:55:56 AM10/9/16
to wagerl...@googlegroups.com

Dear Dr Wager,


I am writing to ask how to download the software Genetic Algorithm from your website. I tried to download the Windows version of the software but it failed to proceed because of unavailable CAPTCHA. Is there any way I can get the software? It would be greately appreciated if you can send me the relevant materials of instructions for using GA.  

Best wishes,
Wenjie 

Stephan Geuter

unread,
Oct 9, 2016, 6:19:49 PM10/9/16
to Wenjie Wu, wagerl...@googlegroups.com
Hi Wenjie,

you can download the GA algorithm from our github repository (https://github.com/canlab). It’s included in the CanlabCore repository under OptimizeDesign11. That folder also includes example scripts and documentation. Further information can be found in the attached original paper.
I hope that helps.
Best, 
Stephan
Wager_NeuroImage_03_GA.pdf
ATT00001.htm

Stephan Geuter

unread,
Oct 25, 2016, 10:10:50 AM10/25/16
to Wenjie Wu, WagerlabTools
Hi Wenjie,

Undefined function or variable 'use_spm_filter’.

this is a Matlab error indicating that the function ‘use_spm_filter.m’ is not in your Matlab Path. You need to add the whole CanlabCore Repository (from Github) to your Matlab Path in order for the GA to work.
If you’re getting started with Matlab, I highly recommend completing some Tutorials which you can find in abundance on the web or youtube. Some examples are



Another helpful resource is the book ‘Matlab for Neuroscientists’



Best, 
Stephan

On Oct 25, 2016, at 3:39 AM, Wenjie Wu <jie....@hotmail.com> wrote:

Hi Stephan,

I tried to run the example script 'ga_example_script.m', but the output reported some errors as following: 

Undefined function or variable 'use_spm_filter'.

Error in getSmoothing (line 41)
else [S,KL,KH] = use_spm_filter(TR,numsamps,'none','specify',HPlength); % HP only

Error in optimizeGA (line 154)
[S,Vi,svi] = getSmoothing(HPlength,GA.LPsmooth,TR,numsamps,xc);

Error in ga_example_script (line 225)
   M = optimizeGA(GA);
 
Can you tell me what such coding means and how to make the script work? I just began to learn Matlab and don't know much about the software and the coding. 


Thanks & best,
Wenjie

From: Wenjie Wu <jie....@hotmail.com>
Sent: Wednesday, October 12, 2016 10:37:05 AM
To: Stephan Geuter
Subject: Re: [WagerlabTools] the software of GA
 
Hi Stephan,

Many thanks for this information. I've successfully downloaded the documents and the software inlcuded in the CanlabCore repository. 

Best wishes,
Wenjie

From: Stephan Geuter <Stephan...@Colorado.EDU>
Sent: Monday, October 10, 2016 6:19:45 AM
To: Wenjie Wu
Cc: wagerl...@googlegroups.com
Subject: Re: [WagerlabTools] the software of GA
 
Reply all
Reply to author
Forward
0 new messages