Accelerating molecular optimization with AI