diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-hdbscan/package.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-hdbscan/package.py b/var/spack/repos/builtin/packages/py-hdbscan/package.py new file mode 100644 index 0000000000..1d093dbf55 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-hdbscan/package.py @@ -0,0 +1,31 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +class PyHdbscan(PythonPackage): + """HDBSCAN - Hierarchical Density-Based Spatial Clustering of + Applications with Noise. Performs DBSCAN over varying epsilon + values and integrates the result to find a clustering that gives + the best stability over epsilon. This allows HDBSCAN to find + clusters of varying densities (unlike DBSCAN), and be more robust + to parameter selection. In practice this means that HDBSCAN + returns a good clustering straight away with little or no + parameter tuning -- and the primary parameter, minimum cluster + size, is intuitive and easy to select. HDBSCAN is ideal for + exploratory data analysis; it's a fast and robust algorithm that + you can trust to return meaningful clusters (if there are any).""" + + homepage = "https://github.com/scikit-learn-contrib/hdbscan" + url = "https://github.com/scikit-learn-contrib/hdbscan/archive/0.8.26.tar.gz" + + version('0.8.26', sha256='2fd10906603b6565ee138656b6d59df3494c03c5e8099aede400d50b13af912b') + + depends_on('py-setuptools', type='build') + depends_on('py-cython@0.27:', type='build') + depends_on('py-numpy@1.16.0:', type=('build', 'run')) + depends_on('py-scipy@0.9:', type=('build', 'run')) + depends_on('py-scikit-learn@0.17:', type=('build', 'run')) + depends_on('py-joblib', type=('build', 'run')) + depends_on('py-six', type=('build', 'run')) |