compat.v0.iSIL

class compat.v0.iSIL

Bases: object

Incremental Silhouette (SIL) index.

__init__()

SIL constructor.

Methods

__init__()

SIL constructor.

cp_update(x, i)

SIL CP update.

s_ij_new(x, i, j, J, nj, nj_old, cpj_old, ...)

Computes the updated S_ij entry.

s_ij_new_cluster(x, i, j, J, nj_old, ...)

TODO

sci(i, J)

TODO

update(x, c_i)

SIL incremental update.

cp_update(x: ndarray, i: int)

SIL CP update.

Parameters:
  • x (np.ndarray) – TODO

  • i (int) – TODO

s_ij_new(x: ndarray, i: int, j: int, J: int, nj: int, nj_old: int, cpj_old: float, vj: ndarray, vi: ndarray, gj_old: ndarray, sij_old: float) float

Computes the updated S_ij entry.

Parameters:
  • x (np.ndarray) – TODO

  • i (int) – TODO

  • j (int) – TODO

  • J (int) – TODO

  • nj (int) – TODO

  • nj_old (int) – TODO

  • cpj_old (float) – TODO

  • vj (np.ndarray) – TODO

  • vi (np.ndarray) – TODO

  • gj_old (np.ndarray) – TODO

  • sij_old (float) – TODO

Returns:

TODO

Return type:

float

s_ij_new_cluster(x: ndarray, i: int, j: int, J: int, nj_old: int, cpj_old: float, vi_new: ndarray, vi_old: ndarray, gj_old: ndarray, sij_old: float) float

TODO

Parameters:
  • x (np.ndarray) – TODO

  • i (int) – TODO

  • j (int) – TODO

  • J (int) – TODO

  • nj_old (int) – TODO

  • cpj_old (float) – TODO

  • vi_new (np.ndarray) – TODO

  • vi_old (np.ndarray) – TODO

  • gj_old (np.ndarray) – TODO

  • sij_old (float) – TODO

Returns:

TODO

Return type:

float

sci(i: int, J: int) float

TODO

Parameters:
  • i (int) – TODO

  • J (int) – TODO

Returns:

TODO

Return type:

float

update(x: ndarray, c_i: int) float

SIL incremental update.

Parameters:
  • x (np.ndarray) – TODO

  • c_i (int) – TODO

Returns:

TODO

Return type:

float