It looks like at this point "parameters" is already a dictionary, and it's just being updated with float_model_params, so this line could be replaced with:

  parameters.update(float_model_params)