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

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

exact_clustering-0.1.0-cp313-cp313t-musllinux_1_2_i686.whl (516.4 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

exact_clustering-0.1.0-cp313-cp313t-musllinux_1_2_armv7l.whl (579.6 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

exact_clustering-0.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl (490.9 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (321.7 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl (363.6 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ s390x

exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (394.3 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (317.5 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

exact_clustering-0.1.0-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.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl (340.1 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.5+ i686

exact_clustering-0.1.0-cp313-cp313t-macosx_11_0_arm64.whl (281.1 kB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

exact_clustering-0.1.0-cp313-cp313t-macosx_10_12_x86_64.whl (291.8 kB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

exact_clustering-0.1.0-cp38-abi3-win_amd64.whl (186.2 kB view details)

Uploaded CPython 3.8+Windows x86-64

exact_clustering-0.1.0-cp38-abi3-win32.whl (173.4 kB view details)

Uploaded CPython 3.8+Windows x86

exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_x86_64.whl (495.6 kB view details)

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

exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_i686.whl (518.8 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ i686

exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_armv7l.whl (583.0 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_aarch64.whl (493.0 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (325.0 kB view details)

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

exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (367.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ s390x

exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (396.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (320.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARMv7l

exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (315.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

exact_clustering-0.1.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl (343.1 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.5+ i686

exact_clustering-0.1.0-cp38-abi3-macosx_11_0_arm64.whl (285.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

exact_clustering-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl (297.2 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: exact_clustering-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 c1e182281c496ccbe7a8599db68ff98649f1baf73b3b224f1d83330a54375ea9
MD5 613640d878d94090b8c92ce562a289b6
BLAKE2b-256 30ce4a5f1a17ff3982cc535759635a85d086f08b5c70b7c199bbf790ea9b5e5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 76bdb94e75e7192a2407fc9def4eec69af0d074c830b86698d8f6829b237cafd
MD5 f8775bd5de98789b16ea42a1f990bc8b
BLAKE2b-256 4638a81d08a0cb6a0d497f95a8799785678cf415223224619fbf9c43e9103fea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 79b0d2cf1ab8b34faf6841741ea032168505d0eb7dd90eb68d0128cddd18e372
MD5 d48efd1c20e88bc883a01b24ddc2e97d
BLAKE2b-256 3422abe87bf1341f7e2328be9edc1b81aecb22c035421984fd841e48ee869a83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 8ba33e960eb7ae19e7343f34f1bc661ef7337c8e3245550dafbb60866e0e692f
MD5 f5b63285f59595e21da6f8b5408ceda4
BLAKE2b-256 34dfbd2d72ed9c4fe5a86beff1fcb3974a34f9018abfd1066c9a880143f261be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d6128b498d8fe1c0061ba9040f7c4bb14d0405bd1393947a8c33de30bffc6f5a
MD5 85e9fd01eadad785f6c86f5e4174917a
BLAKE2b-256 9882c813401039e0f162c5b039078f6d19c9200bb5388a36679b9f91e7f2d5f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9fcddab5599fc1fdec94aa4574b279555f641505928aff4fa8a6e270ee295cf0
MD5 b089e438f3daef8d34892abc30ba94b8
BLAKE2b-256 468e911b9dcf5e11cd41c4e917d8ec7808cbcf5f093eeba9975a5c8a0740b763

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 086d31d0e9dbcd0115be468270dfbc73271082cd28e8d4543ead6f7fffef9c77
MD5 67bb80ea6558e8f994e6828a0b250c18
BLAKE2b-256 28593f63df68462c63a7b3af85646ad149546556cda6cffd2bbaad1dd9a3c355

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 9c1d5a82fc9b54f013c435c693a017e11e2ef70aa1b2e9bdd8f886d6a06164f0
MD5 d39e578929f34292c7de4f4e8f057729
BLAKE2b-256 66db0d8cc798ad33fcc3348677a3a18037fc8dcdcff71ba8400cf18957f5f4e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 fc604fbbc3e448fa2b1774b05b3676a7705a406a1b1ee6814e54b5c8964e4635
MD5 56070484143d3f46e0e968e849e2e2b4
BLAKE2b-256 0a1487c6db8c259bf9be52c7a6bfa89f43e3b9a321dd8e4fbfc0907b6116d8d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 855f06b0905e47e1106b744b2c535b6ac6ea0ed33552400560c768598b260be2
MD5 791f55145d36c29b0014af08a230caff
BLAKE2b-256 313d3f0987c09547e6092ff07914f1a3b0d56b6762ac3ed04422e25098eda9e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 644de8ecb91ad0282f9b1d50fce23b905ad2f27707f5f565db86ec0b09f04cd6
MD5 ef86f6d89654e0cfac315dc3c167613b
BLAKE2b-256 df668d890b01697a82efdcd1b0d6abfa9da1723686fd0523ac879563abd0dc1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ecfddc4d77f73bdc93902c744df2a2a918c2b9023121835b06259069576eef7
MD5 b0eb56a0170f5c251e25f553b85a4a09
BLAKE2b-256 ee4241f8e12ec21998879719fd42466ec083beda8c39610014ca54d4695c7c01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 db81aa41e7ce93875b88493cabd91f2bdce6cdf930a61ed911adcc81c45b1e71
MD5 1bc1e2af9431db013c69fe19e5a4a8c6
BLAKE2b-256 5d35a266a4050364d38bca055511bf8dccfb2b98e43a1a56061fbdfc19fa5647

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e8ee444ff9ecc83c62203cfbb3c94feeab37c456e3e2819f8ee9cca4c52fa6ae
MD5 737ea2a97b040a462590b69bad4d7eb3
BLAKE2b-256 5daf6aeb83e68df9ec40d67b9db420c44ba241efba0dd7be3b4bf95f08ba74f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 286b9b24af3d158b4a15f27d5a63ef16584ad2367e31f1edce5ce5dd6e949cee
MD5 f5dedb67ad8f14735c61d57723d5baac
BLAKE2b-256 3f95b7c7b323dbba5234d5d9f4555d8e5c55085f01e32c3a37be011268520b96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d4e4bf700afd99b15f0c49915ab939a9fe10cb131160eaf94c12c552e753f40f
MD5 97b17d3ae3a39ac906952b39de67866a
BLAKE2b-256 7d2bf1e2d5ab09c9c4159327b52b53869b691cb170e859a855185e8a8d329ab5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 b9f6a32c5308917ecf577dd83dd3a0025d569ce41ffb6cd7bda30756fa1afbdf
MD5 3dad90931441eae1ac6b8531077ea2f7
BLAKE2b-256 6836b715d5a1d892eb750c4fb24c3d2dba7846ad55d80f17ad9a1f5fd4043ace

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 af552775dd4b62f8887ab8d2f3d645985610db5b977b6ec9197eabc870e27148
MD5 988003aa84da73926f406907feeff8c4
BLAKE2b-256 1778ff1cf6deb1dddbc934dce324e87a986387c768528b72bb8e9bfeda236446

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c33a8a0ea47f3c19a3081f143d92ba8cc6e95e1b217296a3bd76f0509851bd92
MD5 664846a9018c99e849f5c0caffc25fb3
BLAKE2b-256 e4c08f5edfe79669f57e0010f376cbf68dcea04921eea77c7f114d1b9c5b24a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddccdcd7da889f2304582e13b18e046306680f7ce30c0e638638aba29d2bd89b
MD5 53237778640a817e7ecf7efcd6847ab6
BLAKE2b-256 8a867551d147696b044782954a48dc32ab9ae8926fec4e6540eaaebfe1ffc02d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 57b7a1ce9eddecb5872a595ea38e6fb6007fab94ea5f96357f5a560bdfe7d067
MD5 3bf71ee94a1eb98d72fa402f23987e39
BLAKE2b-256 a14172226985ee1cf8b5af785297360b071be339bacee20b64ccb9967313f969

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 351b60de143fd6351812e4088e104d3889b41ecb95f8875f154ca3dd78af875c
MD5 9d88b7821ba51ea2993d5ab7c1fa4478
BLAKE2b-256 ebf1acf0721bef1c39d64fd358bc09c62994880a7425a0d3638f0f21d4efa261

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 53a9ee6dc70d07e5a0c1d4ff0ce43cd9d6078af7e825e0d683a5bd92f6b05392
MD5 85fcd0e412b96d16d2040a2a31031170
BLAKE2b-256 848cbc6d9b510ee04b74bb45e6a5c1ac560c64d23514ee99597f2a1ff87fb60e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e67868d8f905b028023f99a4d6350e00c16b960244a13c3ef4d82a5732c094b7
MD5 51767ec33754f5d41e071342dce10554
BLAKE2b-256 9f370a0b04106d24ed7e8153378a5b3d1701aff097295546f60fc2e065b47975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 2f9d7bf7e704e70c923bf529ecc9c14d329beeb3b41517db184316590f6a924c
MD5 6f4dccc46db353471ff0212923375250
BLAKE2b-256 26fa7dec2b299a643b41f25c6891df9383dba5928dc051348142f052a95d7b03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7a06ce3d511f984bc2a7799ccc43165a16b040badc2708f9749f81fa9ba12e5
MD5 4d5f372c22e6a714b0ba00409a47886a
BLAKE2b-256 f24781921175934281a20da6122aea4f83d99ac5a74a08dd75db392d5476f5f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for exact_clustering-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 53c92496af1a57e4a453d28d08dabd57566d2edcd42f0ddb1b5f15e718e81973
MD5 96f7469370244c27127bd551f281661c
BLAKE2b-256 0b479ef8eacf7b0cef1c6fd6d37e6e4f0a8ba9ae5e4976868eb4c0543a56abc5

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