Machine Learning for Pharmaceutical Discovery and Synthesis