Skip to main content

label-maker-dask

Library for running label-maker as a dask job

Acknowledgements

This work was undertaken with support from Microsoft to be run on the Planetary Computer. With access to the Planetary Computer Hub, you can find an interactive notebook tutorial for running this library.

Basic Example

Instantiate a distributed dask cluster

from dask.distributed import Client
cluster = ...
client = Client(cluster)

Create a label maker job

from label_maker_dask import LabelMakerJob
lmj = LabelMakerJob(
    zoom=13,
    bounds=[-44.4836425781, -23.02665962797, -43.412719726, -22.5856399016],
    classes=[
        { "name": "Roads", "filter": ["has", "highway"] },
        { "name": "Buildings", "filter": ["has", "building"] }
      ],
    imagery="http://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=ACCESS_TOKEN",
    ml_type="segmentation",
    label_source="https://qa-tiles-server-dev.ds.io/services/z17/tiles/{z}/{x}/{y}.pbf"
)

Build & execute the job

lmj.build_job()
lmj.execute_job()

View or otherwise use the results (by passing to a machine learning framework)

for result in lmj.results:
    ...

Release files for label-maker-dask 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 label-maker-dask 0.1.2
File Size Uploaded
label-maker-dask-0.1.2.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for label-maker-dask 0.1.2
File Interpreter ABI Platform
label_maker_dask-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / label-maker-dask-0.1.2.tar.gz

Download URL label-maker-dask-0.1.2.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a1765ae33548b10bb65ebd18922657e22c864566c87e9a9309fa85379637fd51
BLAKE2b-256 checksum
How to use checksums
9cdc66854f180b9b6215ebcde3e69321ae57770f0c52d8cfea732aa9d5bba890
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / label_maker_dask-0.1.2-py3-none-any.whl

Download URL label_maker_dask-0.1.2-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fbb9c9bab117b9802f8a2239a77c6d642f76d14d1b805c392f697add569e0ff
BLAKE2b-256 checksum
How to use checksums
37596a26dddcb71e824c166c853dcba43ffdd88b94fd7423e589001086eb2456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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