Package-level declarations

Types

Link copied to clipboard

A tiny, fixed KAN-based approximator for y = sin(x) on the interval 0, π/2. It consists of a single KAN layer whose basis, mixer weights and bias were exported from the accompanying PyTorch script in piekan/train.py, and are embedded here as constants. At runtime, it builds a Module with those values frozen, serving as a lightweight, dependency-free example of loading pretrained KAN parameters in Kotlin.

Functions

Link copied to clipboard
fun sineKan(executionContext: ExecutionContext): Module<FP32, Float>

Minimal KAN-based approximator for y = sin(x) on 0, pi/2.