Excuse my ignorance but what do KNN/ANN stand for?
ANN, artificial neural network, which is what things like tensorflow were borne. Neural networks were kind of passe before they were revived by "deep learning"; their essentially a self-correcting, self-referencing set of logic gates.