AstraZeneca has put hundreds of millions of dollars into AI deals, with an eye toward not just accelerating the development of drugs that treat cancer after it appears but also in creating diagnostics that can catch cancer earlier than current methods allow.