@thi.ng/k-means 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +3 -104
  2. package/package.json +8 -9
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-04T21:07:38Z
3
+ - **Last updated**: 2025-01-23T13:39:11Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -50,106 +52,3 @@ and/or version bumps of transitive dependencies.
50
52
  - use u32 array for internal cluster assignments
51
53
  - remove attempt to start new cluster if one became unused
52
54
  - update buildClusters to filter out empty
53
-
54
- ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.5.0) (2021-11-17)
55
-
56
- #### 🚀 Features
57
-
58
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
59
- Improving the overall build ergonomics
60
- - introduced a tools workspaces
61
- - imported it in all needed packages/examples
62
- - inclusive project root
63
-
64
- #### ♻️ Refactoring
65
-
66
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
67
- this commit reverts (partly) changes made in:
68
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
69
- overall purpose is better testament ergonomics:
70
- instead of having to pass NODE_OPTIONS with every invocation
71
- having a binary to handle this for us.
72
-
73
- ### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.4.1) (2021-10-13)
74
-
75
- #### ♻️ Refactoring
76
-
77
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
78
- - add .js suffix for all relative imports
79
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
80
-
81
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.4.0) (2021-10-12)
82
-
83
- #### 🛑 Breaking changes
84
-
85
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
86
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
87
- - only ESM modules will be published from now on
88
- - CJS obsolete due to ESM support in recent versions of node:
89
- - i.e. launch NodeJS via:
90
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
91
- - in the node REPL use `await import(...)` instead of `require()`
92
- - UMD obsolete due to widespread browser support for ESM
93
- Also:
94
- - normalize/restructure/reorg all package.json files
95
- - cleanup all build scripts, remove obsolete
96
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
97
-
98
- #### ♻️ Refactoring
99
-
100
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
101
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
102
- - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
103
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
104
- - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
105
- - largely related to recent updates/restructuring of these packages:
106
- - api
107
- - defmulti
108
- - errors
109
- - logger
110
-
111
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.3.0) (2021-08-04)
112
-
113
- #### 🚀 Features
114
-
115
- - auto-correct `k` if needed ([d3c3ffa](https://github.com/thi-ng/umbrella/commit/d3c3ffa))
116
- - update initKmeanspp() & kmeans() to auto-adjust (reduce) `k` if needed
117
- - add potential failsafe to bail early in initKmeanspp()
118
-
119
- ### [0.2.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.2.5) (2021-08-04)
120
-
121
- #### 🩹 Bug fixes
122
-
123
- - update initKmeanspp() ([dd0d965](https://github.com/thi-ng/umbrella/commit/dd0d965))
124
- - use `dist` for argmin() calls
125
- - use `rnd` for weightedRandom()
126
-
127
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.2.0) (2021-04-20)
128
-
129
- #### 🚀 Features
130
-
131
- - add meansLatLon centroid strategy, docstrings ([269c11c](https://github.com/thi-ng/umbrella/commit/269c11c))
132
-
133
- #### ♻️ Refactoring
134
-
135
- - update initKmeanspp() ([193c054](https://github.com/thi-ng/umbrella/commit/193c054))
136
- - ensure unique centroids
137
-
138
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.1.0) (2021-04-19)
139
-
140
- #### 🚀 Features
141
-
142
- - import as new pkg ([a32aaf6](https://github.com/thi-ng/umbrella/commit/a32aaf6))
143
- - add k-medians support ([6bc450b](https://github.com/thi-ng/umbrella/commit/6bc450b))
144
- - add CentroidStrategy, update KMeansOpts
145
- - update kmeans() to use strategy impl
146
- - extract means() & medians() strategies
147
- - add kmeans++ initialization, update opts ([fcc2dcc](https://github.com/thi-ng/umbrella/commit/fcc2dcc))
148
- - add `KMeansOpts.initial` to provide initial centroids
149
- - add initKmeanspp() impl
150
- - update kmeans() to use improved init step (if needed)
151
-
152
- #### 🩹 Bug fixes
153
-
154
- - use dist metric in initKmeanspp() ([37bd6c6](https://github.com/thi-ng/umbrella/commit/37bd6c6))
155
- - update to use user-provided distance metric
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/k-means",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Configurable k-means & k-medians (with k-means++ initialization) for n-D vectors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,17 +40,16 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.11.16",
44
- "@thi.ng/distance": "^2.4.102",
45
- "@thi.ng/errors": "^2.5.22",
46
- "@thi.ng/random": "^4.1.7",
47
- "@thi.ng/vectors": "^7.12.16"
43
+ "@thi.ng/api": "^8.11.18",
44
+ "@thi.ng/distance": "^2.4.104",
45
+ "@thi.ng/errors": "^2.5.24",
46
+ "@thi.ng/random": "^4.1.9",
47
+ "@thi.ng/vectors": "^7.12.18"
48
48
  },
49
49
  "devDependencies": {
50
- "@microsoft/api-extractor": "^7.48.1",
51
50
  "esbuild": "^0.24.2",
52
51
  "typedoc": "^0.27.6",
53
- "typescript": "^5.7.2"
52
+ "typescript": "^5.7.3"
54
53
  },
55
54
  "keywords": [
56
55
  "cluster",
@@ -89,5 +88,5 @@
89
88
  "year": 2021,
90
89
  "screenshot": "examples/kmeans-viz.jpg"
91
90
  },
92
- "gitHead": "56e7a1724e7b0cb5c41119f60320b6ff0e8a3c1c\n"
91
+ "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
93
92
  }