initialize

abstract suspend fun initialize(state: KarlContainerState?, coroutineScope: <Error class: unknown class>)(source)

Initializes the learning engine. This method should prepare the engine for operation, which includes creating a new model or loading an existing one from a saved state.

Parameters

state

The previously saved KarlContainerState to load, or null if starting fresh.

coroutineScope

A CoroutineScope provided by the container for launching long-running or asynchronous tasks (like background training).