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.1.1.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.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl (493.1 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

exact_clustering-0.1.1-cp313-cp313t-musllinux_1_2_i686.whl (517.0 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

exact_clustering-0.1.1-cp313-cp313t-musllinux_1_2_armv7l.whl (580.2 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

exact_clustering-0.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl (491.2 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (322.4 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl (364.3 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ s390x

exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (394.4 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (317.7 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (312.6 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

exact_clustering-0.1.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl (340.6 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.5+ i686

exact_clustering-0.1.1-cp313-cp313t-macosx_11_0_arm64.whl (281.2 kB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

exact_clustering-0.1.1-cp313-cp313t-macosx_10_12_x86_64.whl (292.2 kB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

exact_clustering-0.1.1-cp38-abi3-win_amd64.whl (186.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

exact_clustering-0.1.1-cp38-abi3-win32.whl (173.8 kB view details)

Uploaded CPython 3.8+Windows x86

exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_x86_64.whl (496.2 kB view details)

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

exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_i686.whl (519.3 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ i686

exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_armv7l.whl (583.5 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_aarch64.whl (493.2 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (325.5 kB view details)

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

exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (367.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ s390x

exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (396.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (320.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARMv7l

exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (315.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

exact_clustering-0.1.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl (343.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.5+ i686

exact_clustering-0.1.1-cp38-abi3-macosx_11_0_arm64.whl (285.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

exact_clustering-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl (297.6 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: exact_clustering-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 7bcfd191924f12f8d3c4da4dd0740fe5cb2620a9f4a0413f23666a6f90f2798e
MD5 3aa10ecb8a981b2dec439a268afe869d
BLAKE2b-256 c1c6ae0aa93301bb987ce5dae9db8edd49d7cf63e1571ab008f0d41835708c24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3c3f28e3e4ba1661bc3bb526d8bbc4b5a7cf08f7855ba37f4942e1ba15a5d831
MD5 7242a95088a7eb7cbcc99d03847e246e
BLAKE2b-256 c9c2914ffbad2023edc3d54d860efa3b090aea0877f763454aa28b0eb199b191

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 6ef16a418f33dbe51b873407b0a8be1ebf5e939298af2e2a4580380fdfe98b82
MD5 298f4605a3c90e362add5b3adcc30e6c
BLAKE2b-256 2e29df2d6134952e1f746f8fb80b9f624638760b090d6693ed4fc031e3b3288f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 7b129402768ddf1d96345d7617a752bedd816a70a5340df96671c480a037b4e1
MD5 c88e17b9fc72d78e51c507d951b4fd3f
BLAKE2b-256 51531484529218299bac892a5d4ab74cd672693acb38249e8153a88926d520e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4906addce24c7a3ba7e8e1efc61bb372a830323b62bd0c4aa2d86209d6bbf342
MD5 9371c3d355fce65218f1fe5be1cab25b
BLAKE2b-256 f90fd2a34ac6570060ca03428184f6240bb7f90b9dcaa6a2cc3d099bcbdfcb0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d55c2ac431dae8734674482df914a974b09754a61264bcc55d2ac6899ff541a
MD5 19161633ce328124e343aac0bfd487d3
BLAKE2b-256 14d8827c22f7b97a8af961c515a2eb37d905ff61461e9b2e390401f4d86c8685

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 ad75a0cdae0973a3e3c92de61b4e9701b3585396d1cc1723d6e4d86843ece424
MD5 240743e472c465bc58c74c7cd17e3352
BLAKE2b-256 8ae2664b16b70b18896007bd9fcae028afdd7779f425f245338761f2c70567b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 ba5bb779952edbea92d1609f360d0c4cb067043cec6f56512cb1e3d9a5a612b9
MD5 9f9ecaab615826ddca4bd45dcad91d82
BLAKE2b-256 ab00a1053c1cee4aec95ac2b8f0211975c008fa58c88da9488f64334a4578916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 7c260f99148ded57b163f5822087c4452e70489769d94ce8037e3e5311188275
MD5 6c10b75fe398278c0fe813b26eed5dfb
BLAKE2b-256 bf83c14d839b2f2159a941bcfe464fccd974a46d1db631eceb7530d2fad9076c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cf5c6545a8c4a1c2d466c969b2bb296e4953167c38e7e10757d9128f9bc9d9e1
MD5 2cf98b4dea4c268aae4cd2a45b89a51b
BLAKE2b-256 1dd89def8c75c52f6566f276630e06b1a1a814530921f1c64db5a934bcae91bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 0b9948f3d21d161c2fe1f3bd84a0fc3937fafacdd6a47f18bb5236a4527c76c5
MD5 88e6ce051bdaf7ab4674289ad4d3beac
BLAKE2b-256 121643ac6eeb4b81a04f87c61b1cf21119fdef7f2bffc53963ed11a505a26fec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72de89ecba5ffbe5557b5da2a8fbe5c979b8d99fe493d615a948228e99673075
MD5 ed4efe07c9aea34d61e6978b5e57c28b
BLAKE2b-256 c2aac1ac80faa11a338d9f7f884cf86c7aa1cd07646cd256877ef0da8ea6cc8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a2dc6759673789052b0cc00a32a24d96b5dbfd4282737b5bcb48d246725f980b
MD5 a366755649210655fe571ca8d77dc24f
BLAKE2b-256 cb12c0fec08ecda9424affc6537f1cea2f7b3fa262c0b6b7d721aee9e0ebc562

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 812aeea33779ff22bbeec832b613d1b6f3fe83f5ed4a397c3021f126a9487387
MD5 741f1f50b676766cdeda769b846611e6
BLAKE2b-256 3f81d93df98017d25fd0653595b3769549d4baa2351602f6d075332587827bc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 ec55f53ed8cc45e6374b24971f01a79b2310fa04588c802f58990c783f1fac72
MD5 c527bd1f39281a75ce4f3d2814e81b69
BLAKE2b-256 ce232212f6c29e76d3accedb0197934d72073e78f8c6cb99e8c769454f8bf2af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6cee37d5f903e20c192f0318e23414ec9188c7747dfe4c154e3eba341bc86b01
MD5 f0d5df270b2b0a61a77dcf673ce27dd0
BLAKE2b-256 1674a184c72198c6436aa269721911a1ffa1107abc3411698dd95e10681be65a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 e0e84767e34a5b40473c22d5c53a72cd6730c483182763eb772d0e100740231d
MD5 86ba7b18656af624a7b17907f4261852
BLAKE2b-256 f10e9c27a7130e3b31a7f59c18f74acd5cb91ceb2a428ffd4688977a8908076d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 32a004e0640598f1485affedc51c0071019dcd07b0a24a04d2ab738670419291
MD5 f334825362cc00adae0ea657205008c3
BLAKE2b-256 fa4d004f1c5a32a6c6fa84323aaa9eeb58c114dc2d05badcf127c44aecd234d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 164907a6e1122eb69e632490365084a0d0b260cdc95ee7315bb068cda6ad8c02
MD5 a3f939a64f1cfd5314766a1a283a21ea
BLAKE2b-256 05952cdde7f6ee97f8cb1b6cb58aba4b7d95547faaa1306ba6010e9d20e06aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79dd12238fc216d5b7158cd5c7b1ce43ce428f64a4f0f37eec54513b0e09c2df
MD5 e282fce4b99c2117fb1a0678c7af222a
BLAKE2b-256 748e9cb84cc8fe90e5d505ca7b64c0dca526a5fc16dfedf9d920b78a147df70c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 09e3bacd085618a061ab9f5a42c55d109d381f60abf68f2aa1d269746a41b3bf
MD5 e647bb77dedbb831f1515879040b236d
BLAKE2b-256 65a9c95a63fae99357bca5359ef2dfc838bfa91b405fc34cd5cd650722050b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 654c4bee6530d7e0e930987b29e4f5b665deccb5e9389081eece245283e70f26
MD5 0f9cd7b59fd7a33e2d851dc9b56ac736
BLAKE2b-256 95da0ebf188b3435026a1132ac33daebe68cacba9f6833860ac784fdc44cc649

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 374504f2538a89d42046950eac1d377d93259d78be3985079d5d8e08d082bd7b
MD5 779dc0daeb34b9cc37d5c5a1d994d562
BLAKE2b-256 d7b119fadf6e416c43f79952ded3bca9c3191ecb7221ae179aec85585c03feab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 274bf3bb8e93ff1ad0312342964de03143a438b8ad84586139d0e8e7466e7721
MD5 5f8a191324eee82486b78047d5162ae6
BLAKE2b-256 f30450e8d5ff9426a04dc9b04098f4312667c1b77e258647782b54a5faeac5ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 4ca1c2bc2bfad6fd6c43d2a1877623cf83b6f5f6155719dcf3521a6f139bb3e2
MD5 ca5b709dcdc735592598b1feb8492db8
BLAKE2b-256 e2bb799162aea51b4f70780f6e3bb5a049fcbadc57732856b528a915e8c8fd6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fa408bd12fa1e0dc0f67718ca583c964e59fbaf73a3a1c8be8e4bc2989671c5
MD5 3137443b2fae1413de97520c84919506
BLAKE2b-256 ab7c3b9ee403f03b626f52312cbe5f6421dec1db2b505011b1d4645640b06e47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4502262b5092f6142eeeb59b5ea7fad34c90a4dbfabc56002069efa3edd7d070
MD5 e9140e12e9a8290bcbc5c844a50b83d0
BLAKE2b-256 3fd4250fd7a54960710acc394343d3a15ea5e79da95588abec51ffe060e650c3

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