TrainingViewModel

This view model maintains the ui state for training a neural network.

Constructors

Link copied to clipboard
constructor(controller: TrainingController)

Properties

Link copied to clipboard
val state: StateFlow<TrainingUiState>

The current state of the training UI.

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard
fun loadNetwork(networkId: String)

Load a neural network for training.

Link copied to clipboard
fun onReset()

Reset current training session.

Link copied to clipboard
fun onRun(epochs: Int)
Link copied to clipboard
fun onStart()
Link copied to clipboard
fun onStop()