pub struct CostRecommendation {
pub current_model: String,
pub recommended_model: String,
pub estimated_savings_usd: f64,
pub equivalent_score_fraction: f64,
pub candidate_aggregate_score: f64,
pub current_aggregate_score: f64,
}Expand description
A cost optimization recommendation: downgrade a model for a scenario subset.
Fields§
§current_model: StringCurrent model in use.
recommended_model: StringRecommended cheaper model.
estimated_savings_usd: f64Estimated savings per 1000 scenarios (USD).
equivalent_score_fraction: f64Fraction of scenarios where the cheaper model scored equivalently.
candidate_aggregate_score: f64Aggregate score of recommended model on the test scenarios.
current_aggregate_score: f64Aggregate score of current model on the same scenarios.
Trait Implementations§
Source§impl Clone for CostRecommendation
impl Clone for CostRecommendation
Source§fn clone(&self) -> CostRecommendation
fn clone(&self) -> CostRecommendation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CostRecommendation
impl Debug for CostRecommendation
Source§impl<'de> Deserialize<'de> for CostRecommendation
impl<'de> Deserialize<'de> for CostRecommendation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CostRecommendation
impl RefUnwindSafe for CostRecommendation
impl Send for CostRecommendation
impl Sync for CostRecommendation
impl Unpin for CostRecommendation
impl UnsafeUnpin for CostRecommendation
impl UnwindSafe for CostRecommendation
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