I used `isinstance(params_set[name], float)` to avoid to pass strings to `np.isnan`