pub struct SpatialValidationConfig {
pub n_splits: usize,
pub buffer_distance: f64,
pub distance_method: DistanceMethod,
pub clustering_method: SpatialClusteringMethod,
pub random_state: Option<u64>,
pub geographic: bool,
}Expand description
Configuration for spatial cross-validation
Fields§
§n_splits: usizeNumber of folds for cross-validation
buffer_distance: f64Minimum distance between training and test samples
distance_method: DistanceMethodMethod for distance calculation
clustering_method: SpatialClusteringMethodClustering method for spatial grouping
random_state: Option<u64>Random state for reproducible results
geographic: boolWhether to use geographic coordinates (lat/lon)
Trait Implementations§
Source§impl Clone for SpatialValidationConfig
impl Clone for SpatialValidationConfig
Source§fn clone(&self) -> SpatialValidationConfig
fn clone(&self) -> SpatialValidationConfig
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 SpatialValidationConfig
impl Debug for SpatialValidationConfig
Auto Trait Implementations§
impl Freeze for SpatialValidationConfig
impl RefUnwindSafe for SpatialValidationConfig
impl Send for SpatialValidationConfig
impl Sync for SpatialValidationConfig
impl Unpin for SpatialValidationConfig
impl UnwindSafe for SpatialValidationConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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