本文整理汇总了Python中pyhrf.jde.asl.simulate_asl函数的典型用法代码示例。如果您正苦于以下问题:Python simulate_asl函数的具体用法?Python simulate_asl怎么用?Python simulate_asl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了simulate_asl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: test_prf
def test_prf(self):
""" Validate estimation of PRF """
pyhrf.verbose.set_verbosity(2)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['prf'], fdata, nb_its=100,
check_fv='raise')
开发者ID:thomas-vincent,项目名称:pyhrf,代码行数:8,代码来源:valid_jde_asl.py
示例2: test_noise_var
def test_noise_var(self):
""" Validate estimation of noise variances at high SNR"""
pyhrf.verbose.set_verbosity(2)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['noise_var'], fdata, nb_its=100,
check_fv='raise')
开发者ID:thomas-vincent,项目名称:pyhrf,代码行数:8,代码来源:valid_jde_asl.py
示例3: setUp
def setUp(self):
np.random.seed(8652761)
tmpDir = tempfile.mkdtemp(prefix='pyhrf_tests',
dir=pyhrf.cfg['global']['tmp_path'])
self.tmp_dir = tmpDir
simu = simulate_asl(self.tmp_dir, spatial_size='random_small')
self.data_simu = FmriData.from_simulation_dict(simu)
开发者ID:ainafp,项目名称:pyhrf,代码行数:8,代码来源:test_jde_vem_asl.py
示例4: test_brls
def test_brls(self):
""" Validate estimation of BRLs at high SNR"""
pyhrf.verbose.set_verbosity(2)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['bold_response_levels'], fdata, nb_its=100,
check_fv='raise')
开发者ID:thomas-vincent,项目名称:pyhrf,代码行数:8,代码来源:valid_jde_asl.py
示例5: test_brf_physio_reg
def test_brf_physio_reg(self):
""" Validate estimation of BRF at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['brf'], fdata, nb_its=100,
check_fv='raise')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py
示例6: test_brf_physio_reg
def test_brf_physio_reg(self):
""" Validate estimation of BRF at high SNR"""
pyhrf.verbose.set_verbosity(2)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['brf'], fdata, nb_its=100,
check_fv='raise')
print 'pyhrf_view_qt3 %s/*brf*nii' %self.tmp_dir
开发者ID:pmesejo,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py
示例7: test_perf_baseline
def test_perf_baseline(self):
""" Validate estimation of drift at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['perf_baseline'], fdata, nb_its=100,
check_fv='raise')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py
示例8: test_perf_baseline
def test_perf_baseline(self):
""" Validate estimation of drift at high SNR"""
pyhrf.verbose.set_verbosity(2)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['perf_baseline'], fdata, nb_its=100,
check_fv='raise')
print 'pyhrf_view_qt3 %s/*perf*nii' %self.tmp_dir
开发者ID:pmesejo,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py
示例9: test_prf
def test_prf(self):
""" Validate estimation of PRF """
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_parameters(['prf'], fdata, simu, nItMax=20,
estimateG=True)
开发者ID:ainafp,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_vem_asl.py
示例10: test_prls
def test_prls(self):
""" Validate estimation of PRLs at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_parameters(['perf_response_levels'], fdata, simu,
nItMax=100, estimateC=True)
开发者ID:ainafp,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_vem_asl.py
示例11: test_prf_var
def test_prf_var(self):
""" Validate estimation of PRF """
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['prf_var'], fdata, nb_its=20,
check_fv='raise')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:9,代码来源:valid_jde_asl_physio.py
示例12: test_brf_physio_nonreg
def test_brf_physio_nonreg(self):
""" Validate estimation of BRF at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['brf'], fdata, nb_its=100,
check_fv='raise',
rf_prior_type='physio_stochastic_not_regularized')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:10,代码来源:valid_jde_asl_physio.py
示例13: test_sigmaG
def test_sigmaG(self):
""" Validate estimation of drift at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_parameters(['sigma_G'], fdata, simu,
nItMax=100, estimateSigmaG=True)
print 'pyhrf_view %s/*mixt_params*perf*nii' % self.tmp_dir
开发者ID:ainafp,项目名称:pyhrf,代码行数:10,代码来源:valid_jde_vem_asl.py
示例14: test_noise_var
def test_noise_var(self):
""" Validate estimation of noise variances at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_parameters(['noise_var'], fdata, simu, nItMax=100,
estimateNoise=True)
print 'pyhrf_view %s/*noise*nii' % self.tmp_dir
开发者ID:ainafp,项目名称:pyhrf,代码行数:10,代码来源:valid_jde_vem_asl.py
示例15: test_prf_physio_det
def test_prf_physio_det(self):
""" Validate estimation of BRF at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
print simu['prf'].shape
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['prf'], fdata, nb_its=100,
check_fv='raise',
rf_prior_type='physio_deterministic')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:11,代码来源:valid_jde_asl_physio.py
示例16: test_prf_physio_nonreg
def test_prf_physio_nonreg(self):
""" Validate estimation of BRF at high SNR"""
pyhrf.verbose.set_verbosity(2)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
print simu['prf'].shape
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['prf'], fdata, nb_its=100,
check_fv='raise',
rf_prior_type='physio_stochastic_not_regularized')
print 'pyhrf_view_qt3 %s/*prf*nii' %self.tmp_dir
开发者ID:pmesejo,项目名称:pyhrf,代码行数:11,代码来源:valid_jde_asl_physio.py
示例17: test_all
def test_all(self):
""" Validate estimation of full ASL model at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
fdata = FmriData.from_simulation_dict(simu)
np.random.seed(25430)
v = ['bold_response_levels', 'perf_response_levels', 'drift', 'drift_var',
'brf', 'brf_var', 'prf', 'labels', 'bold_mixt_params',
'perf_mixt_params', 'perf_baseline', 'perf_baseline_var']
self._test_specific_samplers(v, fdata, nb_its=500, check_fv='print')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:13,代码来源:valid_jde_asl_physio.py
示例18: test_perfusion
def test_perfusion(self):
""" Validate estimation of perfusion component at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
fdata = FmriData.from_simulation_dict(simu)
np.random.seed(25430)
v = ['perf_response_levels', 'prf']
mem.cache(self._test_specific_parameters)(v, fdata, simu,
nItMax=100,
estimateG=True,
estimateC=True,
estimateSigmaG=True)
print 'pyhrf_view %s/*nii' % self.tmp_dir
开发者ID:ainafp,项目名称:pyhrf,代码行数:16,代码来源:valid_jde_vem_asl.py
示例19: test_perf_baseline_var
def test_perf_baseline_var(self):
""" Validate estimation of drift at high SNR"""
# pyhrf.verbose.set_verbosity(2)
pyhrf.logger.setLevel(logging.INFO)
from pyhrf.jde.asl import simulate_asl
simu = simulate_asl(self.tmp_dir, spatial_size='normal')
perf_baseline = simu['perf_baseline']
perf_baseline_mean = simu['perf_baseline_mean']
print 'perf_baseline_mean = ', perf_baseline_mean
print 'perf_baseline_mean emp = ', np.mean(perf_baseline)
perf_baseline_var = simu['perf_baseline_var']
print 'perf_baseline_var = ', perf_baseline_var
print 'perf_baseline_var emp = ', np.var(perf_baseline)
fdata = FmriData.from_simulation_dict(simu)
self._test_specific_samplers(['perf_baseline_var'], fdata, nb_its=15,
check_fv='raise')
开发者ID:pyhrf,项目名称:pyhrf,代码行数:16,代码来源:valid_jde_asl_physio.py
示例20: test_default_jde_small_simulation
def test_default_jde_small_simulation(self):
""" Test ASL sampler on small simulation with small nb of iterations.
Estimation accuracy is not tested.
"""
simu = simulate_asl(spatial_size='random_small')
fdata = FmriData.from_simulation_dict(simu)
sampler = jde_asl.ASLSampler()
analyser = JDEMCMCAnalyser(sampler=sampler, osfMax=4, dtMin=.4,
dt=.5, driftParam=4, driftType='polynomial',
outputPrefix='jde_mcmc_', randomSeed=None)
treatment = FMRITreatment(fmri_data=fdata, analyser=analyser,
output_dir=None)
treatment.run()
开发者ID:pyhrf,项目名称:pyhrf,代码行数:18,代码来源:jdetest.py
注:本文中的pyhrf.jde.asl.simulate_asl函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论