Metadata-Version: 2.1
Name: hover
Version: 0.8.1
Summary: Label data at scale. Fun and precision included.
Home-page: https://github.com/phurwicz/hover
Author: Pavel
Author-email: pavelhurwicz@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

![Hover](https://raw.githubusercontent.com/phurwicz/hover/main/docs/images/hover-logo-title.png)

> Explore and label on a map of raw data.
>
> Get enough to feed your model in no time.

[![PyPI Version](https://img.shields.io/pypi/v/hover?logo=pypi&logoColor=white)](https://pypi.org/project/hover/)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/hover)](https://github.com/conda-forge/hover-feedstock)
![Downloads](https://static.pepy.tech/personalized-badge/hover?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=pypi%20downloads)
![Main Build Status](https://img.shields.io/github/actions/workflow/status/phurwicz/hover/cross-os-source-test.yml?branch=main&label=main&logo=github)
![Nightly Build Status](https://img.shields.io/github/actions/workflow/status/phurwicz/hover/quick-source-test.yml?branch=nightly&label=nightly&logo=github)
![Codacy Grade](https://img.shields.io/codacy/grade/689827d9077b43ac8721c7658d122d1a?logo=codacy&logoColor=white)
![Codacy Coverage](https://img.shields.io/codacy/coverage/689827d9077b43ac8721c7658d122d1a/main?logo=codacy&logoColor=white)

`hover` speeds up data labeling through `embedding + visualization + callbacks`.

-   You just need raw data and an embedding to get a map.
-   Explore the map to find "zones" that are easy and those that are tricky.
-   Start the conquest of your data by coloring the zones through wisdom!

![GIF Demo](https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.5.0/trailer-short.gif)

## :rocket: Live Demos

### [**With code**](https://phurwicz.github.io/hover/pages/tutorial/t0-quickstart/)

-   edit & run code in your browser to get a labeling interface, with guides along the way.

### [**Without code**](https://mybinder.org/v2/gh/phurwicz/hover-binder/master?urlpath=/proxy/5006/app-simple-annotator)

-   go directly to a labeling interface, pre-coded and hosted on Binder.

## :sparkles: Features *(click bullets to show GIF)*

> **It's fast because it labels data in bulk.**

:telescope: A semantic scatter plot of your data for labeling, equipped with

-   <details>
      <summary> <b>Tooltip</b> for each point on mouse hover </summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/image-tooltip.gif">
    </details>

-   <details>
      <summary> <b>Table view</b> for inspecting all selected points </summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/selection-table.gif">
    </details>

-   <details>
      <summary> <b>Toggle</b> buttons that clearly distinguish data subsets </summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/subset-toggle.gif">
    </details>

-   <details>
      <summary> <b>Search</b> widgets for ad-hoc data highlight </summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/text-search-response.gif">
    </details>

> **It's accurate because multiple angles work together.**

:microscope: Supplementary views to use in conjunction with the annotator, including

-   <details>
      <summary> Finder: <b>filter data by search criteria</b></summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/finder-filter.gif">
    </details>

-   <details>
      <summary> Softlabel: <b>active learning by in-the-loop model prediction score</b></summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/active-learning.gif">
    </details>

-   <details>
      <summary> Snorkel: <b>custom functions for labeling and filtering</b></summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/labeling-function.gif">
    </details>

> **It's flexible (and fun!) because the process never gets old.**

:toolbox: Additional tools and options that allow you to

-   <details>
      <summary> Go to <b>higher dimensions</b> (3D? 4D?) and choose your xy-axes </summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/change-axes.gif">
    </details>

-   <details>
      <summary> <b>Consecutively select</b> across areas, dimensions, and views</summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/keep-selecting.gif">
    </details>

-   <details>
      <summary> <b>Kick outliers</b> and <b>fix mistakes</b></summary>
      <img src="https://raw.githubusercontent.com/phurwicz/hover-gallery/main/0.7.0/evict-and-patch.gif">
    </details>

:bulb: Click on the bullet points above to view GIFs!

## :package: Install

> Python: 3.8+
>
> OS: Linux & Mac & Windows

PyPI (for all releases): `pip install hover`

Conda-forge (for 0.6.0 and above): `conda install -c conda-forge hover`

For Windows users, we recommend [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/about).

-   On Windows itself you will need [C++ build tools](https://visualstudio.microsoft.com/downloads/) for dependencies.

## :book: Resources

-   [Tutorials](https://phurwicz.github.io/hover/pages/tutorial/t0-quickstart/)
-   [Binder repo](https://github.com/phurwicz/hover-binder)
-   [Changelog](https://github.com/phurwicz/hover/blob/main/CHANGELOG.md)
-   [Documentation](https://phurwicz.github.io/hover/)

## :flags: Announcements

-   **Jan 21, 2023** version 0.8.0 is now available. Check out the [changelog](https://github.com/phurwicz/hover/blob/main/CHANGELOG.md) for details :partying_face:.

## :bell: Remarks

### Shoutouts

-   Thanks to [`Bokeh`](https://bokeh.org) because `hover` would not exist without linked plots and callbacks, or be nearly as good without embeddable server apps.
-   Thanks to [Philip Vollet](https://de.linkedin.com/in/philipvollet) for sharing `hover` with the community even when it was really green.

### Contributing

-   All feedbacks are welcome, **especially what you find lacking and want it fixed!**
-   `./requirements-dev.txt` lists required packages for development.
-   Pull requests are advised to use a superset of the pre-commit hooks listed in [.pre-commit-config.yaml](https://github.com/phurwicz/hover/blob/main/.pre-commit-config.yaml).

### Citation

If you have found `hover` useful to your work, please [let us know](https://github.com/phurwicz/hover/discussions) :hugs:

```tex
@misc{hover,
  title={{hover}: label data at scale},
  url={https://github.com/phurwicz/hover},
  note={Open software from https://github.com/phurwicz/hover},
  author={
    Pavel Hurwicz and
    Haochuan Wei},
  year={2021},
}
```
