本文整理汇总了Python中pyhrf.jde.asl.simulate_asl函数的典型用法代码示例。如果您正苦于以下问题:Python simulate_asl函数的具体用法?Python simulate_asl怎么用?Python simulate_asl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了simulate_asl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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')
示例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')
示例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)
示例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')
示例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')
示例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
示例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')
示例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
示例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)
示例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)
示例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')
示例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')
示例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
示例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
示例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')