Using K Nearest Neighbours algorithm in scenario tuning