pub struct AdaptiveOperatorProvider { /* private fields */ }Expand description
適応的に Selection を切り替える Provider
| 状態 | Selection | 理由 |
|---|---|---|
| 初期(visits < threshold) | UCB1 | 未探索優先で広く探る |
| 成熟 + エラー率低 | Greedy | 成功パスを活用 |
| 成熟 + エラー率高 | Thompson | バランス重視 |
Implementations§
Source§impl AdaptiveOperatorProvider
impl AdaptiveOperatorProvider
Sourcepub fn new(
maturity_threshold: u32,
error_rate_threshold: f64,
ucb1_c: f64,
) -> Self
pub fn new( maturity_threshold: u32, error_rate_threshold: f64, ucb1_c: f64, ) -> Self
新しい AdaptiveOperatorProvider を作成
Sourcepub fn with_maturity_threshold(self, threshold: u32) -> Self
pub fn with_maturity_threshold(self, threshold: u32) -> Self
成熟閾値を設定
Sourcepub fn with_error_rate_threshold(self, threshold: f64) -> Self
pub fn with_error_rate_threshold(self, threshold: f64) -> Self
エラー率閾値を設定
Sourcepub fn with_ucb1_c(self, c: f64) -> Self
pub fn with_ucb1_c(self, c: f64) -> Self
UCB1 の探索係数を設定
Sourcepub fn current_selection(&self, stats: &SwarmStats) -> SelectionKind
pub fn current_selection(&self, stats: &SwarmStats) -> SelectionKind
現在の Selection 種別を取得(デバッグ用)
Trait Implementations§
Source§impl Clone for AdaptiveOperatorProvider
impl Clone for AdaptiveOperatorProvider
Source§fn clone(&self) -> AdaptiveOperatorProvider
fn clone(&self) -> AdaptiveOperatorProvider
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 AdaptiveOperatorProvider
impl Debug for AdaptiveOperatorProvider
Source§impl Default for AdaptiveOperatorProvider
impl Default for AdaptiveOperatorProvider
Source§impl<R> OperatorProvider<R> for AdaptiveOperatorProviderwhere
R: Rules + 'static,
impl<R> OperatorProvider<R> for AdaptiveOperatorProviderwhere
R: Rules + 'static,
Source§fn provide(
&self,
rules: R,
context: Option<&ProviderContext<'_, ActionNodeData, String, MapNodeState>>,
) -> ConfigurableOperator<R>
fn provide( &self, rules: R, context: Option<&ProviderContext<'_, ActionNodeData, String, MapNodeState>>, ) -> ConfigurableOperator<R>
Operator を構築
Source§fn reevaluate(
&self,
operator: &mut ConfigurableOperator<R>,
context: &ProviderContext<'_, ActionNodeData, String, MapNodeState>,
)
fn reevaluate( &self, operator: &mut ConfigurableOperator<R>, context: &ProviderContext<'_, ActionNodeData, String, MapNodeState>, )
Selection を再評価して切り替え
Auto Trait Implementations§
impl Freeze for AdaptiveOperatorProvider
impl RefUnwindSafe for AdaptiveOperatorProvider
impl Send for AdaptiveOperatorProvider
impl Sync for AdaptiveOperatorProvider
impl Unpin for AdaptiveOperatorProvider
impl UnwindSafe for AdaptiveOperatorProvider
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 more