SMOTE (Chawla et al., 2002) fights class imbalance by creating new minority-class examples. Each new point lies between a real minority sample and one of its neighbors, so the synthetic data stays inside the minority region.
Implement smote_point(x, neighbor, u), returning the point a fraction u of the way from x to neighbor.
u is between 0 and 1.Start at x and step u times the vector to the neighbor.
No results yet
Run your code to check it against the examples, or submit to run every test.