After referring to the open-source Github repository pykan, I have successfully implemented a custom KAN layer based on MATLAB's Deep Learning Toolbox and the Define Custom Deep Learning Layer with Learnable Parameters Example. The custom KAN layer accepts a "CB" dlarray and returns a "CB" dlarray.
>> checkLayer(kanLayer,layout)
Skipping code generation compatibility tests. To check validity of the layer for code generation, specify the CheckCodegenCompatibility and ObservationDimension options.
Running nnet.checklayer.TestLayerWithoutBackward
.......... .......... ........
Done nnet.checklayer.TestLayerWithoutBackward
__________
Test Summary:
28 Passed, 0 Failed, 0 Incomplete, 6 Skipped.
Time elapsed: 0.35918 seconds.


