pub struct GatingThresholds {
pub high_threshold: f64,
pub low_threshold: f64,
pub top_margin_threshold: f64,
pub ood_enabled: bool,
pub energy_threshold: f64,
pub energy_temperature: Option<f64>,
pub loose_energy_threshold: Option<f64>,
pub ood_min_confidence: Option<f64>,
pub ood_min_margin: Option<f64>,
}Expand description
ゲーティング判定用閾値設定構造体。
Fields§
§high_threshold: f64高確信度下限閾値 (自動実行境界)。
low_threshold: f64中確信度下限閾値 (確認要求境界)。
top_margin_threshold: f64上位2候補確率マージン閾値。
ood_enabled: boolOOD 安全弁を有効化するかどうか (デフォルト: true)。
energy_threshold: f64OOD 判定用の正規化自由エネルギー閾値 (デフォルト: -1.0)。
energy_temperature: Option<f64>OOD 自由エネルギー算出専用の温度パラメータ。
Softmax 確率較正温度とは独立に、低発火・高コントラストな自由エネルギーを算出するために使用する。 未指定時は各バケットの Softmax 温度にフォールバックする。
loose_energy_threshold: Option<f64>ハイブリッド OOD 判定用の緩和正規化自由エネルギー閾値 (任意)。
ood_min_confidence: Option<f64>ハイブリッド OOD 判定用の最小確信度閾値 (任意)。
ood_min_margin: Option<f64>ハイブリッド OOD 判定用の最小マージン閾値 (任意)。
Implementations§
Source§impl GatingThresholds
impl GatingThresholds
Sourcepub fn to_gating_config(&self, enabled: bool) -> GatingConfig
pub fn to_gating_config(&self, enabled: bool) -> GatingConfig
Trait Implementations§
Source§impl Clone for GatingThresholds
impl Clone for GatingThresholds
Source§fn clone(&self) -> GatingThresholds
fn clone(&self) -> GatingThresholds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GatingThresholds
impl Debug for GatingThresholds
Source§impl Default for GatingThresholds
impl Default for GatingThresholds
Source§impl<'de> Deserialize<'de> for GatingThresholds
impl<'de> Deserialize<'de> for GatingThresholds
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
Source§impl PartialEq for GatingThresholds
impl PartialEq for GatingThresholds
Source§impl Serialize for GatingThresholds
impl Serialize for GatingThresholds
impl StructuralPartialEq for GatingThresholds
Auto Trait Implementations§
impl Freeze for GatingThresholds
impl RefUnwindSafe for GatingThresholds
impl Send for GatingThresholds
impl Sync for GatingThresholds
impl Unpin for GatingThresholds
impl UnsafeUnpin for GatingThresholds
impl UnwindSafe for GatingThresholds
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