AI, Python, Heredity, Joint Probability, Bayesian Networks.
gene and trait data from a file into a dictionary. File assumed to be a CSV containing fields name, mother, father, trait. mother, father must both be blank, or both be valid names in the CSV. trait should be 0 or 1 if trait is known, blank otherwise. """ data = dict() with open(filename) as f: