Skip to main content

Find optimal clusterings and optimal hierarchical clusterings.

Project description

Low-effort way of calling the rust-crate exact-clustering from Python. Consult docs.rs for more extensive documentation.

from exact_clustering import *

weighted_points = [
    (1.0, [0, 0]),
    (1.0, [1, 0]),
    (3.0, [0, 2]),
]

print(
    weighted_continuous_kmeans_price_of_hierarchy(
        weighted_points
    )
)
# 1.0

View provided methods via help(exact_clustering) in the python-repl or take a look at /src/lib.rs. At time of writing, they are:

def unweighted_continuous_kmeans_price_of_hierarchy(points: list[tuple[float, list[float]]],) -> float: ...
def weighted_continuous_kmeans_price_of_hierarchy(weighted_points: list[list[float]],) -> float: ...
def unweighted_discrete_kmeans_price_of_hierarchy(points: list[tuple[float, list[float]]],) -> float: ...
def weighted_discrete_kmeans_price_of_hierarchy(weighted_points: list[list[float]],) -> float: ...
def unweighted_discrete_kmedian_price_of_hierarchy(points: list[tuple[float, list[float]]],) -> float: ...
def weighted_discrete_kmedian_price_of_hierarchy(weighted_points: list[list[float]],) -> float: ...
def unweighted_continuous_kmeans_price_of_greedy(points: list[tuple[float, list[float]]],) -> float: ...
def weighted_continuous_kmeans_price_of_greedy(weighted_points: list[list[float]],) -> float: ...
def unweighted_discrete_kmeans_price_of_greedy(points: list[tuple[float, list[float]]],) -> float: ...
def weighted_discrete_kmeans_price_of_greedy(weighted_points: list[list[float]],) -> float: ...
def unweighted_discrete_kmedian_price_of_greedy(points: list[tuple[float, list[float]]],) -> float: ...
def weighted_discrete_kmedian_price_of_greedy(weighted_points: list[list[float]],) -> float: ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exact_clustering-0.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl (498.2 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_i686.whl (524.2 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_armv7l.whl (585.5 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl (502.4 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.6 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl (371.4 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ s390x

exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (404.6 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (322.9 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (324.3 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

exact_clustering-0.2.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl (349.5 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.5+ i686

exact_clustering-0.2.0-cp313-cp313t-macosx_11_0_arm64.whl (281.4 kB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

exact_clustering-0.2.0-cp313-cp313t-macosx_10_12_x86_64.whl (298.0 kB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

exact_clustering-0.2.0-cp38-abi3-win_amd64.whl (191.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

exact_clustering-0.2.0-cp38-abi3-win32.whl (178.9 kB view details)

Uploaded CPython 3.8+Windows x86

exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_x86_64.whl (500.3 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_i686.whl (525.7 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ i686

exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_armv7l.whl (587.0 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_aarch64.whl (504.9 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (329.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (374.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ s390x

exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (407.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (324.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARMv7l

exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (326.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

exact_clustering-0.2.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl (351.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.5+ i686

exact_clustering-0.2.0-cp38-abi3-macosx_11_0_arm64.whl (286.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

exact_clustering-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl (301.9 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file exact_clustering-0.2.0.tar.gz.

File metadata

  • Download URL: exact_clustering-0.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for exact_clustering-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c83a000797068ae09eed8a032ac17cb67da530d704603a07d35e610879a1bd4b
MD5 ec9ea041b3d8fb5c00fff26ffaa3f1b0
BLAKE2b-256 465445524de9476a8724d66863caa411e93576fb9bbf2e2b255fe7c1a25dc73b

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 baf5bfb00182c376c2c8ffa0be01102528f1dd31b7b00bd3815b26fb999e75fa
MD5 13fc575bbf8a82dff41d1ccdb2ae257f
BLAKE2b-256 4602a9024180c0ca325b4f4fb9524e55f5e15d635d0855dc21e100325f468b15

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 28fd3036b986db8819d7e65ecdc394d8c7696943d9cba267e554be7f50a4a28d
MD5 cf1bd6bcd57be5de58877883a835cbc1
BLAKE2b-256 c1161f3f0947833f0a4bac0e9c51f90ae54419a62a37e99bc1ebe5a082c2b2d7

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 25949ba647c59ff7b0e2aacbc524c5aefe6bdcaf4e2e06dc3e8c7ba105590ced
MD5 ebff6ab56d30d6f86c950cbdfecb43c7
BLAKE2b-256 a482603c955294358dde384587e4681882b038e419324d568fa199c42112de12

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cabc6ee38ae6171d2f7524e80c73e4de0fa010c5be2a3ab2b05e6d4586bcde21
MD5 260ced936995b1f5d4d5b3238c9dccd4
BLAKE2b-256 320a31d772f3d7d387dd083283cb8b6cbe4e9eb5f038b37c87549ccc54e594b7

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f1af252184ad51e9d798464f2a749031e6c47e1d77c2f12ff7414950e8628f61
MD5 2cfbfe2b4ed0e1477f82807b3e609aba
BLAKE2b-256 29f32bfd9ccf8d6b2d3c9798fb2cd5cdaed29d8ba3db7b4e03c80aa72ed85cbc

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 9e226889f9f2d0f10aeb3139f81d6899991d3066fa030da7951dc8487c98c69e
MD5 8c2ae15960351a8b3d1ef0505a4a3bcc
BLAKE2b-256 3cb91f67180473d464bb5687e1fff66bb372b174ddbf2132b015067a1d5d6405

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 2f2d6a7bd1e032deb4e8b6fe32911827df38f7adc7d9ba87df6e895ff91293ba
MD5 4137865ce6d5c8b8382d9eda3a7a3bb3
BLAKE2b-256 300db50087903b7e81f33e892c3b824e276043c90dc056d98eac6a2ddae58818

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 c2c3b9f96d63255fd25929c56ac3a4b917327878089653e203a7d2f1bd054ce9
MD5 f9c9f15322a1195d9c1bb8f1ef69eb51
BLAKE2b-256 77ec0fa8a71e5cf5f787c68306b5872c7e60d579e3c6919e045a861c793858dc

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c85f4e9cef9d0dea77498f0ce24149ab132ea4e4957fa41abf2f5710e1c0d371
MD5 faccb8fc6001c4d1400c1bc803327272
BLAKE2b-256 96bcff8223661d3d2c1c24f2f52ce907b9319e2f5cc0180ef181928e4deadb97

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 7499ddfef56bacbee2fdff2f5819c9eb8d57e4a3d97347aa1fbb2bd97c477e17
MD5 4770867a03a1bf46d9d6de52fe6b8696
BLAKE2b-256 46cbbdd6fd3af80c480f1227e7c6ab28d92a7d8f47530c52488197f8a79f6549

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc2d033f3f23ba0710db6913d750cbc2f98a644cea04812818299d223eeb766f
MD5 8e07ecb8db2d5b1753ea9e4337e62794
BLAKE2b-256 0418a96b4b3ab4887efc81628337c7d844ca5e691e314709eed5cda693695240

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f14a11d96100cd415064cabb32322422b5dc6ad9de9fb3d0381b9e5786ddb12b
MD5 2814dbcb66cab9d992cb203e7bb21847
BLAKE2b-256 6d5bdce9bab8a7a4ad4ef7b63dccb294d381439bd4c202c14a8b34024029aee9

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 355405a3ba682b1296eebea6518740bb452e25e7a8e7421823f0f84604590810
MD5 d007052f9eb2ec3ea5e34bcde0db5845
BLAKE2b-256 e1c6b9760abac60f1ee7d99767b8299278dd68217d18e2e05b17ecb3e3111f1b

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 a0f5b899c568f3d24fdac645cf6690d208e9d36f912004f58d82aeb5322c9dc5
MD5 578809a2bb857729410d04ef2efa4b3a
BLAKE2b-256 c8872f09daae09227bc61494baa45e138b85382d1992007248d3d7ad628d810d

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 54ff563837bd658fc4a009ef569dc1a668e81977d0cb8c0b4f0ce3b5e3d1049b
MD5 5d077a61887d862b441c2d906811ca19
BLAKE2b-256 d04f394bd4be832683d2f70f78747a89226ec4d3fd03798659a604f4c4747d25

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 064b07655472cbce572f0b2ea52cd04e0f8af81f6d7a6d08f0d38eb9726afa4b
MD5 f81f0115274cdc03bc4645478e4d698b
BLAKE2b-256 f63b8ed6bbdf4e505c0070ab52f205b3acfe78994e41f396ca023c176d6b53d2

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 b3e1a55540714034a7c78c1d02c1e9949a524e02804e67477c6ac18d7007a5df
MD5 953576f1301afa12560cac6fc07f69b7
BLAKE2b-256 28c7836bdb9caa1e646e677af22a6af4d95aaa4c145cafe9bf4c51fd9422497c

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d477de9fbd2ddc460173c5508fd498d490a90f6c6ea58546e982584c7e409e65
MD5 592a2fa334ca308ea077bc89535e44a5
BLAKE2b-256 524518240d3c5ef8e58be8d7c1ae779ccfe8069e57881cd05d1682de49eb9152

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 47fd11797ba0613d40da4b3c61f61a87dc05814a38e92aa16eec2ff6b131d032
MD5 865bc5d4b8e614ba3a16229e3869f99e
BLAKE2b-256 f7d0606c0bc0141f39a5d6d9023cb2c6fb3ea82d85c79707b9c53881ee7d8ba2

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 aefbb600d07576b40f2aefaebdb426a34eae1dd7ce5b276b12d486b81a8f04b6
MD5 6246d857496deb414b314ccbc0498647
BLAKE2b-256 63eecf7caa32fd8fcc1c5938d131e1a86a1e11907e23fd650eaea78b5a4232b2

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 bd46cdae934b63f659d3d4fe637b7eab05b25383cf848cfc9ac9447946b4b43c
MD5 0d2258a6356cbff9831a170af8aac83e
BLAKE2b-256 68b82c658bb7dccab962603e4052a62b08deacff5dedf9ff6ee159b6cf43a014

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 b25e2b86166b47e622745cc40ced2f03d6d96600ca46f01be3f8fe79ff6da838
MD5 c07a0879a315000c8ffa2a8b36bf8edf
BLAKE2b-256 f5ec46c2758d5678c571768b50fb136749cbd135e86ffa0e83e1c41ff1051aba

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ffc32352008f0fdeb3c4a8c7d5daba33619cde2918995cf036fa9e4328f8a49
MD5 ecd5176acfbbffa3f6d498b74744704b
BLAKE2b-256 2f4c62655b59500111c3247e4ef942d32e2c022a12cde5c5274394b4caa8e646

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 801af6eb2b053b8e6ae678f0e8a3571791430e58a1e0ed4d110cfd8e4a3c84ce
MD5 fb42732e993d2aef53bd65f13a4bab32
BLAKE2b-256 cf2b816480378537c37ba3340cd47aebcce666b6060eb158b68cc41f76dd197c

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8efae5839bd298f5aa68b24ab6e3aba7a915f01433bcd4c030ce343c3f2686b8
MD5 8863d3b0356709d92ca551b72f43b915
BLAKE2b-256 763ea96942be1013672ee32d39436949d7615408bb3693af1d4b0e0351c04006

See more details on using hashes here.

File details

Details for the file exact_clustering-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for exact_clustering-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 35229515ca059349f8188d87ba4e8cfc79ad1fd44735a8b5b0bb2e7fa81f1638
MD5 d8575e021af3a58e1ba6b846e2b19b52
BLAKE2b-256 b67ccfa30c12ad04e6033ec754410df9073a6d09dfdf33528b772b9b508fc930

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page