pub enum OrStrategy {
Max,
ProbabilisticSum,
Godel,
ProbabilisticSNorm,
Lukasiewicz,
}Expand description
Strategy for compiling OR operations.
Variants§
Max
Maximum: max(a, b)
- Hard semantics
- Not differentiable at equality points
ProbabilisticSum
Probabilistic sum: a + b - a*b
- Soft semantics
- Differentiable
Godel
Gödel s-norm: max(a, b)
- Same as Max but explicit fuzzy logic semantics
ProbabilisticSNorm
Probabilistic s-norm: a + b - a*b
- Same as ProbabilisticSum but explicit fuzzy logic semantics
Lukasiewicz
Łukasiewicz s-norm: min(1, a + b)
- Dual of Łukasiewicz t-norm
- Differentiable
Trait Implementations§
Source§impl Clone for OrStrategy
impl Clone for OrStrategy
Source§fn clone(&self) -> OrStrategy
fn clone(&self) -> OrStrategy
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 OrStrategy
impl Debug for OrStrategy
Source§impl<'de> Deserialize<'de> for OrStrategy
impl<'de> Deserialize<'de> for OrStrategy
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 OrStrategy
impl PartialEq for OrStrategy
Source§impl Serialize for OrStrategy
impl Serialize for OrStrategy
impl Copy for OrStrategy
impl Eq for OrStrategy
impl StructuralPartialEq for OrStrategy
Auto Trait Implementations§
impl Freeze for OrStrategy
impl RefUnwindSafe for OrStrategy
impl Send for OrStrategy
impl Sync for OrStrategy
impl Unpin for OrStrategy
impl UnwindSafe for OrStrategy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.