Skip to main content

Machine learning with dirty categories.

Project description

dirty_cat has migrated to skrub . This repository will no longer be maintained.

Use skrub, it has all the features of dirty-cat and more.

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].

What can dirty_cat do?

dirty_cat provides tools (TableVectorizer, 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.2.post0.tar.gz (103.0 kB view details)

Uploaded Source

File details

Details for the file dirty_cat-0.4.2.post0.tar.gz.

File metadata

  • Download URL: dirty_cat-0.4.2.post0.tar.gz
  • Upload date:
  • Size: 103.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for dirty_cat-0.4.2.post0.tar.gz
Algorithm Hash digest
SHA256 4d6895b3efbc45ac451cd08d49db6ff2bd6b7e96f92e251c21ee44bf7ebbb23e
MD5 4c0b39d70b60d3308ce658d92395682b
BLAKE2b-256 0f5a2ff125f7dc0977ba47eeab6f5f3bfe5736f431b3db191d5f6e0bda6c67e4

See more details on using hashes here.

Supported by

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