• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python env.NoiseEnvironment类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中noisefigs.env.NoiseEnvironment的典型用法代码示例。如果您正苦于以下问题:Python NoiseEnvironment类的具体用法?Python NoiseEnvironment怎么用?Python NoiseEnvironment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了NoiseEnvironment类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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),
                                 },
                             }
                         })
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:30,代码来源:figure_grids.py


示例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,
                ),
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:31,代码来源:figure_bumps.py


示例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())
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:31,代码来源:figure_other_grids_sweeps.py


示例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()
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:20,代码来源:suppFigure_grids_vs_line_fit_err.py


示例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()


开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:28,代码来源:figure_1d_bumps.py


示例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),
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:31,代码来源:figure_gamma.py


示例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()
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:25,代码来源:suppFigure_velocity.py


示例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()
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:21,代码来源:suppFigure_gamma.py


示例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)
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:31,代码来源:figure_grids_trials.py


示例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()

开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:20,代码来源:figure_isbump_examples.py


示例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],
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:30,代码来源:figure_gamma_ratio_corrected.py


示例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()
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:21,代码来源:suppFigure_grids_vs_bumps.py


示例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()

开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:23,代码来源:figure_seizures.py


示例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:
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:31,代码来源:figure_gamma.py


示例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()

开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:27,代码来源:figure_isBump.py


示例16: NoiseEnvironment

#!/usr/bin/env python
'''I-surround bump drift plots with the original E-surround settings but with
an increased constant drive to E cells.'''
from __future__ import absolute_import, print_function

from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment

import config_e_const_450 as config

parser = flagparse.FlagParser()
parser.add_flag('--drift_sweep')
parser.add_flag('--theta_signal')
args = parser.parse_args()

env = NoiseEnvironment(user_config=config.get_config())

if args.drift_sweep or args.all:
    env.register_plotter(noisefigs.plotters.BumpDriftAtTimePlotter)

if args.theta_signal or args.all:
    env.register_plotter(noisefigs.plotters.ThetaSignalPlotter)

env.plot()

开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:25,代码来源:figure_drifts_e_const_450.py


示例17: NoiseEnvironment

parser = flagparse.FlagParser()
parser.add_flag('--grids')
parser.add_flag('--spatial_info')
parser.add_flag('--sparsity')
parser.add_flag('--spatial_info_stats')
parser.add_flag('--examplesFlag')
parser.add_flag('--examples_colorbar')
parser.add_flag('--correlation_angles')
parser.add_flag('--detailed_noise')
parser.add_flag('--diff_sweep')
parser.add_flag('--grids_pbumps_prob')
parser.add_flag('--high_gscore_frac')
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.32,
                                 'vmax': 0.774,
                                 'cbar_kw': {
                                     'ticks': ti.MultipleLocator(0.2),
                                 },
                                 'ann': None,
                             }
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:30,代码来源:figure_grids.py


示例18: deepcopy

if args.pbumps_gEE_EE_sigma or args.all:
    new_config = deepcopy(config.get_config())
    new_config.update(
        {
            "grids_data_root": None,
            "bump_data_root": join(
                "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": [0, 150, 300],
            "even_shape": None,
        }
    )
    env = NoiseEnvironment(user_config=new_config)
    env.register_class(
        noisefigs.plotters.Generic2DPBumpPlotter,
        config={
            "Generic2DPBumpPlotter": {
                "fname": "bumps_Pbumps_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": (0.2, 0.17, 0.85, 0.9),
                "cbar": [0, 0, 1],
                "ann": [None, [dict(txt="", rc=(20, 5), xytext_offset=(0.03, 1.5), color="black")], None],
                "vmin": 0,
                "vmax": 0.959,
                "cbar_kw": dict(ticks=ti.MultipleLocator(0.2)),
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:31,代码来源:figure_bumps.py


示例19: 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()
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:21,代码来源:suppFigure_gamma.py


示例20: deepcopy

if args.pbumps_Iext_e or args.all:
    new_config = deepcopy(config.get_config())
    new_config.update({
        'grids_data_root': None,
        'bump_data_root': ('simulation_data/i_surround/'
                           'gamma_bump_Iext_e_theta_vs_Iext_e_const'),
        'vel_data_root':  None,
        'const_pos_data_root': None,
        'singleDataRoot': None,

        'noise_sigmas': [0, 150, 300],
        'even_shape': None,
        'output_dir': 'panels',
    })
    env = NoiseEnvironment(user_config=new_config)
    env.register_class(
        noisefigs.plotters.Generic2DPBumpPlotter,
        config={
            'Generic2DPBumpPlotter': {
                'fname': "bumps_pbumps_Iext_e_theta_vs_Iext_e_const_{ns}.pdf",
                'normalize_ticks': (False, False),  # (Y, X)
                'normalize_type': (None, None),
                'xlabel': 'Constant amplitude\n(pA)',
                'ylabel': '$\\theta$ amplitude (pA)',
                'bbox': (.15, .2, .85, .9),

                'yticks': [1, 0, 0],
                'cbar': [0, 0, 1],
            },
        })
开发者ID:MattNolanLab,项目名称:ei-attractor,代码行数:30,代码来源:figure_other_bump_sweeps.py



注:本文中的noisefigs.env.NoiseEnvironment类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python dbn.DBN类代码示例发布时间:2022-05-27
下一篇:
Python noise.snoise2函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap