pub enum AndStrategy {
Product,
Min,
ProbabilisticSum,
Godel,
ProductTNorm,
Lukasiewicz,
}Expand description
Strategy for compiling AND operations.
Variants§
Product
Hadamard product (element-wise multiplication): a * b
- Differentiable, efficient
- Soft semantics (values in [0,1])
Min
Minimum: min(a, b)
- Hard semantics (preserves Boolean values)
- Not differentiable at equality points
ProbabilisticSum
Probabilistic product: a + b - a*b
- Alternative soft semantics
- Differentiable
Godel
Gödel t-norm: min(a, b)
- Same as Min but explicit fuzzy logic semantics
ProductTNorm
Product t-norm: a * b
- Same as Product but explicit fuzzy logic semantics
Lukasiewicz
Łukasiewicz t-norm: max(0, a + b - 1)
- Strict t-norm
- Differentiable
Trait Implementations§
Source§impl Clone for AndStrategy
impl Clone for AndStrategy
Source§fn clone(&self) -> AndStrategy
fn clone(&self) -> AndStrategy
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 AndStrategy
impl Debug for AndStrategy
Source§impl<'de> Deserialize<'de> for AndStrategy
impl<'de> Deserialize<'de> for AndStrategy
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 AndStrategy
impl PartialEq for AndStrategy
Source§impl Serialize for AndStrategy
impl Serialize for AndStrategy
impl Copy for AndStrategy
impl Eq for AndStrategy
impl StructuralPartialEq for AndStrategy
Auto Trait Implementations§
impl Freeze for AndStrategy
impl RefUnwindSafe for AndStrategy
impl Send for AndStrategy
impl Sync for AndStrategy
impl Unpin for AndStrategy
impl UnwindSafe for AndStrategy
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.