Check that trainer argument k is a number.
Add optional smoothing to UAI imports.