#[non_exhaustive]pub struct SupervisedTuningDatasetDistribution {
pub sum: i64,
pub billable_sum: i64,
pub min: f64,
pub max: f64,
pub mean: f64,
pub median: f64,
pub p5: f64,
pub p95: f64,
pub buckets: Vec<DatasetBucket>,
/* private fields */
}Available on crate feature
gen-ai-tuning-service only.Expand description
Dataset distribution for Supervised Tuning.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sum: i64Output only. Sum of a given population of values.
billable_sum: i64Output only. Sum of a given population of values that are billable.
min: f64Output only. The minimum of the population values.
max: f64Output only. The maximum of the population values.
mean: f64Output only. The arithmetic mean of the values in the population.
median: f64Output only. The median of the values in the population.
p5: f64Output only. The 5th percentile of the values in the population.
p95: f64Output only. The 95th percentile of the values in the population.
buckets: Vec<DatasetBucket>Output only. Defines the histogram bucket.
Implementations§
Source§impl SupervisedTuningDatasetDistribution
impl SupervisedTuningDatasetDistribution
pub fn new() -> Self
Sourcepub fn set_billable_sum<T: Into<i64>>(self, v: T) -> Self
pub fn set_billable_sum<T: Into<i64>>(self, v: T) -> Self
Sets the value of billable_sum.
§Example
ⓘ
let x = SupervisedTuningDatasetDistribution::new().set_billable_sum(42);Sourcepub fn set_median<T: Into<f64>>(self, v: T) -> Self
pub fn set_median<T: Into<f64>>(self, v: T) -> Self
Sourcepub fn set_buckets<T, V>(self, v: T) -> Self
pub fn set_buckets<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SupervisedTuningDatasetDistribution
impl Clone for SupervisedTuningDatasetDistribution
Source§fn clone(&self) -> SupervisedTuningDatasetDistribution
fn clone(&self) -> SupervisedTuningDatasetDistribution
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 Default for SupervisedTuningDatasetDistribution
impl Default for SupervisedTuningDatasetDistribution
Source§fn default() -> SupervisedTuningDatasetDistribution
fn default() -> SupervisedTuningDatasetDistribution
Returns the “default value” for a type. Read more
Source§impl PartialEq for SupervisedTuningDatasetDistribution
impl PartialEq for SupervisedTuningDatasetDistribution
Source§fn eq(&self, other: &SupervisedTuningDatasetDistribution) -> bool
fn eq(&self, other: &SupervisedTuningDatasetDistribution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SupervisedTuningDatasetDistribution
Auto Trait Implementations§
impl Freeze for SupervisedTuningDatasetDistribution
impl RefUnwindSafe for SupervisedTuningDatasetDistribution
impl Send for SupervisedTuningDatasetDistribution
impl Sync for SupervisedTuningDatasetDistribution
impl Unpin for SupervisedTuningDatasetDistribution
impl UnwindSafe for SupervisedTuningDatasetDistribution
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