GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Sesame/python/demo.py at main · DataSysResearch/Sesame Expand file tree/ Copy pathdemo.pyMore file actions executable file ·22 lines (17 loc) · 404 Bytes / Copy pathdemo.pyFile metadata and controlsexecutable file ·22 lines (17 loc) · 404 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #!python3 from pysame import Benne, Birch, BenneObj # from sklearn.cluster import Birch X = [[0, 1], [0.3, 1], [-0.3, 1], [0, -1], [0.3, -1], [-0.3, -1]] brc = Birch( n_clusters=2, dim=2, distance_threshold=0.5, ) print(brc.partial_fit(X).predict(X)) bne = Benne( n_clusters=2, dim=2, distance_threshold=0.5, obj=BenneObj.accuracy, ) print(bne.partial_fit(X).predict(X)) |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |