pub enum ReweightScale {
Local,
GlobalMean,
NeighbourhoodMean,
}Expand description
Which scale weight EnvelopeReweightPolicy lowers an activated edge to.
Variants§
Local
The edge’s own prior combined with the probability a loss activates it.
GlobalMean
The mean weight of the graph’s regular edges – the reference construction, kept for comparison.
NeighbourhoodMean
The mean weight of the regular edges adjacent to the activated edge: the reference’s semantics without a graph-wide statistic.
Trait Implementations§
Source§impl Clone for ReweightScale
impl Clone for ReweightScale
impl Copy for ReweightScale
Source§impl Debug for ReweightScale
impl Debug for ReweightScale
Source§impl Default for ReweightScale
impl Default for ReweightScale
Source§impl<'de> Deserialize<'de> for ReweightScale
impl<'de> Deserialize<'de> for ReweightScale
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
impl Eq for ReweightScale
Source§impl PartialEq for ReweightScale
impl PartialEq for ReweightScale
Source§impl Serialize for ReweightScale
impl Serialize for ReweightScale
impl StructuralPartialEq for ReweightScale
Auto Trait Implementations§
impl Forget for ReweightScale
impl Freeze for ReweightScale
impl Move for ReweightScale
impl RefUnwindSafe for ReweightScale
impl Send for ReweightScale
impl Sync for ReweightScale
impl Unpin for ReweightScale
impl UnsafeUnpin for ReweightScale
impl UnwindSafe for ReweightScale
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request