Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Exercise(val input: Tensor, val output: Tensor)

An individual training or test datum.

Link copied to clipboard
Link copied to clipboard
sealed class Measurement<T : Any>

Measurements can be taken from just about any part of a system.

Link copied to clipboard
class OrganicTrainer(val pruningPeriod: Int) : Trainer

An organic trainer attempts to train a model of progressive complexity by growing layers in width and depth, as well as adding functional modules where linearities allow growth without disrupting learned features.

Link copied to clipboard
Link copied to clipboard

This Statistics type collects information for a SequentialNetwork.

Link copied to clipboard
class SequentialTrainer(val network: SequentialNetwork, val cases: List<Exercise>, val lossFunction: LossFunction, val optimizer: Optimizer, val statistics: Statistics, acceptableError: Double = 0.001) : Trainer

A trainer for a SequentialNetwork using a list of Exercise instances to evaluate against the given lossFunction, updating the model parameters using the provided optimizer.

Link copied to clipboard
data class Snapshot(val epoch: Int, val measurements: Map<Measurement<Float>, Map<Float, Float>>, val timestamp: Instant = Clock.System.now())
Link copied to clipboard
interface Statistics

A statistics object receives updates throughout training in order to collect information to assess training performance.

Link copied to clipboard
interface Trainer

A Trainer defines a workflow for training a model.