pub struct Study {
pub id: String,
pub name: String,
pub search_space: SearchSpace,
pub strategy: SearchStrategy,
pub pruning: PruningStrategy,
pub objectives: Vec<Objective>,
pub trials: Vec<Trial>,
pub frozen: HashMap<String, Value>,
}Expand description
An optimization study: orchestrates multiple trials.
Fields§
§id: String§name: String§search_space: SearchSpace§strategy: SearchStrategy§pruning: PruningStrategy§objectives: Vec<Objective>§trials: Vec<Trial>§frozen: HashMap<String, Value>Implementations§
Source§impl Study
impl Study
pub fn new( name: impl Into<String>, search_space: SearchSpace, strategy: SearchStrategy, objectives: Vec<Objective>, ) -> Self
pub fn with_pruning(self, pruning: PruningStrategy) -> Self
Sourcepub fn completed_trials(&self) -> Vec<&Trial>
pub fn completed_trials(&self) -> Vec<&Trial>
Get completed trials.
Sourcepub fn best_trial(&self) -> Option<&Trial>
pub fn best_trial(&self) -> Option<&Trial>
Get the best trial for the primary objective.
Sourcepub fn total_trials(&self) -> Option<usize>
pub fn total_trials(&self) -> Option<usize>
Number of total planned trials (if known).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Study
impl<'de> Deserialize<'de> for Study
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 Study
impl RefUnwindSafe for Study
impl Send for Study
impl Sync for Study
impl Unpin for Study
impl UnsafeUnpin for Study
impl UnwindSafe for Study
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