pub struct SimplePromptOptimizerConfig {
pub num_iterations: usize,
pub batch_size: usize,
}Expand description
Configuration for the simple prompt optimizer.
Fields§
§num_iterations: usizeNumber of optimization iterations.
batch_size: usizeNumber of training examples per evaluation batch.
Trait Implementations§
Source§impl Clone for SimplePromptOptimizerConfig
impl Clone for SimplePromptOptimizerConfig
Source§fn clone(&self) -> SimplePromptOptimizerConfig
fn clone(&self) -> SimplePromptOptimizerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplePromptOptimizerConfig
impl Debug for SimplePromptOptimizerConfig
Auto Trait Implementations§
impl Freeze for SimplePromptOptimizerConfig
impl RefUnwindSafe for SimplePromptOptimizerConfig
impl Send for SimplePromptOptimizerConfig
impl Sync for SimplePromptOptimizerConfig
impl Unpin for SimplePromptOptimizerConfig
impl UnsafeUnpin for SimplePromptOptimizerConfig
impl UnwindSafe for SimplePromptOptimizerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more