Hooks

Inference

XPM Configxpmir.context.Hook

Bases: experimaestro.core.objects.Config

Base class for all hooks

XPM Configxpmir.context.InitializationHook

Bases: xpmir.context.Hook

Base class for hooks before/after initialization

after(context: xpmir.context.Context)

Called after initialization

before(context: xpmir.context.Context)

Called before initialization

Learning

Hooks can be used to modify the learning process

XPM Configxpmir.letor.context.TrainingHook

Bases: experimaestro.core.objects.Config

Base class for all training hooks

XPM Configxpmir.letor.context.InitializationTrainingHook

Bases: xpmir.context.InitializationHook

Base class for hooks called at each epoch (before/after)

after(state: xpmir.letor.context.TrainerContext)

Called after initialization

before(state: xpmir.letor.context.TrainerContext)

Called before initialization

XPM Configxpmir.letor.context.StepTrainingHook

Bases: xpmir.letor.context.TrainingHook

Base class for hooks called at each step (before/after)

after(state: xpmir.letor.context.TrainerContext)

Called after a training step

before(state: xpmir.letor.context.TrainerContext)

Called before a training step