Module Import alias identifier ImportFrom alias ImportFrom alias alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr Num If CompareGtE BinOpSub AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Num AugAssignAdd AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Return Call NameLoad NameLoad keyword Str decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list decorator_list
N/A N/A numpy np controllers TrainingController deepy.utils FLOATX shared_scalar N/A logging loggers N/A logging N/A N/A loggers getLogger __name__ LearningRateAnnealer N/A TrainingController N/A N/A 
    Learning rate annealer.
     __init__ N/A N/A self trainer patience anneal_times N/A 3 4 N/A N/A 
        :type trainer: deepy.trainers.base.NeuralTrainer
         N/A N/A N/A N/A super LearningRateAnnealer self __init__ trainer N/A N/A self _iter -1 N/A N/A self _annealed_iter -1 N/A N/A self _patience patience N/A N/A self _anneal_times anneal_times N/A N/A self _annealed_times 0 N/A N/A self _learning_rate N/A N/A N/A self _trainer config learning_rate N/A N/A N/A type N/A self _learning_rate float N/A N/A N/A Exception use shared_scalar to wrap the value in the config. N/A invoke N/A N/A self N/A N/A N/A 
        Run it, return whether to end training.
         N/A N/A self _iter 1 N/A N/A N/A N/A self _iter N/A max N/A N/A self _trainer best_iter N/A self _annealed_iter N/A self _patience N/A N/A N/A N/A self _annealed_times N/A self _anneal_times N/A N/A N/A N/A logging info ending N/A True N/A N/A N/A N/A N/A self _trainer set_params N/A N/A self _trainer best_params N/A N/A N/A N/A self _learning_rate set_value N/A N/A N/A N/A self _learning_rate get_value 0.5 N/A N/A self _annealed_times 1 N/A N/A self _annealed_iter N/A self _iter N/A N/A N/A logging info N/A annealed learning rate to %f N/A N/A N/A self _learning_rate get_value N/A False N/A learning_rate N/A N/A value N/A 0.01 N/A N/A 
        Wrap learning rate.
         N/A N/A shared_scalar value name learning_rate N/A staticmethod N/A ScheduledLearningRateAnnealer N/A TrainingController N/A N/A 
    Anneal learning rate according to pre-scripted schedule.
     __init__ N/A N/A self trainer start_halving_at end_at N/A 5 10 N/A N/A N/A N/A N/A super ScheduledLearningRateAnnealer self __init__ trainer N/A N/A N/A logging info N/A iteration to start halving learning rate: %d start_halving_at N/A N/A self iter_start_halving start_halving_at N/A N/A self end_at end_at N/A N/A self _learning_rate N/A N/A N/A self _trainer config learning_rate N/A N/A self _iter 0 N/A invoke N/A N/A self N/A N/A N/A N/A self _iter 1 N/A N/A N/A self _iter N/A self iter_start_halving N/A N/A N/A N/A N/A self _trainer set_params N/A N/A self _trainer best_params N/A N/A N/A N/A self _learning_rate set_value N/A N/A N/A N/A self _learning_rate get_value 0.5 N/A N/A N/A logging info N/A halving learning rate to %f N/A N/A N/A self _learning_rate get_value N/A N/A N/A N/A N/A N/A self _trainer network train_logger record N/A set learning rate to %f N/A N/A N/A self _learning_rate get_value N/A N/A N/A self _iter N/A self end_at N/A N/A N/A N/A logging info ending N/A True N/A False N/A N/A ExponentialLearningRateAnnealer N/A TrainingController N/A N/A 
    Exponentially decay learning rate after each update.
     __init__ N/A N/A self trainer decay_factor min_lr debug N/A 1.000004 1e-06 False N/A N/A N/A N/A N/A super ExponentialLearningRateAnnealer self __init__ trainer N/A N/A N/A logging info N/A exponentially decay learning rate with decay factor = %f decay_factor N/A N/A self decay_factor N/A N/A np array decay_factor dtype FLOATX N/A N/A self min_lr N/A N/A np array min_lr dtype FLOATX N/A N/A self debug debug N/A N/A self _learning_rate N/A N/A N/A self _trainer config learning_rate N/A N/A N/A type N/A self _learning_rate float N/A N/A N/A Exception use shared_scalar to wrap the value in the config. N/A N/A N/A N/A N/A N/A self _trainer network training_callbacks append N/A self update_callback N/A update_callback N/A N/A self N/A N/A N/A N/A N/A N/A N/A self _learning_rate get_value N/A self min_lr N/A N/A N/A N/A N/A self _learning_rate set_value N/A N/A N/A N/A self _learning_rate get_value N/A self decay_factor N/A invoke N/A N/A self N/A N/A N/A N/A self debug N/A N/A N/A N/A logging info N/A learning rate: %.8f N/A N/A N/A self _learning_rate get_value N/A False N/A N/A SimpleScheduler N/A TrainingController N/A N/A 
    Simple scheduler with maximum patience.
     __init__ N/A N/A self trainer patience N/A 10 N/A N/A 
        :type trainer: deepy.trainers.base.NeuralTrainer
         N/A N/A N/A N/A super SimpleScheduler self __init__ trainer N/A N/A self _iter 0 N/A N/A self _patience patience N/A invoke N/A N/A self N/A N/A N/A 
        Run it, return whether to end training.
         N/A N/A self _iter 1 N/A N/A N/A logging info N/A N/A {} epochs left to run format N/A N/A self _patience N/A self _iter N/A N/A N/A self _iter N/A self _patience N/A N/A True N/A N/A False N/A N/A