Fix bugs. It can both well done on linear datasets and nonlinear datasets.