A machine learning-based high-precision density functional method for drug-like molecules