11/**
22 * Returns Davies-Bouldin index.
3- *
43 * @param {Array<Array<number>> } data Original data
54 * @param {*[] } pred Predicted categories
65 * @param {number } p P
@@ -64,7 +63,6 @@ export function davisBouldinIndex(data, pred, p = 2, q = 1) {
6463
6564/**
6665 * Returns Silhouette coefficient.
67- *
6866 * @param {Array<Array<number>> } data Original data
6967 * @param {*[] } pred Predicted categories
7068 * @returns {number[] } Silhouette coefficient
@@ -121,7 +119,6 @@ export function silhouetteCoefficient(data, pred) {
121119
122120/**
123121 * Returns Dunn index.
124- *
125122 * @param {Array<Array<number>> } data Original data
126123 * @param {*[] } pred Predicted categories
127124 * @param {'max' | 'mean' | 'centroid' } intra_d Intra-cluster distance type
@@ -227,7 +224,6 @@ export function dunnIndex(data, pred, intra_d = 'max', inter_d = 'centroid') {
227224
228225/**
229226 * Returns Purity.
230- *
231227 * @param {*[] } pred Predicted categories
232228 * @param {*[] } t True categories
233229 * @returns {number } Purity
@@ -258,7 +254,6 @@ export function purity(pred, t) {
258254
259255/**
260256 * Returns Rand index.
261- *
262257 * @param {*[] } pred Predicted categories
263258 * @param {*[] } t True categories
264259 * @returns {number } Rank index
@@ -280,7 +275,6 @@ export function randIndex(pred, t) {
280275
281276/**
282277 * Returns Dice index.
283- *
284278 * @param {*[] } pred Predicted categories
285279 * @param {*[] } t True categories
286280 * @param {number } [beta] Positive real factor. Recall is considered `beta` times as important as precision.
@@ -307,7 +301,6 @@ export function diceIndex(pred, t, beta = 1) {
307301
308302/**
309303 * Returns Jaccard index.
310- *
311304 * @param {*[] } pred Predicted categories
312305 * @param {*[] } t True categories
313306 * @returns {number } Jaccard index
@@ -333,7 +326,6 @@ export function jaccardIndex(pred, t) {
333326
334327/**
335328 * Returns Fowlkes-Mallows index.
336- *
337329 * @param {*[] } pred Predicted categories
338330 * @param {*[] } t True categories
339331 * @returns {number } Fowlkes-Mallows index
0 commit comments