pub struct DecoderPipeline { /* private fields */ }Expand description
End-to-end decoder pipeline that ensembles multiple decoding strategies.
Combines KNN, threshold, and transition decoders with configurable ensemble weights, and optionally includes clinical scoring.
Implementations§
Source§impl DecoderPipeline
impl DecoderPipeline
Sourcepub fn with_thresholds(self) -> Self
pub fn with_thresholds(self) -> Self
Add a threshold decoder to the pipeline.
Sourcepub fn with_transitions(self, window: usize) -> Self
pub fn with_transitions(self, window: usize) -> Self
Add a transition decoder to the pipeline.
Sourcepub fn with_clinical(
self,
baseline: TopologyMetrics,
std: TopologyMetrics,
) -> Self
pub fn with_clinical( self, baseline: TopologyMetrics, std: TopologyMetrics, ) -> Self
Add a clinical scorer to the pipeline.
Sourcepub fn with_weights(self, weights: [f64; 3]) -> Self
pub fn with_weights(self, weights: [f64; 3]) -> Self
Set custom ensemble weights for [knn, threshold, transition].
Sourcepub fn knn_mut(&mut self) -> Option<&mut KnnDecoder>
pub fn knn_mut(&mut self) -> Option<&mut KnnDecoder>
Get a mutable reference to the KNN decoder (for training).
Sourcepub fn threshold_mut(&mut self) -> Option<&mut ThresholdDecoder>
pub fn threshold_mut(&mut self) -> Option<&mut ThresholdDecoder>
Get a mutable reference to the threshold decoder (for configuring thresholds).
Sourcepub fn transition_mut(&mut self) -> Option<&mut TransitionDecoder>
pub fn transition_mut(&mut self) -> Option<&mut TransitionDecoder>
Get a mutable reference to the transition decoder (for registering patterns).
Sourcepub fn clinical_mut(&mut self) -> Option<&mut ClinicalScorer>
pub fn clinical_mut(&mut self) -> Option<&mut ClinicalScorer>
Get a mutable reference to the clinical scorer.
Sourcepub fn decode(
&mut self,
embedding: &NeuralEmbedding,
metrics: &TopologyMetrics,
) -> DecoderOutput
pub fn decode( &mut self, embedding: &NeuralEmbedding, metrics: &TopologyMetrics, ) -> DecoderOutput
Run the full decoding pipeline on an embedding and topology metrics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecoderPipeline
impl RefUnwindSafe for DecoderPipeline
impl Send for DecoderPipeline
impl Sync for DecoderPipeline
impl Unpin for DecoderPipeline
impl UnsafeUnpin for DecoderPipeline
impl UnwindSafe for DecoderPipeline
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