input: from typing import List
  
  def find_mode(numbers: List[float]) -> float:
      """ Find the mode of the given set of values.
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2.0
      """
output:     frequency = {}
      for num in numbers:
          if num in frequency:
              frequency[num] += 1
          else:
              frequency[num] = 1
      
      max_count = max(frequency.values())
      mode = [num for num, count in frequency.items() if count == max_count]
      
      return float(mode[0]) if mode else float(numbers[0])