select
public SeleccioIndividus select(MatriuDistancies matriu,
Population train,
Population test,
java.lang.String classe)
Selection method that returns the N closest train cases for each test case.
N must be defined in parameters.
- Specified by:
select
in class Selection
- Parameters:
matriu
- Float[][] with global distances.test
- Population with test cases.train
- Population with train cases.classe
- String id for the attribute that is being classified.
- Returns:
- Object[][] matrix of [K,N] dimension with the K test cases in the first dimension and the N closest train cases in the second.