MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / should_delete

Method should_delete

src/feedback/schedule.rs:135–140  ·  view source on GitHub ↗
(&self, succ_rate: f32)

Source from the content-addressed store, hash-verified

133 }
134
135 pub fn should_delete(&self, succ_rate: f32) -> bool {
136 let threshold = 0.1_f32;
137 let steepness = 10_f32;
138 let delete_prob = 1_f32 - sigmoid_function(succ_rate, threshold, steepness);
139 prob_coin(delete_prob)
140 }
141
142 pub fn should_shuffle(&self, succ: usize, total: usize) -> bool {
143 // we expect per 20 programs should have a succ one.

Callers

nothing calls this directly

Calls 2

sigmoid_functionFunction · 0.85
prob_coinFunction · 0.85

Tested by

no test coverage detected