from typing import List


def _format_predicted_class_strings(class_names: List[str]) -> List[str]:
    """Format the class names by replacing underscores with spaces and capitilize every word's first letter.

    Args:
        class_names (List[str]): A List of class names.

    Returns:
        List[str]: A List of formatted class names.
    """
    return [class_name.replace("_", " ").title() for class_name in class_names]