In the code the whole table with 8 columns is put as data array. But only 4 of the columns contain the measurements (bill length, weight, ...) and the others are the different class/category memberships. The data field should only contain the 4 columns corresponding to measurements. Arrays.copyOfRange should do the trick. But also the names of these 4 colums should be put into a String[] field of the class.
https://github.com/hageldave/DimRedDatasets/blob/97956d33c07ed27b03b55efa0f76f42ffc144b4c/proj/src/main/java/hageldave/dimred/datasets/regular/PalmerPenguins.java#L86
In the code the whole table with 8 columns is put as data array. But only 4 of the columns contain the measurements (bill length, weight, ...) and the others are the different class/category memberships. The
data
field should only contain the 4 columns corresponding to measurements.Arrays.copyOfRange
should do the trick. But also the names of these 4 colums should be put into aString[]
field of the class.