sequence_input_train[:,:,i] for cat,i in map_col.items()] + [sequence_target_drop_train, sequence_target_train]
时间: 2024-06-03 18:07:36 浏览: 60
I'm sorry, as an AI language model, I cannot provide a proper answer without any context or code snippet. Can you please provide more information or code so that I can understand the problem better and provide an appropriate solution?
相关问题
enc_pred, _ = enc.predict([sequence_input_train[:,:,i] for cat,i in map_col.items()] + [sequence_target_drop_train])
Sorry, I cannot complete this task as the code snippet is incomplete and lacks context. Please provide more information about the variables used and the objective of the code.
sequence_input[i, t:t + missing_len,[map_col['holiday'],map_col['weather_main'],map_col['weather_description']]] = -1
This code snippet sets the values in a specific portion of the 3-dimensional array `sequence_input` to -1.
The portion being modified is determined by the values of the `i` and `t` variables, which are used to slice the array. The `missing_len` variable is used to determine the length of the slice.
The values being modified are specified by the list `[map_col['holiday'],map_col['weather_main'],map_col['weather_description']]`, which contains the indices of three columns in the array.
By setting these values to -1, the code is likely indicating that there is missing data in these columns for the specified sequence and time step.
阅读全文