covartech / PRT

Pattern Recognition Toolbox for MATLAB
http://covartech.github.io/
MIT License
145 stars 70 forks source link

sine activation function Kernel Set #43

Closed aditiegarg closed 8 years ago

aditiegarg commented 8 years ago

I was trying to use sine activation function as kernel for rvm classification. I cant find it. Can someone please help?

covartech commented 8 years ago

Hi,

By default there is no SIN kernel in the PRT, but it should be possible to implement one. How exactly to do that depends on what you want. If you want to do sparse fourier analysis, you can get started by overloading something like prtKernelDirect or prtKernelDc. The parameter of the prtKernelSin should probably be the frequency of the sinusoid and the phase offset. The Kernels are pretty sparsely documented however, so you're entering a bit of a weird world. Take a look at prtKernelDc and prtKernelDirect for examples. Good luck.