% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kaf.R
\name{kaf}
\alias{kaf}
\title{Create a Kolmogorov-Arnold Fourier Network}
\usage{
kaf(
  input_dim,
  output_dim = 1,
  hidden = c(64, 64),
  num_grids = 16,
  dropout = 0,
  use_layernorm = TRUE,
  activation_expectation = 1.64,
  fourier_init_scale = 0.01
)
}
\arguments{
\item{input_dim}{Integer. Number of input features.}

\item{output_dim}{Integer. Number of output dimensions.}

\item{hidden}{Integer vector. Hidden layer sizes.}

\item{num_grids}{Integer. Number of Fourier frequencies per KAF layer.}

\item{dropout}{Numeric. Dropout probability.}

\item{use_layernorm}{Logical. Whether to apply layer normalization.}

\item{activation_expectation}{Numeric. Scaling constant for Fourier initialization.}

\item{fourier_init_scale}{Numeric. Initial scale of the Fourier branch.}
}
\value{
A torch KAF network.
}
\description{
Convenience wrapper around \code{nn_kaf()} using a more user-facing API.
}
