Module: DSPy::Teleprompt::MIPROv2::AutoMode
- Extended by:
- T::Sig
- Defined in:
- lib/dspy/teleprompt/mipro_v2.rb
Overview
Auto-configuration modes for different optimization needs
Class Method Summary collapse
- .heavy(metric: nil, **kwargs) ⇒ Object
- .light(metric: nil, **kwargs) ⇒ Object
- .medium(metric: nil, **kwargs) ⇒ Object
Class Method Details
.heavy(metric: nil, **kwargs) ⇒ Object
133 134 135 136 137 138 139 |
# File 'lib/dspy/teleprompt/mipro_v2.rb', line 133 def self.heavy(metric: nil, **kwargs) optimizer = MIPROv2.new(metric: metric, **kwargs) optimizer.configure do |config| MIPROv2.apply_auto_defaults(config, AutoPreset::Heavy) end optimizer end |
.light(metric: nil, **kwargs) ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/dspy/teleprompt/mipro_v2.rb', line 105 def self.light(metric: nil, **kwargs) optimizer = MIPROv2.new(metric: metric, **kwargs) optimizer.configure do |config| MIPROv2.apply_auto_defaults(config, AutoPreset::Light) end optimizer end |
.medium(metric: nil, **kwargs) ⇒ Object
119 120 121 122 123 124 125 |
# File 'lib/dspy/teleprompt/mipro_v2.rb', line 119 def self.medium(metric: nil, **kwargs) optimizer = MIPROv2.new(metric: metric, **kwargs) optimizer.configure do |config| MIPROv2.apply_auto_defaults(config, AutoPreset::Medium) end optimizer end |