reset

open suspend override fun reset()(source)

Resets the learning engine to its initial blank state, clearing all learned knowledge.

This method provides a complete reset mechanism that returns the AI to its initial untrained state. All learned patterns, weights, and interaction history are permanently cleared, creating a fresh learning opportunity.

Reset Operations:

  • Clears all neural network weights and biases

  • Resets interaction statistics and counters

  • Empties context history and pattern buffers

  • Reinitializes optimization state and schedules

Thread Safety: The reset operation is protected by mutex locks to ensure atomic execution and prevent interference from concurrent training or prediction operations.

Use Cases:

  • User privacy requests for data deletion

  • Starting fresh learning for new user profiles

  • Recovery from corrupted or problematic model states

  • A/B testing scenarios requiring baseline comparisons