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
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
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