Skip to main content

Machine learning with dirty categories.

Project description

dirty_cat logo

py_ver pypi_var pypi_dl codecov circleci black

dirty_cat is a Python library that facilitates machine-learning on dirty categorical variables.

For a detailed description of the problem of encoding dirty categorical data, see Similarity encoding for learning with dirty categorical variables [1] and Encoding high-cardinality string categorical variables [2].

If you like the package, please spread the word, and ⭐ the repository!

What can dirty_cat do?

dirty_cat provides tools (SuperVectorizer, fuzzy_join…) and encoders (GapEncoder, MinHashEncoder…) for morphological similarities, for which we usually identify three common cases: similarities, typos and variations

The first example notebook goes in-depth on how to identify and deal with dirty data using the dirty_cat library.

What dirty_cat does not

Semantic similarities are currently not supported. For example, the similarity between car and automobile is outside the reach of the methods implemented here.

This kind of problem is tackled by Natural Language Processing methods.

dirty_cat can still help with handling typos and variations in this kind of setting.

Installation

dirty_cat can be easily installed via pip:

pip install dirty_cat

Dependencies

Dependencies and minimal versions are listed in the setup file.

Contributing

If you want to encourage development of dirty_cat, the best thing to do is to spread the word!

If you encounter an issue while using dirty_cat, please open an issue and/or submit a pull request. Don’t hesitate, you’re helping to make this project better for everyone!

Additional resources

References

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

dirty_cat-0.4.0b1.tar.gz (91.0 kB view details)

Uploaded Source

Built Distribution

dirty_cat-0.4.0b1-py3-none-any.whl (109.1 kB view details)

Uploaded Python 3

File details

Details for the file dirty_cat-0.4.0b1.tar.gz.

File metadata

  • Download URL: dirty_cat-0.4.0b1.tar.gz
  • Upload date:
  • Size: 91.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for dirty_cat-0.4.0b1.tar.gz
Algorithm Hash digest
SHA256 5627ce1294675e1dbf55c631fed1acd07a5237688efc54f787e1f855bc10b6ba
MD5 e52173416ffda32e9fb6b9bbbb053353
BLAKE2b-256 ab4ef2191e13ad8be4455508402dc9dbca912bbf78a0ffa4bb3ddf88fa0fd6d8

See more details on using hashes here.

File details

Details for the file dirty_cat-0.4.0b1-py3-none-any.whl.

File metadata

  • Download URL: dirty_cat-0.4.0b1-py3-none-any.whl
  • Upload date:
  • Size: 109.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for dirty_cat-0.4.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 f48c86e19e99e05fdd9c5fc5d26f745e94631c7eeed93fd0ae9c3802a18ca9af
MD5 77446cb4aec346a9c87651e8e14b7689
BLAKE2b-256 6498971c5adc9acdb21b831a01120a85b8c71f452296e74d1818f488f741b71f

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