Skip to main content

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.

Metadata

Release files for scikit-landmark 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scikit-landmark 0.1.2
File Size Uploaded
scikit_landmark-0.1.2.tar.gz 64.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for scikit-landmark 0.1.2
File
scikit_landmark-0.1.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
scikit_landmark-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
scikit_landmark-0.1.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
scikit_landmark-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details
scikit_landmark-0.1.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
scikit_landmark-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
scikit_landmark-0.1.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
scikit_landmark-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
scikit_landmark-0.1.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
scikit_landmark-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
scikit_landmark-0.1.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
scikit_landmark-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
scikit_landmark-0.1.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
scikit_landmark-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
scikit_landmark-0.1.2-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details
scikit_landmark-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details

Total release size: 65.0 MB

Release files / scikit_landmark-0.1.2.tar.gz

Download URL scikit_landmark-0.1.2.tar.gz
Size 64.3 MB
Tags Source
SHA-256 checksum
How to use checksums
393396daab9d12a6c791bbeb63fb71a9694e74a3ddd892437cc80f94a473b096
BLAKE2b-256 checksum
How to use checksums
c6f8937007ec02426c6c4660a01f39f7a3985bfba291f5c6f4bf0a4ca85bfae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp312-cp312-win_amd64.whl

Download URL scikit_landmark-0.1.2-cp312-cp312-win_amd64.whl
Size 43.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
6c9ae6e29862f8302ffca846677eb19c3fd15fb082bbd96a1ee6cf7ca6c8fd23
BLAKE2b-256 checksum
How to use checksums
c9514d3c384072feefb8a07e81763a6e6d37090077e196b572cc28890933d3b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_landmark-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 47.5 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
624c9dd46c1f1546f8cbda3e14f8a5dd1d00ca3136c5372625aec7a062753ef3
BLAKE2b-256 checksum
How to use checksums
b3a8c82f4c6bbc82cd1eef4030cf410c533c1ad935509e5ce8d2b185eb9614f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL scikit_landmark-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Size 37.1 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
807c3ed13402d8631f784856d75f839bdc7222554da862c632a2d47c058707a2
BLAKE2b-256 checksum
How to use checksums
e0079e92a7889cfedf4a8e0c2e6ef06614f78d7b733a73bbdf4c2782e0203853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl

Download URL scikit_landmark-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl
Size 37.9 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
d6ffd18f06bb1f792479a8a7610f8a4d10e963f8988c3ccdf3e8e58c536ebda8
BLAKE2b-256 checksum
How to use checksums
4e2ff556e6426f9dfe9ab47f08916c3722f2e72c67ee1f768920a7d02c1e9d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp311-cp311-win_amd64.whl

Download URL scikit_landmark-0.1.2-cp311-cp311-win_amd64.whl
Size 42.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
73dc7641d96eaf655b3c16d324ebf16f3b6e5417296612c159bca8b63425840e
BLAKE2b-256 checksum
How to use checksums
41b2dc6faa54876a31a6cbbc69d9d579f7d82a6c69c27fb0720ee061de1cb310
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_landmark-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 47.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
55731373d448f03e7465093413774f92e95719fe5145d1ca3b3fd725021ebad8
BLAKE2b-256 checksum
How to use checksums
82c28f20dc9e6126c827414d25ff664cccc263603762c0c274a7cd33e137a6ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL scikit_landmark-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Size 36.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3b734b1f296bfa1cb59ba0416fa00527bc2001c90d5619f1083d8f2f6f559ab5
BLAKE2b-256 checksum
How to use checksums
b40aa300819a0f3ed94e377ab2bf1ef98f55bed1bcbcdc2a853f9e78ab5226c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl

Download URL scikit_landmark-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl
Size 37.6 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
93f453ff34aa0db8596be7fb3016ff45a5dcf149d7f6e361b2c4403a2ac3adce
BLAKE2b-256 checksum
How to use checksums
2637f7e9a00b4a1dd2a4c006c0d4a6ea52e88d22e3e84775a09d5e7ca9806f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp310-cp310-win_amd64.whl

Download URL scikit_landmark-0.1.2-cp310-cp310-win_amd64.whl
Size 42.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
efe5d76ece43cc04d83a1114a3c6c0f0a0f5339d82c9fd6ea2f2c82774c9d470
BLAKE2b-256 checksum
How to use checksums
cc40f86ea6a762541cf87f0d86239c49de7fa1c832fe3839809a221a600e2af5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_landmark-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 47.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3c45698fb6c57080989cd37d603d28dc2526b784779a566ee158423162a241f1
BLAKE2b-256 checksum
How to use checksums
d5759aa4c96c25ad0424318fe19ecbbd1fb164178f48cb86a588d0e16dee1142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp310-cp310-macosx_11_0_arm64.whl

Download URL scikit_landmark-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Size 36.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
03ee10d36204f4a561c66c8597414b1af3c1ceb19d52337b71e78b7908c7d5cf
BLAKE2b-256 checksum
How to use checksums
ce00b1da798fbfcf49277419c8c211a220c13bdbd6911f5eef898d50259ae58a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl

Download URL scikit_landmark-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl
Size 37.6 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3fcc55134f232b154a07f9779ede91630053af0e58a92eb127d5d699a9df59e6
BLAKE2b-256 checksum
How to use checksums
81f3c3419c2c02e53f7411020158d3411397c11e6e7d76b1d5c0e14df6ed2103
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp39-cp39-win_amd64.whl

Download URL scikit_landmark-0.1.2-cp39-cp39-win_amd64.whl
Size 42.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
3341df5d4d98f0adf596bba1d81158d5ce8df91655946afacf557bd086c924bb
BLAKE2b-256 checksum
How to use checksums
23c4ba19c2aa73a70702c7e2c69acb88afaab9e12aa18ae30f04e0c6f1d32cb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scikit_landmark-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 47.4 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
20462a54418014e728a7323c96ac258990630cbb0e21d5815c5b1e5ae7678e87
BLAKE2b-256 checksum
How to use checksums
ea56cb4c936e5f637b9c920036ce54d6c59d5cee0b31c3434ebbba0b7c598e01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp39-cp39-macosx_11_0_arm64.whl

Download URL scikit_landmark-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
Size 36.7 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0b17d3f8ff6bd4cab3eb8cf38611d20e2cfcd84a1b091aba5a9e44cc86973439
BLAKE2b-256 checksum
How to use checksums
e51edbbd8ef511c587f7f9508b23c890f55fb86009ec87ad509cd95b7b8d891b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release files / scikit_landmark-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl

Download URL scikit_landmark-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl
Size 37.6 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
8510be56cebac4d7a070442b99ed948b8d544a93967451540363b308f928e8c7
BLAKE2b-256 checksum
How to use checksums
ec7a035bfa9e9071008c22b470def2498fafee803400d1533c11f6a889740833
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

17 release files

0.0.5

21 release files

0.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page