def setParams(self, **kwargs):
        """ set parameters for SVM training """
        if kwargs in 'weight':
            self.params['nr_weight'] = len(kwargs['weight'])
        self.params.update(kwargs)
dataset/ETHPy150Open pybrain/pybrain/pybrain/supervised/trainers/svmtrainer.py/GridSearch.setParams/swapped operands of `in`