feat: documentation adjusted to new builder

This commit is contained in:
Volodymyr Orlov
2020-12-23 12:38:10 -08:00
parent dd341f4a12
commit 32ae63a577
3 changed files with 8 additions and 13 deletions
+3 -5
View File
@@ -15,11 +15,9 @@
//! let blobs = generator::make_blobs(100, 2, 3);
//! let x = DenseMatrix::from_vec(blobs.num_samples, blobs.num_features, &blobs.data);
//! // Fit the algorithm and predict cluster labels
//! let labels = DBSCAN::fit(&x, Distances::euclidian(), DBSCANParameters{
//! min_samples: 5,
//! eps: 3.0,
//! algorithm: KNNAlgorithmName::CoverTree
//! }).and_then(|dbscan| dbscan.predict(&x));
//! let labels = DBSCAN::fit(&x, Distances::euclidian(),
//! DBSCANParameters::default().with_eps(3.0)).
//! and_then(|dbscan| dbscan.predict(&x));
//!
//! println!("{:?}", labels);
//! ```