pub struct RandomShootingConfig {
pub num_candidates: usize,
pub num_iterations: usize,
pub num_elites: usize,
pub init_std: f64,
}Expand description
Configuration for the random-shooting planner (CEM-style).
§Example
use jepa_world::planner::RandomShootingConfig;
let config = RandomShootingConfig {
num_candidates: 128,
num_iterations: 10,
num_elites: 16,
init_std: 2.0,
};
assert_eq!(config.num_candidates, 128);
// Default configuration is also available:
let default = RandomShootingConfig::default();
assert_eq!(default.num_candidates, 64);Fields§
§num_candidates: usizeNumber of candidate action sequences to sample per iteration.
num_iterations: usizeNumber of optimization iterations.
num_elites: usizeNumber of top candidates to keep (elite set) for refining the distribution.
init_std: f64Initial standard deviation for action sampling.
Implementations§
Source§impl RandomShootingConfig
impl RandomShootingConfig
Sourcepub fn validate(&self) -> Result<(), PlanningError>
pub fn validate(&self) -> Result<(), PlanningError>
Validate the planner configuration.
Trait Implementations§
Source§impl Clone for RandomShootingConfig
impl Clone for RandomShootingConfig
Source§fn clone(&self) -> RandomShootingConfig
fn clone(&self) -> RandomShootingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RandomShootingConfig
impl Debug for RandomShootingConfig
Auto Trait Implementations§
impl Freeze for RandomShootingConfig
impl RefUnwindSafe for RandomShootingConfig
impl Send for RandomShootingConfig
impl Sync for RandomShootingConfig
impl Unpin for RandomShootingConfig
impl UnsafeUnpin for RandomShootingConfig
impl UnwindSafe for RandomShootingConfig
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