Learning chemical sensitivity reveals mechanisms of cellular response