pub struct DBSCAN {
pub eps: f64,
pub min_samples: usize,
pub metric: DistanceMetric,
pub labels: Option<Vec<i32>>,
pub feature_columns: Option<Vec<String>>,
}Expand description
Density-Based Spatial Clustering of Applications with Noise (DBSCAN)
Fields§
§eps: f64Neighborhood radius epsilon
min_samples: usizeMinimum number of points to form a core point
metric: DistanceMetricDistance metric
labels: Option<Vec<i32>>Cluster assignments for each sample (-1 for noise points)
feature_columns: Option<Vec<String>>Feature columns used for clustering
Implementations§
Source§impl DBSCAN
impl DBSCAN
Sourcepub fn with_metric(self, metric: DistanceMetric) -> Self
pub fn with_metric(self, metric: DistanceMetric) -> Self
Set distance metric
Sourcepub fn with_columns(self, columns: Vec<String>) -> Self
pub fn with_columns(self, columns: Vec<String>) -> Self
Specify feature columns to use
Trait Implementations§
Source§impl ModelEvaluator for DBSCAN
impl ModelEvaluator for DBSCAN
Source§impl UnsupervisedModel for DBSCAN
impl UnsupervisedModel for DBSCAN
Auto Trait Implementations§
impl Freeze for DBSCAN
impl RefUnwindSafe for DBSCAN
impl Send for DBSCAN
impl Sync for DBSCAN
impl Unpin for DBSCAN
impl UnwindSafe for DBSCAN
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