KAN Regression #
This example trains a small Kolmogorov-Arnold Network on the prepared Auto MPG tabular-regression
CSV. The downloader normalizes the columns to [0, 1], so the piecewise-linear KAN basis uses
inputScale = gridSize - 1 to spread its knots across the data interval.
KAN is a model constructor. The task is chosen by the general trainer surface:
let trainer := Trainer.new model { task := .regression, optimizer := optim.adam { lr := 1e-3 } }
The edge basis is a normal config field. This example uses triangular piecewise-linear hats; a
spline, polynomial, or rational edge family would plug in through the same
nn.models.KANEdgeFamily slot, while the trainer continues to choose the task.
CLI subcommand name used in terminal banners and error messages.
Instances For
Default JSON loss-curve path for this command.
Instances For
Static minibatch size for the Auto MPG tabular loader.
Instances For
Auto MPG has seven normalized numeric predictors after dropping the car name.
Instances For
KAN configuration using triangular edge bases over normalized tabular features.
Instances For
Generic KAN model. Regression/classification is selected by Trainer, not by the model name.
Instances For
Prepared Auto MPG CSV as a public trainer dataset.
Instances For
Train the Auto MPG KAN with the public Trainer surface.