This commit is contained in:
学儿思 2024-06-17 23:27:32 +08:00 committed by GitHub
parent 51db18eea8
commit c9cf8af14d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ pub type AlwaysInterestingMapFeedback<C, O, T> = MapFeedback<C, AllIsNovel, O, N
/// but only, if a value is larger than `pow2` of the previous. /// but only, if a value is larger than `pow2` of the previous.
pub type MaxMapPow2Feedback<C, O, T> = MapFeedback<C, NextPow2IsNovel, O, MaxReducer, T>; pub type MaxMapPow2Feedback<C, O, T> = MapFeedback<C, NextPow2IsNovel, O, MaxReducer, T>;
/// A [`MapFeedback`] that strives to maximize the map contents, /// A [`MapFeedback`] that strives to maximize the map contents,
/// but only, if a value is larger than `pow2` of the previous. /// but only, if a value is either `T::one()` or `T::max_value()`.
pub type MaxMapOneOrFilledFeedback<C, O, T> = MapFeedback<C, OneOrFilledIsNovel, O, MaxReducer, T>; pub type MaxMapOneOrFilledFeedback<C, O, T> = MapFeedback<C, OneOrFilledIsNovel, O, MaxReducer, T>;
/// A `Reducer` function is used to aggregate values for the novelty search /// A `Reducer` function is used to aggregate values for the novelty search

View File

@ -568,7 +568,7 @@ where
R: Rand, R: Rand,
SC: Corpus<Input = <Self as UsesInput>::Input>, SC: Corpus<Input = <Self as UsesInput>::Input>,
{ {
/// Decide if the state nust load the inputs /// Decide if the state must load the inputs
pub fn must_load_initial_inputs(&self) -> bool { pub fn must_load_initial_inputs(&self) -> bool {
self.corpus().count() == 0 self.corpus().count() == 0
|| (self.remaining_initial_files.is_some() || (self.remaining_initial_files.is_some()