LearningEngine
Defines the contract for the AI model's learning and inference capabilities.
This interface abstracts the underlying machine learning framework (e.g., KotlinDL, a custom model) from the KarlContainer
. Implementations of this interface are responsible for managing the ML model's lifecycle, training, prediction, and state serialization.
Functions
Retrieves the current, serializable state of the learning model for persistence.
(Optional but Recommended) Provides insights into the current learning progress. This can be used to power an "AI Maturity Meter" in the UI.
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.
Makes a prediction or suggestion based on the current learned state and optional context.
Performs a single, incremental training step based on new interaction data.