public static double[][] selectKernelSet(double[][] trainingSet, double kernelPr
ID: 3646845 • Letter: P
Question
public static double[][] selectKernelSet(double[][] trainingSet, double kernelProportion, Random rng){/*Create a new 2D array for the kernel set.
number of rows: kernelProportion times number of rows in trainingSet
cast the result of this calculation to an int
number of cols: same as the number of cols in trainingSet
Each row of the kernel set is assigned a random row of the trainingSet
using the random number generator to generate integers in the range 0 up to but not including the length of the trainingSet. Note it is okay if the same example is selected more than once./
Can anyone help me write code for this ??