本文整理汇总了Python中noisefigs.env.NoiseEnvironment类的典型用法代码示例。如果您正苦于以下问题:Python NoiseEnvironment类的具体用法?Python NoiseEnvironment怎么用?Python NoiseEnvironment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NoiseEnvironment类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: NoiseEnvironment
import matplotlib.ticker as ti
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--grids')
parser.add_flag('--examplesFlag')
parser.add_flag('--examples_colorbar')
parser.add_flag('--diff_sweep')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.grids or args.all:
env.register_plotter(noisefigs.plotters.GridSweepsPlotter)
env.register_plotter(noisefigs.plotters.GridSweepsPlotter,
config={
'GridSweepsPlotter': {
'population_type': 'I',
'plot_contours': [1, 1, 1],
'vmin': -0.33,
'vmax': 0.75,
'cbar_kw': {
'ticks': ti.MultipleLocator(0.2),
},
}
})
示例2: NoiseEnvironment
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--bumpExamples')
parser.add_flag('--scatter_grids_fracTotal')
parser.add_flag('--fracTotalSweepAnn')
parser.add_flag('--isBump')
parser.add_argument('--expScatter', action="store_true")
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.fracTotalSweepAnn or args.all:
env.register_plotter(noisefigs.plotters.MainBumpFormationPlotter)
env.register_plotter(
noisefigs.plotters.MainBumpFormationPlotter,
config={
'MainBumpFormationPlotter': {
'fname_prefix': 'paper_',
'sigmaTitle': False,
'cbar_kw': dict(
labelpad = 8,
location = 'right',
fraction = .25,
pad = -.05,
),
示例3: deepcopy
new_config = deepcopy(config_pastoll.get_config())
new_config.update({
'bump_data_root': None,
'grids_data_root': os.path.join('simulation_data',
'i_surround',
'pastoll_et_al',
'grids_pc_weight_3'),
'vel_data_root': None,
'const_pos_data_root': None,
'singleDataRoot': None,
'noise_sigmas': [150],
'even_shape': None,
'output_dir': 'panels',
})
env = NoiseEnvironment(user_config=new_config)
env.register_class(noisefigs.plotters.GridSweepsPlotter,
config={
'GridSweepsPlotter': {
'fname_prefix': "pastoll_pc_weight_3_",
'vmin': -0.4286,
'vmax': 0.8582,
'ann': None,
},
})
env.plot()
if args.grids_pastoll_pc_weight or args.all:
new_config = deepcopy(config.get_config())
示例4: NoiseEnvironment
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--scatter_plot')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.scatter_plot or args.all:
env.register_plotter(noisefigs.plotters.GridsLineErrScatterPlotter)
env.plot()
示例5: deepcopy
if args.bumps_g_II or args.all:
new_config = deepcopy(config.get_config())
new_config.update({
'grids_data_root': None,
'bump_data_root': os.path.join('simulation_data',
'ii_connections',
'g_II_total_sweep',
'gamma_bump'),
'vel_data_root': None,
'const_pos_data_root': None,
'singleDataRoot': None,
'noise_sigmas': [150],
'even_shape': None,
})
env = NoiseEnvironment(user_config=new_config, space_cls=JobTrialSpace1D)
env.register_class(
noisefigs.plotters.Generic1DPBumpPlotter,
config={
'Generic1DPBumpPlotter' : {
'fname' : 'bumps_Pbumps_g_II_{ns}.pdf',
'normalize_ticks': False,
'xlim': (-10, 410),
'ylim': (-0.05, 1.05),
},
}
)
env.plot()
示例6: deepcopy
args = parser.parse_args()
if args.gamma_gEE_EE_sigma or args.all:
new_config = deepcopy(config.get_config())
new_config.update({
'grids_data_root': None,
'bump_data_root': ('simulation_data/ee_connections_ei_flat/g_EE_total_vs_pEE_sigma/'
'gamma_bump'),
'vel_data_root': None,
'const_pos_data_root': None,
'singleDataRoot': None,
'noise_sigmas': [150],
'even_shape': None,
})
env = NoiseEnvironment(user_config=new_config)
env.register_class(
noisefigs.plotters.GenericGammaPlotter,
config={
'GenericGammaPlotter': {
'what': 'acVal',
'fname': "gamma_power_gEE_pEE_sigma_{ns}.pdf",
'normalize_ticks': (True, False), # (Y, X)
'normalize_type': ('E', None),
'xlabel': '$\sigma_{E{\\rightarrow}E}$',
'ylabel': '$g_{E{\\rightarrow}E}$',
'bbox': (.2, .17, .85, .9),
'vmin': .0,
'vmax': .505,
'cbar_kw': dict(
ticks = ti.MultipleLocator(0.1),
示例7: NoiseEnvironment
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
singleDataRoot = "simulation_data/submission/single_neuron"
parser = flagparse.FlagParser()
parser.add_flag("--velSweep")
parser.add_flag("--velFitStdSweep")
args = parser.parse_args()
# ps = ds.getDefaultParamSpaces()
env = NoiseEnvironment()
if args.velSweep or args.all:
env.register_plotter(noisefigs.plotters.VelFitErrSweepPlotter)
if args.velFitStdSweep or args.all:
env.register_plotter(noisefigs.plotters.VelFitStdSweepPlotter)
env.plot()
示例8: NoiseEnvironment
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--scatterPlot')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.scatterPlot or args.all:
env.register_plotter(noisefigs.plotters.ScatterGammaGridsSeparatePlotter)
env.register_plotter(noisefigs.plotters.ScatterGammaFGridsSeparatePlotter)
env.plot()
示例9: NoiseEnvironment
import matplotlib.ticker as ti
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config_trials as config
parser = flagparse.FlagParser()
#parser.add_flag('--grids')
parser.add_flag('--scatter')
parser.add_flag('--hist')
parser.add_flag('--examples')
parser.add_flag('--examples_cbar')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
#if args.grids or args.all:
# env.register_plotter(noisefigs.plotters.IPCGridSweepsPlotter)
# env.register_plotter(noisefigs.plotters.IPCGridSweepsPlotter,
# config={
# 'IPCGridSweepsPlotter': {
# 'population_type': 'I',
# }
# })
if args.scatter or args.all:
env.register_plotter(noisefigs.plotters.IPCScatterPlotter)
if args.hist or args.all:
env.register_plotter(noisefigs.plotters.IPCHistogramsPlotter)
示例10: NoiseEnvironment
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--bumpExamples')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.bumpExamples or args.all:
env.register_plotter(noisefigs.plotters.IsBumpExamplePlotter)
env.plot()
示例11: NoiseEnvironment
import matplotlib
import matplotlib.ticker as ti
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config_ratio_corrected as config
parser = flagparse.FlagParser()
parser.add_flag('--gamma_sweep')
parser.add_flag('--examples')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.gamma_sweep or args.all:
env.register_class(
noisefigs.plotters.GenericGammaPlotter,
config={
'GenericGammaPlotter': {
'scale_factor': .7,
'what': 'acVal',
'fname': "gamma_sweeps{ns}.pdf",
'normalize_ticks': (True, True), # (Y, X)
'normalize_type': ('E', 'I'),
'xlabel': '',
'xticks': [False, False, False],
'ylabel': None,
'yticks': [True, False, False],
示例12: NoiseEnvironment
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
singleDataRoot = 'simulation_data/single_neuron'
parser = flagparse.FlagParser()
parser.add_flag('--scatter_plot')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.scatter_plot or args.all:
env.register_plotter(noisefigs.plotters.GridBumpScatterPlotter)
env.plot()
示例13: NoiseEnvironment
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--rasters')
parser.add_flag('--rates')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.rasters or args.all:
env.register_plotter(noisefigs.plotters.EIRasterPlotter)
if args.rates or args.all:
env.register_plotter(noisefigs.plotters.EIRatePlotter)
env.plot()
示例14: NoiseEnvironment
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--gammaSweep')
parser.add_flag('--threshold')
parser.add_flag('--freqHist')
parser.add_flag('--detailed_noise')
parser.add_flag('--examples')
parser.add_flag('--scatter_all')
parser.add_flag('--gamma_grids_prob')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.gammaSweep or args.all:
env.register_plotter(noisefigs.plotters.GammaSweepsPlotter)
if args.detailed_noise or args.all:
env.register_plotter(noisefigs.plotters.GammaDetailedNoisePlotter)
if args.examples or args.all:
env.register_plotter(noisefigs.plotters.GammaExamplePlotter)
if args.scatter_all or args.all:
env.register_plotter(noisefigs.plotters.GammaScatterAllPlotter)
env.register_plotter(noisefigs.plotters.GammaFreqGridsScatterAllPlotter)
if args.gamma_grids_prob or args.all:
示例15: NoiseEnvironment
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--isBump')
parser.add_flag('--fracTotalHist')
parser.add_flag('--fracTotalSweepAnn')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.fracTotalSweepAnn or args.all:
env.register_plotter(noisefigs.plotters.FracTotalSweepAnnPlotter)
if args.isBump or args.all:
env.register_plotter(noisefigs.plotters.IsBumpPlotter)
if args.fracTotalHist or args.all:
env.register_plotter(noisefigs.plotters.FracTotalHistPlotter)
env.plot()