added sklearn with vectorized dict