edit: here's something at least gleaned from some research papers from Google - https://ecoaerem.com/youtube-recommendation-system-code