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