@saehrimnir/druidjs / ParametersMINFOTree
Interface: ParametersMINFOTree
Defined in: dimred/index.js:138
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
alpha? | number | Shrinkage applied to intra-cluster edge weights. Defaults to the golden ratio conjugate (√5-1)/2 ≈ 0.618, which the paper picks for interpretability rather than by tuning. | dimred/index.js:151 |
clustering? | "hierarchical" | "kmeans" | How to obtain the labels when labels is not given. "hierarchical" uses Ward linkage, matching the paper's experiments. | dimred/index.js:146 |
clusters? | number | Number of clusters to partition X into for the labels field. Required unless labels is given — the tree inherits whatever the clustering gets wrong, so there is no safe default. With the default hierarchical clustering the usable range is 2 … N-1, the number of merges a dendrogram cut can separate; "kmeans" has no such limit. | dimred/index.js:142 |
d? | number | the dimensionality of the projection. | dimred/index.js:140 |
eig_args? | Partial<EigenArgs> | Parameters for the eigendecomposition algorithm. | dimred/index.js:162 |
epsilon? | number | Floor on the curvature denominator, S = -ψ / (φ + epsilon), needed because φ and ψ both vanish for interior points as β grows. Default matches the author's reference implementation. See MINFOTree._information_curvature on how the interior/boundary curvature ordering depends on β. | dimred/index.js:154 |
iterations? | number | Maximum Kamada-Kawai gradient steps. | dimred/index.js:160 |
k? | number | Neighbors in the k-NN graph. Defaults to round(ln N), as in the paper. | dimred/index.js:139 |
labels? | | any[] | Int32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | null | Precomputed labels, one per row of X. Bypasses the clustering step. Values may be of any type; they are remapped to 0 … q-1. | dimred/index.js:148 |
layout? | "MDS" | "kamada_kawai" | How to lay the tree out. "MDS" stops after the classical-MDS warm start, which is far cheaper and often enough. | dimred/index.js:158 |
metric? | Metric | the metric which defines the distance between two points. | dimred/index.js:141 |
seed? | number | the seed for the random number generator. | dimred/index.js:161 |