Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fiability(aa_chain, struct_of_aa):
- average=[]
- for i in range(len(aa_chain)):
- temp=0
- for j in range(len(aa_chain[i][1])):
- actual_structure = aa_chain[i][1][j]
- predicted_structure = struct_of_aa[i][j]
- if actual_structure == predicted_structure:
- temp+=1
- temp=temp/len(aa_chain[i][0])
- average.append(temp)
- return sum(average)/len(average)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement