get_params function

Extract fitted parameters