Supervised Machine Learning with a Novel Pointwise Density Estimator