Class: Wandb::XGBoostCallback::Opts
- Inherits:
-
Object
- Object
- Wandb::XGBoostCallback::Opts
- Defined in:
- lib/wandb/xgboost_callback.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #default(key, default) ⇒ Object
-
#initialize(options = {}) ⇒ Opts
constructor
A new instance of Opts.
Constructor Details
#initialize(options = {}) ⇒ Opts
14 15 16 |
# File 'lib/wandb/xgboost_callback.rb', line 14 def initialize( = {}) = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/wandb/xgboost_callback.rb', line 12 def end |
Instance Method Details
#default(key, default) ⇒ Object
18 19 20 |
# File 'lib/wandb/xgboost_callback.rb', line 18 def default(key, default) .key?(key) ? [key] : default end |