def _set_scores(self):
anom_scores = {}<EOL>self._generate_SAX()<EOL>self._construct_all_SAX_chunk_dict()<EOL>length = self.time_series_length<EOL>lws = self.lag_window_size<EOL>fws = self.future_window_size<EOL>for i, timestamp in enumerate(self.time_series.timestamps):<EOL><INDENT>if i < lws or i > length - fws:<EOL><INDENT>anom_scores[timestamp] = <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>anom_scores[timestamp] = self._compute_anom_score_between_two_windows(i)<EOL><DEDENT><DEDENT>self.anom_scores = TimeSeries(self._denoise_scores(anom_scores))<EOL>
Compute anomaly scores for the time series by sliding both lagging window and future window.