1
I’m analyzing an audio and my scikit ML model generates an array of probabilities that certain element in the array corresponds to a category "A" used to train the model.
Each element of the array corresponds to a probability of an analysis window obtained through several transformations (FFT, Mel...). For an audio of 4998,0487 seconds an array of probabilities is generated for 497305 analysis windows. My goal is to transform this array of size 497305 into one of size 4998 or 4999 with the average probability of each second corresponding to the training category "A".
My goal, in short, is to use the average of 100 windows for each second (497305 windows / 4998,0487 ~= 99.5). How to do this in a simple way using numpy?