Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. def analysis(db_size,query,noise_percentage=0.5):
  2. db = create_db(db_size)
  3. augmented_db = modify_db(db,noise_percentage)
  4. true_output = query(db)
  5. augmented_output = query(augmented_db)
  6. analysis_output = (augmented_output - (1 - noise_percentage) * 0.5)/noise
  7. print ("size = %r orginal_db result = %r augmented_db result = %r deskewed analysis result = %r" %(db_size,true_output,augmented_output,analysis_output))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement