I’ve built some functions for training and testing a Machine Learning model, and am thinking about the best place to run these methods. I was thinking of placing them in the
paint() method, as I have concerns about running them on the audio thread. The training is essentially pushing numbers into a vector when “recording”, then measuring these numbers against another vector when “testing.”
At the moment, I’m running the audio through Max MSP and am only using JUCE for classification, but will be moving everything to JUCE later, so want to make sure I’m running these functions in the right place. Does anyone have any thoughts on this? Thanks for any help.