MATLAB File Help: prtKernelDirect |
prtKernelDirect Direct kernel kernelObj = prtKernelDirect Generates a prtKernelDirect object implementing a direct kernel function. Kernel objects are widely used in several prt classifiers, such as prtClassRvm and prtClassSvm. Direct kernels implement the following function for 1 x N vectors x1 and x2: k(x1,x2) = x2; Direct kernel functions can be used sparse machine learning contexts to perform sparse linear feature selection. prtKernelDirect objects inherit the TRAIN, RUN, and AND methods from prtKernel. % Example: ds = prtDataGenUnimodal; % Load a data set k1 = prtKernelDirect; % Create a prtKernelDirect object k1 = k1.train(ds); % Train g1 = k1.run(ds); % Run % Plot the results imagesc(g1.getObservations);
Superclasses | prtKernel |
Sealed | false |
Construct on load | false |
prtKernelDirect | Direct kernel |
dataSet | The training prtDataSet, only stored if verboseStorage is true. |
dataSetSummary | Structure that summarizes prtDataSet. |
isCrossValidateValid | False |
isSupervised | |
isTrained | Indicates if prtAction object has been trained. |
name | Direct Kernel |
nameAbbreviation | DirectKernel |
showProgressBar | |
userData | User specified data |
verboseStorage | Specifies whether or not to store the training prtDataset. |
and | Combine 2 prtKernels into a prtKernelSet | |
get | get the object properties | |
optimize | Optimize action parameter by exhaustive function maximization. | |
run | Run a prtAction object on a prtDataSet object. | |
set | set the object properties | |
train | Train a prtAction object using training a prtDataSet object. |