code: Minor corrections for HUE
This commit is contained in:
@ -443,7 +443,7 @@ def adaptive_cons(seq, lmdks, epsilon, inc_rt, dec_rt):
|
||||
else:
|
||||
skipped += 1
|
||||
# Skip current release and approximate with previous
|
||||
rls_data[i] = rls_data[i - 1]
|
||||
rls_data[i] = [p[0], rls_data[i - 1][1]]
|
||||
if is_landmark:
|
||||
# Allocate the current budget to the following releases uniformly
|
||||
for j in range(i + 1, len(seq)):
|
||||
@ -538,7 +538,7 @@ def skip_cons(seq, lmdks, epsilon):
|
||||
if is_landmark:
|
||||
if i > 0:
|
||||
# Approximate with previous
|
||||
o = rls_data[i - 1]
|
||||
o[1] = rls_data[i - 1][1]
|
||||
bgts[i] = 0
|
||||
rls_data[i] = o
|
||||
return rls_data, bgts
|
||||
|
Reference in New Issue
Block a user