Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. from sklearn.cluster import DBSCAN
  2. import numpy as np
  3. X = np.array([[1, 2], [2, 2], [2, 3], 8, 7], [8, 8], [25, 80]])
  4. clustering = DBSCAN(eps=3, min_samples=2).fit(X)
  5.  
  6. from sklearn.cluster import AgglomerativeClustering
  7. import numpy as np
  8. X = np.array([[1, 2], [1, 4], [1, 0], [4, 2], [4, 4], [4, 0]])
  9. clustering = AgglomerativeClustering().fit(X)
  10.  
  11. alabaster==0.7.12
  12. appnope==0.1.0
  13. arrow==0.14.3
  14. asn1crypto==0.24.0
  15. astroid==2.2.5
  16. attrs==19.1.0
  17. Babel==2.7.0
  18. backcall==0.1.0
  19. binaryornot==0.4.4
  20. bleach==3.1.0
  21. blis==0.2.4
  22. boto==2.49.0
  23. boto3==1.9.162
  24. botocore==1.12.163
  25. bz2file==0.98
  26. certifi==2019.6.16
  27. cffi==1.12.3
  28. chardet==3.0.4
  29. Click==7.0
  30. cloudpickle==1.2.1
  31. cookiecutter==1.6.0
  32. cryptography==2.7
  33. cymem==1.31.2
  34. cytoolz==0.9.0.1
  35. decorator==4.4.0
  36. defusedxml==0.6.0
  37. dill==0.2.9
  38. docutils==0.15.1
  39. el-core-news-md==2.1.0a7
  40. el-core-news-sm==2.1.0a7
  41. entrypoints==0.3
  42. et-xmlfile==1.0.1
  43. future==0.17.1
  44. idna==2.8
  45. imagesize==1.1.0
  46. ipykernel==5.1.1
  47. ipython==7.6.1
  48. ipython-genutils==0.2.0
  49. isort==4.3.21
  50. jdcal==1.4.1
  51. jedi==0.13.3
  52. Jinja2==2.10.1
  53. jinja2-time==0.2.0
  54. jmespath==0.9.4
  55. joblib==0.13.2
  56. jsonschema==2.6.0
  57. jupyter-client==5.3.1
  58. jupyter-core==4.5.0
  59. keyring==18.0.0
  60. lazy-object-proxy==1.4.1
  61. MarkupSafe==1.1.1
  62. mccabe==0.6.1
  63. mistune==0.8.4
  64. mkl-fft==1.0.14
  65. mkl-random==1.0.2
  66. mkl-service==2.0.2
  67. msgpack==0.5.6
  68. murmurhash==0.28.0
  69. nbconvert==5.5.0
  70. nbformat==4.4.0
  71. nltk==3.4.4
  72. numpy==1.16.4
  73. numpydoc==0.9.1
  74. openpyxl==2.6.2
  75. packaging==19.0
  76. pandocfilters==1.4.2
  77. parso==0.5.0
  78. pexpect==4.7.0
  79. pickleshare==0.7.5
  80. plac==0.9.6
  81. poyo==0.5.0
  82. preshed==1.0.1
  83. prompt-toolkit==2.0.9
  84. psutil==5.6.3
  85. ptyprocess==0.6.0
  86. pycodestyle==2.5.0
  87. pycparser==2.19
  88. pyflakes==2.1.1
  89. Pygments==2.4.2
  90. pylint==2.3.1
  91. pyOpenSSL==19.0.0
  92. pyparsing==2.4.0
  93. pyrsistent==0.14.11
  94. PySocks==1.7.0
  95. python-dateutil==2.8.0
  96. pytz==2019.1
  97. pyzmq==18.0.0
  98. QtAwesome==0.5.7
  99. qtconsole==4.5.2
  100. QtPy==1.8.0
  101. regex==2018.7.11
  102. requests==2.22.0
  103. rope==0.14.0
  104. s3transfer==0.2.0
  105. scikit-learn==0.21.3
  106. scipy==1.3.1
  107. six==1.12.0
  108. smart-open==1.8.4
  109. snowballstemmer==1.9.0
  110. spacy-nightly==2.1.0a13
  111. Sphinx==2.1.2
  112. sphinxcontrib-applehelp==1.0.1
  113. sphinxcontrib-devhelp==1.0.1
  114. sphinxcontrib-htmlhelp==1.0.2
  115. sphinxcontrib-jsmath==1.0.1
  116. sphinxcontrib-qthelp==1.0.2
  117. sphinxcontrib-serializinghtml==1.1.3
  118. spyder==3.3.6
  119. spyder-kernels==0.5.1
  120. srsly==0.0.7
  121. termcolor==1.1.0
  122. testpath==0.4.2
  123. thinc==7.0.8
  124. toolz==0.10.0
  125. tornado==6.0.3
  126. tqdm==4.32.1
  127. traitlets==4.3.2
  128. ujson==1.35
  129. unicodedata2==12.0.0
  130. urllib3==1.24.2
  131. wasabi==0.2.2
  132. wcwidth==0.1.7
  133. webencodings==0.5.1
  134. whichcraft==0.6.0
  135. wrapt==1.10.11
  136. wurlitzer==1.0.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement