pub struct CodexPipeline { /* private fields */ }Expand description
CODEX pipeline orchestrator
Implementations§
Source§impl CodexPipeline
impl CodexPipeline
Sourcepub fn new(config: PipelineConfig) -> Self
pub fn new(config: PipelineConfig) -> Self
Create new pipeline with config
Sourcepub fn config(&self) -> &PipelineConfig
pub fn config(&self) -> &PipelineConfig
Get configuration
Sourcepub fn stats(&self) -> &PipelineStats
pub fn stats(&self) -> &PipelineStats
Get statistics
Sourcepub fn filter_quality<'a>(
&mut self,
codes: &'a [GeneratedCode],
) -> (Vec<&'a GeneratedCode>, StageResult)
pub fn filter_quality<'a>( &mut self, codes: &'a [GeneratedCode], ) -> (Vec<&'a GeneratedCode>, StageResult)
Stage 1: Filter by quality gate
Sourcepub fn prioritize_defects<'a>(
&self,
codes: &'a [&GeneratedCode],
) -> (Vec<&'a GeneratedCode>, StageResult)
pub fn prioritize_defects<'a>( &self, codes: &'a [&GeneratedCode], ) -> (Vec<&'a GeneratedCode>, StageResult)
Stage 2: Prioritize by defect likelihood
Sourcepub fn sample_active<'a>(
&mut self,
codes: &'a [&GeneratedCode],
) -> (Vec<&'a GeneratedCode>, StageResult)
pub fn sample_active<'a>( &mut self, codes: &'a [&GeneratedCode], ) -> (Vec<&'a GeneratedCode>, StageResult)
Stage 3: Sample via active learning
Sourcepub fn prepare(
&mut self,
codes: &[GeneratedCode],
) -> (Vec<PreparedSample>, Vec<StageResult>)
pub fn prepare( &mut self, codes: &[GeneratedCode], ) -> (Vec<PreparedSample>, Vec<StageResult>)
Prepare samples for oracle (all stages)
Sourcepub fn update_feedback(&mut self, code: &str, revealed_bug: bool)
pub fn update_feedback(&mut self, code: &str, revealed_bug: bool)
Update from oracle feedback
Sourcepub fn compute_quality(&self, labels: &[RichLabel]) -> DataQualityMetrics
pub fn compute_quality(&self, labels: &[RichLabel]) -> DataQualityMetrics
Compute data quality metrics
Sourcepub fn run_dry(&mut self, codes: &[GeneratedCode]) -> PipelineResult
pub fn run_dry(&mut self, codes: &[GeneratedCode]) -> PipelineResult
Run full pipeline (without actual oracle - for testing)
Trait Implementations§
Source§impl Debug for CodexPipeline
impl Debug for CodexPipeline
Auto Trait Implementations§
impl Freeze for CodexPipeline
impl RefUnwindSafe for CodexPipeline
impl Send for CodexPipeline
impl Sync for CodexPipeline
impl Unpin for CodexPipeline
impl UnsafeUnpin for CodexPipeline
impl UnwindSafe for CodexPipeline
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> 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 more