SKaiNET
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
SKaiNET
skainet-kan
/
sk.ainet.lang.kan
/
KanDslImpl
Kan
Dsl
Impl
class
KanDslImpl
<
T
:
DType
,
V
>
(
val
executionContext
:
ExecutionContext
,
dtype
:
KClass
<
T
>
,
initialOutputDim
:
Int
,
id
:
String
)
:
KAN
<
T
,
V
>
(
source
)
Members
Constructors
Kan
Dsl
Impl
Link copied to clipboard
constructor
(
executionContext
:
ExecutionContext
,
dtype
:
KClass
<
T
>
,
initialOutputDim
:
Int
,
id
:
String
)
Properties
base
Activation
Link copied to clipboard
open
override
var
baseActivation
:
(
Tensor
<
T
,
V
>
)
->
Tensor
<
T
,
V
>
basis
Init
Link copied to clipboard
var
basisInit
:
WeightsScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
bias
Init
Link copied to clipboard
var
biasInit
:
BiasScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
degree
Link copied to clipboard
open
override
var
degree
:
Int
execution
Context
Link copied to clipboard
open
override
val
executionContext
:
ExecutionContext
grid
Size
Link copied to clipboard
open
override
var
gridSize
:
Int
output
Dim
Link copied to clipboard
open
override
var
outputDim
:
Int
use
Bias
Link copied to clipboard
open
override
var
useBias
:
Boolean
use
Residual
Link copied to clipboard
open
override
var
useResidual
:
Boolean
weights
Init
Link copied to clipboard
var
weightsInit
:
WeightsScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
Functions
basis
Link copied to clipboard
open
override
fun
basis
(
initBlock
:
WeightsScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
)
bias
Link copied to clipboard
open
override
fun
bias
(
initBlock
:
BiasScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
)
create
Link copied to clipboard
fun
create
(
inputDim
:
Int
,
mixingWeights
:
Tensor
<
T
,
V
>
,
basis
:
Tensor
<
T
,
V
>
,
bias
:
Tensor
<
T
,
V
>
?
)
:
KanLayer
<
T
,
V
>
weights
Link copied to clipboard
open
override
fun
weights
(
initBlock
:
WeightsScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
)