<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>We are trying to get the GLM mapper to extract regressor betas for use in hyperalignment, but we're running into some problems and want to check if our way of constructing the mapper seems appropriate.</p>
<p><br>
</p>
<p>As you can see, we're using the GLMMapper with arguments ds and regs, as shown below:<br>
</p>
<p>--------------------------------------------------<br>
</p>
<p><br>
</p>
<p>ds = fmri_dataset(datafile, targets=myattributes.targets, chunks=myattributes.chunks, mask=roi)</p>
<p><br>
</p>
<p>pe = mvpa2.mappers.glm.GLMMapper(ds, regs)<br>
</p>
<p><br>
</p>
<p>print ds --> <Dataset: 1001x190059@int16, <sa: chunks,targets,time_coords,time_indices>, <fa: voxel_indices>, <a: imgaffine,imghdr,imgtype,mapper,voxel_dim,voxel_eldim>><br>
</p>
<p><br>
</p>
<p>print regs --> ['learn101', 'learn102', 'learn103', 'learn104', 'learn105', 'learn106', 'learn107', 'learn108', 'learn109', 'learn110', 'learn111', 'learn112', 'learn113', 'learn114', 'learn115', 'learn116', 'learn117', 'learn118', 'learn119', 'learn120',
 'learn121', 'learn122', 'learn123', 'learn124', 'learn125', 'learn126', 'learn127', 'learn128', 'learn129', 'learn130', 'learn131', 'learn132', 'learn133', 'learn134', 'learn135', 'odd_even', 'fix']</p>
<br>
<p>print pe --> <GLMMapper><br>
</p>
<p>--------------------------------------------------------------</p>
<p><br>
</p>
So, our question is this: Is there a problem in the way we use the GLMMapper function? As you see, when we print ds we get a description of the dataset, but when we print pe we just get '<GLMMapper>'.
<p><br>
</p>
<p><br>
</p>
Martin Sjøgård<br>
<p></p>
</div>
</body>
</html>