code: Update
This commit is contained in:
		@ -477,7 +477,7 @@ def adaptive_cons(seq, lmdks, epsilon, inc_rt, dec_rt):
 | 
			
		||||
  skipped = 0
 | 
			
		||||
  for i, p in enumerate(seq):
 | 
			
		||||
    # Check if current point is a landmark
 | 
			
		||||
    is_landmark = any((lmdks[:]==p).all(1))
 | 
			
		||||
    is_landmark = any(np.equal(lmdks, p).all(1))
 | 
			
		||||
    if is_landmark:
 | 
			
		||||
      lmdk_cur += 1
 | 
			
		||||
    if lmdk_lib.should_sample(samp_rt) or i == 0:
 | 
			
		||||
@ -584,7 +584,7 @@ def skip_cons(seq, lmdks, epsilon):
 | 
			
		||||
  rls_data = [None]*len(seq)
 | 
			
		||||
  for i, p in enumerate(seq):
 | 
			
		||||
    # Check if current point is a landmark
 | 
			
		||||
    is_landmark = any((lmdks[:]==p).all(1))
 | 
			
		||||
    is_landmark = any(np.equal(lmdks, p).all(1))
 | 
			
		||||
    # Add noise
 | 
			
		||||
    o = [p[0], lmdk_lib.add_laplace_noise(p[1], 1, bgts[i])]
 | 
			
		||||
    if is_landmark:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user