pub struct DBSCAN { /* private fields */ }
Expand description
DBSCAN Model
Implements clustering using the DBSCAN algorithm
via the UnSupModel
trait.
Implementations
sourceimpl DBSCAN
impl DBSCAN
sourcepub fn new(eps: f64, min_points: usize) -> DBSCAN
pub fn new(eps: f64, min_points: usize) -> DBSCAN
Create a new DBSCAN model with a given distance episilon and minimum points per cluster.
sourcepub fn set_predictive(&mut self, predictive: bool)
pub fn set_predictive(&mut self, predictive: bool)
Set predictive to true if the model is to be used to classify future points.
If the model is set as predictive then the input data will be cloned during training.
Trait Implementations
sourceimpl Default for DBSCAN
impl Default for DBSCAN
Constructs a non-predictive DBSCAN model with the following parameters:
eps
:0.5
min_points
:5
sourceimpl UnSupModel<Matrix<f64>, Vector<Option<usize>>> for DBSCAN
impl UnSupModel<Matrix<f64>, Vector<Option<usize>>> for DBSCAN
sourcefn train(&mut self, inputs: &Matrix<f64>) -> LearningResult<()>
fn train(&mut self, inputs: &Matrix<f64>) -> LearningResult<()>
Train the classifier using input data.
sourcefn predict(&self, inputs: &Matrix<f64>) -> LearningResult<Vector<Option<usize>>>
fn predict(&self, inputs: &Matrix<f64>) -> LearningResult<Vector<Option<usize>>>
Predict output from inputs.
Auto Trait Implementations
impl RefUnwindSafe for DBSCAN
impl Send for DBSCAN
impl Sync for DBSCAN
impl Unpin for DBSCAN
impl UnwindSafe for DBSCAN
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more