Causal Categorization with Bayes Nets