pub struct CreateFineTuneRequest<'a> {
pub batch_size: Option<i64>,
pub classification_betas: Option<Vec<f64>>,
pub classification_n_classes: Option<i64>,
pub classification_positive_class: Option<String>,
pub compute_classification_metrics: Option<bool>,
pub learning_rate_multiplier: Option<f64>,
pub model: Option<String>,
pub n_epochs: Option<i64>,
pub prompt_loss_weight: Option<f64>,
pub suffix: Option<String>,
pub training_file: String,
pub validation_file: Option<String>,
/* private fields */
}
Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§batch_size: Option<i64>
§classification_betas: Option<Vec<f64>>
§classification_n_classes: Option<i64>
§classification_positive_class: Option<String>
§compute_classification_metrics: Option<bool>
§learning_rate_multiplier: Option<f64>
§model: Option<String>
§n_epochs: Option<i64>
§prompt_loss_weight: Option<f64>
§suffix: Option<String>
§training_file: String
§validation_file: Option<String>
Implementations§
Source§impl<'a> CreateFineTuneRequest<'a>
impl<'a> CreateFineTuneRequest<'a>
pub async fn send(self) -> InMemoryResult<FineTune>
pub fn batch_size(self, batch_size: i64) -> Self
pub fn classification_betas(self, classification_betas: Vec<f64>) -> Self
pub fn classification_n_classes(self, classification_n_classes: i64) -> Self
pub fn classification_positive_class( self, classification_positive_class: &str, ) -> Self
pub fn compute_classification_metrics( self, compute_classification_metrics: bool, ) -> Self
pub fn learning_rate_multiplier(self, learning_rate_multiplier: f64) -> Self
pub fn model(self, model: &str) -> Self
pub fn n_epochs(self, n_epochs: i64) -> Self
pub fn prompt_loss_weight(self, prompt_loss_weight: f64) -> Self
pub fn suffix(self, suffix: &str) -> Self
pub fn validation_file(self, validation_file: &str) -> Self
Trait Implementations§
Source§impl<'a> Clone for CreateFineTuneRequest<'a>
impl<'a> Clone for CreateFineTuneRequest<'a>
Source§fn clone(&self) -> CreateFineTuneRequest<'a>
fn clone(&self) -> CreateFineTuneRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> IntoFuture for CreateFineTuneRequest<'a>
impl<'a> IntoFuture for CreateFineTuneRequest<'a>
Source§type Output = Result<FineTune, Error<InMemoryBody>>
type Output = Result<FineTune, Error<InMemoryBody>>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateFineTuneRequest<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateFineTuneRequest<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for CreateFineTuneRequest<'a>
impl<'a> !RefUnwindSafe for CreateFineTuneRequest<'a>
impl<'a> Send for CreateFineTuneRequest<'a>
impl<'a> Sync for CreateFineTuneRequest<'a>
impl<'a> Unpin for CreateFineTuneRequest<'a>
impl<'a> !UnwindSafe for CreateFineTuneRequest<'a>
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