machine learning codes for ad click prediction