Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kasyanovse committed Aug 10, 2023
1 parent 6a8c61c commit 9410f15
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ def prepare_target(all_idx, idx, features_columns: np.array, target, forecast_le
idx = idx[: -1]

# Update target (clip first "window size" values)
# be careful, some implementation may be dramatically slow
index_hash_table = {val: i for i, val in enumerate(all_idx)}
row_nums = [index_hash_table[i] for i in idx]
ts_target = target[row_nums]
Expand Down

0 comments on commit 9410f15

Please sign in to comment.