public class ReviewReductorRandom extends Review
Constructor and Description |
---|
ReviewReductorRandom() |
Modifier and Type | Method and Description |
---|---|
Population |
review(Population train,
java.lang.String classe,
Selection s,
GlobalDistance dg)
Method that drops random cases until the population drops to the
specified keepRatio of its original size.
|
void |
setKeepPercentage(float kp)
Sets the unary ratio of the Population to be kept.
|
public Population review(Population train, java.lang.String classe, Selection s, GlobalDistance dg)
review
in class Review
train
- Population to reviewclasse
- String id of the attribute to classifys
- Selection method of the cbrdg
- GlobalDistance method of the cbrReview
,
Selection
,
GlobalDistance
public void setKeepPercentage(float kp)
kp
- BigDecimal with the ratio.