To use ParamBase in encoder parameter setting

I suggest to use ParamBase so as to avoid any problem of unintended parameter setting and unexpected behavior.