find_close_cpu_model_name#

impacthpc.src.core.find_close_cpu_model_name(name: str, threshold: float = 90) FuzzymatchResult | None#

Fuzzymatch search for close CPU model names from a dataset using fuzzy matching on name, code name, and generation. This method can return zero (None),one (FuzzymatchSingleResult) or several matches (FuzzymatchMultipleResult). Returns the exact name of the CPU, making it suitable to use with CPU class.

Parameters:
  • name (str) – The user input string to search for.

  • threshold (float, optional) – The minimum similarity score (0–100) to consider a match. Defaults to 90.

Returns:

Return type:

FuzzymatchResult | None