modified vector_encoding
modified params
fix the bug about vector encoding