Skip to main content

No project description provided

Project description

Landmark

landmark is a Python package that constructs a sequence of landmarks $L_k = ({x_1, x_2, \dots, x_k })$ from a point set $X \subset \mathbb{R}^d$ or metric space $(X, d_X)$ via furthest-first traversal:

$$ x_i = \mathop{\mathrm{arg min}}\limits_{x \in X} \mathop{} d_X(x, L_{i − 1}) $$

The resulting landmarks satisfy a number of convenient coverage and packing properties. Below is an example a data set $X$ (blue points), some sample landmarks $L$ (red), along with the coverage (yellow) and packing (orange) properties they obey.

Landmarks example

The sequence formed by resulting landmarks, also called the greedy permutation, can be used to approximate a number of classical problems, such as the traveling saleman problem, the metric k-center clustering problem, and various proximity / range searching problems.

Installation

The package can be installed with pip:

python -m pip install scikit-landmark

Usage

Given a point cloud $X \in \mathbb{R}^{n \times d}$ represented as a numpy matrix with $n$ points in $d$ dimensions, the indices of the landmarks can be found with the landmarks function:

from landmark import landmarks
X = np.random.uniform(size=(50,2))
ind = landmarks(X, k = 10) ## Finds the indices of 25 landmarks

The first $k$-indices of ind are equivalent to the $k$-th prefix of the greedy permutation. You can get their covering radii and their predecessors by specifying full_output=True:

ind, info = landmarks(X, k = 10, full_output = True)
print(ind)                  ## prefix indices
print(info['radii'])        ## insertion radii 
print(info['predecessors']) ## predecessor map 

For other usages, see the documentation.

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

scikit_landmark-0.1.2.tar.gz (64.3 MB view details)

Uploaded Source

Built Distributions

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

scikit_landmark-0.1.2-cp312-cp312-win_amd64.whl (43.0 kB view details)

Uploaded CPython 3.12Windows x86-64

scikit_landmark-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (47.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

scikit_landmark-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (37.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

scikit_landmark-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl (37.9 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

scikit_landmark-0.1.2-cp311-cp311-win_amd64.whl (42.8 kB view details)

Uploaded CPython 3.11Windows x86-64

scikit_landmark-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (47.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

scikit_landmark-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (36.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

scikit_landmark-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl (37.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

scikit_landmark-0.1.2-cp310-cp310-win_amd64.whl (42.8 kB view details)

Uploaded CPython 3.10Windows x86-64

scikit_landmark-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (47.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

scikit_landmark-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (36.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

scikit_landmark-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl (37.6 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

scikit_landmark-0.1.2-cp39-cp39-win_amd64.whl (42.7 kB view details)

Uploaded CPython 3.9Windows x86-64

scikit_landmark-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (47.4 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

scikit_landmark-0.1.2-cp39-cp39-macosx_11_0_arm64.whl (36.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

scikit_landmark-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl (37.6 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

Details for the file scikit_landmark-0.1.2.tar.gz.

File metadata

  • Download URL: scikit_landmark-0.1.2.tar.gz
  • Upload date:
  • Size: 64.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scikit_landmark-0.1.2.tar.gz
Algorithm Hash digest
SHA256 393396daab9d12a6c791bbeb63fb71a9694e74a3ddd892437cc80f94a473b096
MD5 c4af377198f2d4e0a67845d82a9dc9f2
BLAKE2b-256 c6f8937007ec02426c6c4660a01f39f7a3985bfba291f5c6f4bf0a4ca85bfae6

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2.tar.gz:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6c9ae6e29862f8302ffca846677eb19c3fd15fb082bbd96a1ee6cf7ca6c8fd23
MD5 37b83f066f9bc93534f15af7d560732d
BLAKE2b-256 c9514d3c384072feefb8a07e81763a6e6d37090077e196b572cc28890933d3b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 624c9dd46c1f1546f8cbda3e14f8a5dd1d00ca3136c5372625aec7a062753ef3
MD5 dc9327a89d996a70386b24afba0e2705
BLAKE2b-256 b3a8c82f4c6bbc82cd1eef4030cf410c533c1ad935509e5ce8d2b185eb9614f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 807c3ed13402d8631f784856d75f839bdc7222554da862c632a2d47c058707a2
MD5 dc7d19ea3efba7bf6ad3446d97c8f36b
BLAKE2b-256 e0079e92a7889cfedf4a8e0c2e6ef06614f78d7b733a73bbdf4c2782e0203853

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d6ffd18f06bb1f792479a8a7610f8a4d10e963f8988c3ccdf3e8e58c536ebda8
MD5 75f160d698eedf8178ff810780314983
BLAKE2b-256 4e2ff556e6426f9dfe9ab47f08916c3722f2e72c67ee1f768920a7d02c1e9d92

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 73dc7641d96eaf655b3c16d324ebf16f3b6e5417296612c159bca8b63425840e
MD5 21769c51a356fc0f15640eb3ad40d7bc
BLAKE2b-256 41b2dc6faa54876a31a6cbbc69d9d579f7d82a6c69c27fb0720ee061de1cb310

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55731373d448f03e7465093413774f92e95719fe5145d1ca3b3fd725021ebad8
MD5 1d97ee86e874c5a7a16f2bb410b7e951
BLAKE2b-256 82c28f20dc9e6126c827414d25ff664cccc263603762c0c274a7cd33e137a6ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b734b1f296bfa1cb59ba0416fa00527bc2001c90d5619f1083d8f2f6f559ab5
MD5 9ef29da9dde068ff90117590cac15301
BLAKE2b-256 b40aa300819a0f3ed94e377ab2bf1ef98f55bed1bcbcdc2a853f9e78ab5226c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 93f453ff34aa0db8596be7fb3016ff45a5dcf149d7f6e361b2c4403a2ac3adce
MD5 33f4bd11730adc4d772d302389578b6a
BLAKE2b-256 2637f7e9a00b4a1dd2a4c006c0d4a6ea52e88d22e3e84775a09d5e7ca9806f7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 efe5d76ece43cc04d83a1114a3c6c0f0a0f5339d82c9fd6ea2f2c82774c9d470
MD5 c2a84db297477ff56980a404544151a7
BLAKE2b-256 cc40f86ea6a762541cf87f0d86239c49de7fa1c832fe3839809a221a600e2af5

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3c45698fb6c57080989cd37d603d28dc2526b784779a566ee158423162a241f1
MD5 56b0d493acce87e0b8e4cd3937c149fe
BLAKE2b-256 d5759aa4c96c25ad0424318fe19ecbbd1fb164178f48cb86a588d0e16dee1142

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03ee10d36204f4a561c66c8597414b1af3c1ceb19d52337b71e78b7908c7d5cf
MD5 59365d61a6c518963c75e05caaa19f5b
BLAKE2b-256 ce00b1da798fbfcf49277419c8c211a220c13bdbd6911f5eef898d50259ae58a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3fcc55134f232b154a07f9779ede91630053af0e58a92eb127d5d699a9df59e6
MD5 81254e758f570af1a3a956ef7865cac3
BLAKE2b-256 81f3c3419c2c02e53f7411020158d3411397c11e6e7d76b1d5c0e14df6ed2103

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3341df5d4d98f0adf596bba1d81158d5ce8df91655946afacf557bd086c924bb
MD5 5e8911ae8d6dbad874f7ebeacb684233
BLAKE2b-256 23c4ba19c2aa73a70702c7e2c69acb88afaab9e12aa18ae30f04e0c6f1d32cb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp39-cp39-win_amd64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20462a54418014e728a7323c96ac258990630cbb0e21d5815c5b1e5ae7678e87
MD5 163896da523fa8248ee95c78fc9b543b
BLAKE2b-256 ea56cb4c936e5f637b9c920036ce54d6c59d5cee0b31c3434ebbba0b7c598e01

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b17d3f8ff6bd4cab3eb8cf38611d20e2cfcd84a1b091aba5a9e44cc86973439
MD5 f8e82bf67ccb1e93239aa426d0645676
BLAKE2b-256 e51edbbd8ef511c587f7f9508b23c890f55fb86009ec87ad509cd95b7b8d891b

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_landmark-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for scikit_landmark-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8510be56cebac4d7a070442b99ed948b8d544a93967451540363b308f928e8c7
MD5 e7d42347bcddaea633dcd87f0f8ab831
BLAKE2b-256 ec7a035bfa9e9071008c22b470def2498fafee803400d1533c11f6a889740833

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_landmark-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl:

Publisher: wheels.yml on peekxc/landmark-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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