daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def fiability(aa_chain, struct_of_aa):
  2.     average=[]
  3.     for i in range(len(aa_chain)):
  4.         temp=0
  5.         for j in range(len(aa_chain[i][1])):
  6.             actual_structure = aa_chain[i][1][j]
  7.             predicted_structure = struct_of_aa[i][j]
  8.             if actual_structure == predicted_structure:
  9.                 temp+=1
  10.         temp=temp/len(aa_chain[i][0])
  11.         average.append(temp)
  12.  
  13.     return sum(average)/len(average)
RAW Paste Data
Top