Closed E-Penguin closed 1 year ago
If I remember correctly, you can pass an argument y_func
to the sliding window to decide how you set the y value for each window
If I remember correctly, you can pass an argument
y_func
to the sliding window to decide how you set the y value for each window Thanks @vrodriguezf. You are totally right.
Closed due to lack of response.
I have a "long" dataset consisting of n features (columns) by m rows (time steps) (n >1, this is multivariate). For class labels I have added an extra column containing the label (0 or 1), so now the final column is the class label, per time step. I have put this into a SlidingWindow, per the tutorial with get_x and get_y set accordingly. For get_x I just use the first column, the target column if this were a regression problem.
The code runs well enough but I'm not sure what to interpret the output. It appears that everything is predicted class=0 and 'true' is given as class=0, however in the test split there are definitely rows (time steps) where the class=1. Is this doing some sort of average per window? How is tsai allocating a label to a given window?