pub struct SeedDiscovery { /* private fields */ }Expand description
A seed discovery run — rapid iteration to find optimal parameters
Implementations§
Source§impl SeedDiscovery
impl SeedDiscovery
pub fn new(role: &str) -> Self
Sourcepub fn run_iteration(
&mut self,
params: TileParams,
trajectory: &[(f64, f64)],
) -> IterationScore
pub fn run_iteration( &mut self, params: TileParams, trajectory: &[(f64, f64)], ) -> IterationScore
Run a single seed iteration with given parameters on a trajectory.
The trajectory is a series of (x, y) sensor readings. The evaluation scores how well the agent handles the trajectory.
Sourcepub fn run_sweep(&mut self, trajectory: &[(f64, f64)], n_variations: usize)
pub fn run_sweep(&mut self, trajectory: &[(f64, f64)], n_variations: usize)
Run a sweep of parameter variations (the seed experimentation).
Generates parameter variations around the current best and evaluates them.
Sourcepub fn crystallize(&self) -> DiscoveryTile
pub fn crystallize(&self) -> DiscoveryTile
Crystallize the discovered pattern into a tile.
This is the key operation: extract the inner logic from the iteration history and compress it into a self-contained tile that can condition future models.
Auto Trait Implementations§
impl Freeze for SeedDiscovery
impl RefUnwindSafe for SeedDiscovery
impl Send for SeedDiscovery
impl Sync for SeedDiscovery
impl Unpin for SeedDiscovery
impl UnsafeUnpin for SeedDiscovery
impl UnwindSafe for SeedDiscovery
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