I am analyzing an audio and my ML model of scikit learn generates an array of probabilities that a certain element in the array corresponds to an "A" category 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 turn this array of size 497305 into one of size 4998 or 4999 with the average probability of each second matching the "A" category of training.
My goal, in short, is to use the average of 100 windows for every second (497305 windows / 4998.0487 ~ = 99.5). How to do this in a simple way using numpy?