A Kernel Support Vector Machine Trained Using Approximate Global and Exhaustive Local Sampling