Skip to content

Komputation is a neural network framework for the JVM written in the Kotlin programming language.

License

Notifications You must be signed in to change notification settings

razmaniandevil/komputation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Komputation

Komputation is a neural network framework for the JVM written in the Kotlin programming language.

Layers

Demos

Sample code

The following code instantiates a convolutional neural network for sentence classification:

val network = Network(
   lookupLayer(embeddings, embeddingDimension, batchSize, maximumLength, optimization),
   concatenation(
       maximumLength * embeddingDimension,
       *filterWidths
           .map { filterWidth ->
               arrayOf(
                   convolutionalLayer(numberFilters, filterWidth, filterHeight, initialization, initialization, optimization),
                   maxPoolingLayer(numberFilters),
                   reluLayer(numberFilters),
                   dropoutLayer(numberFilters, random, keepProbability)
               )
           }
           .toTypedArray()
   ),
   projectionLayer(numberFilterWidths * numberFilters, numberCategories, initialization, initialization, optimization),
   softmaxLayer(numberCategories)
)

See the TREC demo for more details.

Initialization

Loss functions

Optimization

About

Komputation is a neural network framework for the JVM written in the Kotlin programming language.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 94.5%
  • Cuda 5.5%