Nabu-asr
Public Member Functions | Public Attributes | List of all members
nabu.neuralnetworks.components.hooks.ValidationSaveHook Class Reference

a training hook for saving and loading the validated model More...

Inheritance diagram for nabu.neuralnetworks.components.hooks.ValidationSaveHook:

Public Member Functions

def __init__ (self, filename, model)
 hook constructor More...
 
def begin (self)
 this will be run at session creation
 
def after_create_session (self, session, _)
 this will be run after session creation
 
def save (self)
 save the current parameters
 
def restore (self)
 restore the previously validate parameters
 

Public Attributes

 filename
 
 model
 

Detailed Description

a training hook for saving and loading the validated model

Constructor & Destructor Documentation

§ __init__()

def nabu.neuralnetworks.components.hooks.ValidationSaveHook.__init__ (   self,
  filename,
  model 
)

hook constructor

Parameters
filenamewhere the model will be saved
modelthe model that will be saved

The documentation for this class was generated from the following file: