Skip to content

feat(ocl): implement an event system for evaluation#356

Open
tachyonicClock wants to merge 1 commit into
adaptive-machine-learning:mainfrom
tachyonicClock:events
Open

feat(ocl): implement an event system for evaluation#356
tachyonicClock wants to merge 1 commit into
adaptive-machine-learning:mainfrom
tachyonicClock:events

Conversation

@tachyonicClock
Copy link
Copy Markdown
Collaborator

@tachyonicClock tachyonicClock commented May 4, 2026

An event/hook/plugin system similar (but more dynamic) to PyTorch lightning's Callback class or Avalanche's plugins. I needed a way to get the predictions of a learner from a replay buffer without having to modify the replay buffers owner. With the new system the replay buffer subscribes to TrainBatchPredict. Another use-case is when we have nested learners OuterLearner(InnerLearner) and the inner learner needs to know about tasks TestTaskBegin. At the moment we need to proxy the signals .on_train_task function calls through OuterLearner to the InnerLearner. With the new system we subscribe the inner learner first and then pass it into the outer learner. The system will also allow for custom evaluators and loggers.

A big chunk of the changes is spitting up the evaluation module into smaller files

@tachyonicClock
Copy link
Copy Markdown
Collaborator Author

image

@tachyonicClock tachyonicClock force-pushed the events branch 3 times, most recently from c7278b4 to dffed48 Compare May 4, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant