Class: Trainers::TrainerControl
- Inherits:
-
Object
- Object
- Trainers::TrainerControl
- Defined in:
- lib/trainers/callbacks.rb
Instance Attribute Summary collapse
-
#should_epoch_stop ⇒ Object
Returns the value of attribute should_epoch_stop.
-
#should_evaluate ⇒ Object
Returns the value of attribute should_evaluate.
-
#should_log ⇒ Object
Returns the value of attribute should_log.
-
#should_save ⇒ Object
Returns the value of attribute should_save.
-
#should_training_stop ⇒ Object
Returns the value of attribute should_training_stop.
Instance Method Summary collapse
-
#initialize ⇒ TrainerControl
constructor
A new instance of TrainerControl.
Constructor Details
#initialize ⇒ TrainerControl
Returns a new instance of TrainerControl.
25 26 27 28 29 30 31 |
# File 'lib/trainers/callbacks.rb', line 25 def initialize @should_training_stop = false @should_epoch_stop = false @should_save = false @should_evaluate = false @should_log = false end |
Instance Attribute Details
#should_epoch_stop ⇒ Object
Returns the value of attribute should_epoch_stop.
22 23 24 |
# File 'lib/trainers/callbacks.rb', line 22 def should_epoch_stop @should_epoch_stop end |
#should_evaluate ⇒ Object
Returns the value of attribute should_evaluate.
22 23 24 |
# File 'lib/trainers/callbacks.rb', line 22 def should_evaluate @should_evaluate end |
#should_log ⇒ Object
Returns the value of attribute should_log.
22 23 24 |
# File 'lib/trainers/callbacks.rb', line 22 def should_log @should_log end |
#should_save ⇒ Object
Returns the value of attribute should_save.
22 23 24 |
# File 'lib/trainers/callbacks.rb', line 22 def should_save @should_save end |
#should_training_stop ⇒ Object
Returns the value of attribute should_training_stop.
22 23 24 |
# File 'lib/trainers/callbacks.rb', line 22 def should_training_stop @should_training_stop end |