Learning To Design Protein And Dna Libraries