コード例 #1
0
ファイル: plugins.py プロジェクト: nadoss/nems_db
def rdtwc(kw):
    from nems.plugins import default_keywords
    kw = kw[3:]
    ms = default_keywords.wc(kw)
    del ms['fn_kwargs']['i']
    del ms['fn_kwargs']['o']
    ms['fn'] = 'nems_lbhb.rdt.weight_channels.gaussian'
    return ms
コード例 #2
0
def ctwc(kw):
    '''
    Same as nems.plugins.keywords.fir but renamed for contrast
    to avoid confusion in the modelname and allow different
    options to be supported if needed.
    '''
    m = wc(kw[2:])
    m['fn_kwargs'].update({'i': 'contrast', 'o': 'ctpred'})
    return m
コード例 #3
0
def gcwc(kw):
    m = wc(kw[2:])
    m['fn_kwargs'].update({'ci': 'contrast', 'co': 'ctpred'})
    m['fn'] = 'nems_lbhb.gcmodel.modules.weight_channels'

    plot = 'nems_lbhb.gcmodel.guiplots.contrast_spectrogram'
    if m.get('plot_fns'):
        m['plot_fns'].append(plot)
    else:
        m['plot_fns'] = [plot]

    return m