pub struct TransferLearning { /* private fields */ }Expand description
Transfer learning for warm-start across similar problems
Implementations§
Source§impl TransferLearning
impl TransferLearning
pub fn new(similarity_threshold: f64) -> Self
Sourcepub fn add_problem_history(
&mut self,
problem_id: String,
history: OptimizationHistory,
)
pub fn add_problem_history( &mut self, problem_id: String, history: OptimizationHistory, )
Add history from a solved problem
Sourcepub fn get_transfer_recommendations(
&self,
problem_signature: &str,
n_recommendations: usize,
) -> Vec<ParameterValue>
pub fn get_transfer_recommendations( &self, problem_signature: &str, n_recommendations: usize, ) -> Vec<ParameterValue>
Get transfer learning recommendations for a new problem
Auto Trait Implementations§
impl Freeze for TransferLearning
impl RefUnwindSafe for TransferLearning
impl Send for TransferLearning
impl Sync for TransferLearning
impl Unpin for TransferLearning
impl UnwindSafe for TransferLearning
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> 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 more