Skip to main content

A plugin for pixel classification using XGBoost

Project description

napari-xgboost

License BSD-3 PyPI Python Version tests codecov napari hub

A plugin for pixel classification using XGBoost, inspired by Digital Sreeni's Youtube video.

Note: This plugin is work-in-progress. Check out the github issues to see what's currently being worked on.

Usage

Load an example image into napari. Add a Labels layer by clicking on this button:

img.png

Then, draw a sparse annotation on the image. Try to draw thin lines on background and foreground, e.g. like this:

img_1.png

Then click the menu Layers > Segment > Train Pixel Classifier (XGBoost).

img_2.png

In the dialog, select the original image and the labels layer. Also enter a filename where the model should be saved. Afterwards, click on Run to explore the result.

img_3.png

Installation

You can install napari-xgboost via pip:

pip install napari-xgboost

To install latest development version :

pip install git+https://github.com/haesleinhuepf/napari-xgboost.git

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-xgboost" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

napari_xgboost-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

napari_xgboost-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: napari_xgboost-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for napari_xgboost-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a98e7053eee567b1e5c287b4e0e7f64f4936bb46f4ee5e7f2d08d91c14a37387
MD5 487b79a43aa84c13e0e1156ccd53977f
BLAKE2b-256 fabb7215c26f474c3a88f498bc6d741ab23f289616c9fd3b1feeda8edca37fed

See more details on using hashes here.

File details

Details for the file napari_xgboost-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_xgboost-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60e39daf885b4f0d2e2e29b494adbb0d7e3db7901638728a8656de94d6ba12a9
MD5 e2eaba36bffbb871269f20325554d8ea
BLAKE2b-256 a1cb0bb0d0d9620f39cd3f6ff11667416c9c12dd0962cbab9dee3e533c827948

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page