Class: DSPy::Teleprompt::Utils::BootstrapConfig
- Inherits:
-
Object
- Object
- DSPy::Teleprompt::Utils::BootstrapConfig
- Extended by:
- T::Sig
- Defined in:
- lib/dspy/teleprompt/utils.rb
Overview
Configuration for bootstrap operations
Instance Attribute Summary collapse
-
#max_bootstrapped_examples ⇒ Object
Returns the value of attribute max_bootstrapped_examples.
-
#max_errors ⇒ Object
Returns the value of attribute max_errors.
-
#max_labeled_examples ⇒ Object
Returns the value of attribute max_labeled_examples.
-
#minibatch_size ⇒ Object
Returns the value of attribute minibatch_size.
-
#num_candidate_sets ⇒ Object
Returns the value of attribute num_candidate_sets.
-
#num_threads ⇒ Object
Returns the value of attribute num_threads.
-
#success_threshold ⇒ Object
Returns the value of attribute success_threshold.
Instance Method Summary collapse
-
#initialize ⇒ BootstrapConfig
constructor
A new instance of BootstrapConfig.
Constructor Details
#initialize ⇒ BootstrapConfig
Returns a new instance of BootstrapConfig.
41 42 43 44 45 46 47 48 49 |
# File 'lib/dspy/teleprompt/utils.rb', line 41 def initialize @max_bootstrapped_examples = 4 @max_labeled_examples = 16 @num_candidate_sets = 10 @max_errors = 5 @num_threads = 1 @success_threshold = 0.8 @minibatch_size = 50 end |
Instance Attribute Details
#max_bootstrapped_examples ⇒ Object
Returns the value of attribute max_bootstrapped_examples.
20 21 22 |
# File 'lib/dspy/teleprompt/utils.rb', line 20 def max_bootstrapped_examples @max_bootstrapped_examples end |
#max_errors ⇒ Object
Returns the value of attribute max_errors.
29 30 31 |
# File 'lib/dspy/teleprompt/utils.rb', line 29 def max_errors @max_errors end |
#max_labeled_examples ⇒ Object
Returns the value of attribute max_labeled_examples.
23 24 25 |
# File 'lib/dspy/teleprompt/utils.rb', line 23 def max_labeled_examples @max_labeled_examples end |
#minibatch_size ⇒ Object
Returns the value of attribute minibatch_size.
38 39 40 |
# File 'lib/dspy/teleprompt/utils.rb', line 38 def minibatch_size @minibatch_size end |
#num_candidate_sets ⇒ Object
Returns the value of attribute num_candidate_sets.
26 27 28 |
# File 'lib/dspy/teleprompt/utils.rb', line 26 def num_candidate_sets @num_candidate_sets end |
#num_threads ⇒ Object
Returns the value of attribute num_threads.
32 33 34 |
# File 'lib/dspy/teleprompt/utils.rb', line 32 def num_threads @num_threads end |
#success_threshold ⇒ Object
Returns the value of attribute success_threshold.
35 36 37 |
# File 'lib/dspy/teleprompt/utils.rb', line 35 def success_threshold @success_threshold end |