/ concept-collection / benchcompress
Sign in
concept-collection / benchcompress
fix markov recon
Jeremy Magland <jmagland@flatironinstitute.org> committed commit 8d8d5faffea7 parent 8d0d0ae Browse files
1 changed file+1−1
zia_benchmark/src/zia_benchmark/algorithms/simple_ans/markov.pymodified+1−1View file
@@ -56,7 +56,7 @@ def markov_reconstruct(
5656 # Get previous M-1 values to make prediction
5757 prev_values = output[i : i + M - 1]
5858 # Make prediction using coefficients
59- prediction = np.sum(coeffs[1:] * prev_values) + coeffs[0]
59+ prediction = np.sum(coeffs[:-1] * prev_values) + coeffs[-1]
6060 prediction = np.round(prediction)
6161 # Add residual to get actual value
6262 output[i + M - 1] = prediction + resid[i]
moveopenescclose