pub struct CandidateInfo {Show 14 fields
pub candidate_id: String,
pub accuracy: Option<f64>,
pub objectives: Option<HashMap<String, f64>>,
pub val_accuracy: Option<f64>,
pub train_accuracy: Option<f64>,
pub generation: Option<i32>,
pub parent_id: Option<String>,
pub is_pareto: bool,
pub accepted: bool,
pub mutation_type: Option<String>,
pub token_usage: Option<TokenUsage>,
pub cost_usd: Option<f64>,
pub timestamp: f64,
pub timestamp_ms: Option<i64>,
}Expand description
Information about a single candidate.
Fields§
§candidate_id: StringUnique candidate ID
accuracy: Option<f64>Accuracy/score on training set
objectives: Option<HashMap<String, f64>>Multi-objective scores
val_accuracy: Option<f64>Validation accuracy (if validation phase completed)
train_accuracy: Option<f64>Training accuracy (alias for accuracy)
generation: Option<i32>Generation number
parent_id: Option<String>Parent candidate ID (for mutations)
is_pareto: boolWhether on Pareto frontier
accepted: boolWhether accepted into population
mutation_type: Option<String>Type of mutation used
token_usage: Option<TokenUsage>Token usage for this candidate
cost_usd: Option<f64>Cost in USD
timestamp: f64Unix timestamp when evaluated
timestamp_ms: Option<i64>Timestamp in milliseconds
Trait Implementations§
Source§impl Clone for CandidateInfo
impl Clone for CandidateInfo
Source§fn clone(&self) -> CandidateInfo
fn clone(&self) -> CandidateInfo
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 CandidateInfo
impl Debug for CandidateInfo
Source§impl Default for CandidateInfo
impl Default for CandidateInfo
Source§fn default() -> CandidateInfo
fn default() -> CandidateInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CandidateInfo
impl<'de> Deserialize<'de> for CandidateInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CandidateInfo
impl Serialize for CandidateInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CandidateInfo
impl RefUnwindSafe for CandidateInfo
impl Send for CandidateInfo
impl Sync for CandidateInfo
impl Unpin for CandidateInfo
impl UnwindSafe for CandidateInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request