code: def param_aliases(d):
      
      for old, new in ALIASES.items():
          old_param = '_%s_param_value' % old
          new_param = '_%s_param_value' % new
          if old_param in d:
              d[new_param] = d.pop(old_param)
      return d
docs: Called from __setstate__ in LabelledData in order to load
      old pickles with outdated parameter names.
  
      Warning: We want to keep pickle hacking to a minimum!