move risk() from StructuredModel to DualLibQPSOSVM