Interface Balancer<U>
- Type Parameters:
U- type of the users
- All Known Implementing Classes:
SMOTEBalancer
public interface Balancer<U>
Definition of an algorithm that modifies a set of instances, so the classes are balanced.
-
Method Summary
Modifier and Type Method Description InstanceSet<U>balance(InstanceSet<U> original)Given an unbalanced dataset, creates a new dataset where every class has the same number of examples.
-
Method Details
-
balance
Given an unbalanced dataset, creates a new dataset where every class has the same number of examples.- Parameters:
original- the original dataset.- Returns:
- the balanced dataset.
-