The document presents a machine learning-based method for constructing credit default swap (CDS) rates, addressing the need for accurate counterparty default risk assessments in financial institutions post-2007-09 financial crisis. It critiques existing CDS proxy methods and explores the performance of various machine learning classifiers, concluding that the proposed method adheres to regulatory standards while effectively accounting for idiosyncratic default risks. The top performing classifiers identified were neural networks, support vector machines, and ensemble/bagged trees, each demonstrating strong accuracy in empirical validations.