SMOTE¶
-
pykitml.
smote
(minority_data_points, k=1)¶ SMOTE (Synthetic Minority Oversampling TEchnique). Used to generate more data points for minority class or imbalanced learning.
Parameters: - minority_data_points (numpy.array) – Inputs or data points corresponding to the minority class.
- k (int) – Number of neighbors to consider.
Returns: new_points – New generated data points (Excluding data points passed to the function).
k*minority_data_points.shape[0]
points will be generated.Return type: numpy.array