Skip to content

Regularization-parameter lambda for CGLogRegTrainer-constructor is python reserved-word

Created by: skbidiap

When I try to use the regularization parameter, using something like: bob.learn.linear.CGLogRegTrainer(prior=0.5, lambda=0.001) I get an error message from Python: SyntaxError: invalid syntax

because the parameter-name 'lambda' matches the python keyword 'lambda'.