question: public static void randomizeWeightsInPlace ( Counter < String > wts , double scale ) { for ( String feature : wts . keySet ( ) ) { double epsilon = Math . random ( ) * scale ; double newValue = wts . getCount ( feature ) + epsilon ; wts . setCount ( feature , newValue ) ; } }
target:  Add a scaled (positive) random vector to a weights vector.