Update base.py for issue #40

set "numpy_result=True" for loss functions since lbfgs cant handle gnumpy scalars