Skip to main content

pydatamail_ml - Machine Learning extension for pydatamail

Project description

Manage your emails with Python

Python package Coverage Status Code style: black

The pydatamail_ml python module extends the functionality of pydatamail by adding support for machine learning. This includes but is not limited to text preprocessing utilities as well as basic machine learning models based on decision trees.

Installation

Install the pydatamail_ml package using pip:

pip install pydatamail_ml

Or alternatively using conda:

conda install -c conda-forge pydatamail_ml

Python interface

Import the pydatamail_ml module

from pydatamail_ml import one_hot_encoding, get_machine_learning_database, gather_data_for_machine_learning, train_model, get_machine_learning_recommendations, text_pipeline, detect_language

The individual components are briefly explained below:

  • one_hot_encoding() - Encoding the email headers fields (to, from, cc) in binary descriptors.
  • get_machine_learning_database() - Get a database to store machine learning models in.
  • get_gather_data_for_machine_learning() - Clean up encoded data by separating input and output.
  • train_model() - Train a randomforest machine learning model.
  • get_machine_learning_recommendations() - Get recommendations from the machine learning model.
  • text_pipeline() - Convert text from the email to machine readable text by removing HTML design elements.
  • detect_language() - Detect the language of the email.

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

pydatamail_ml-0.0.2.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

pydatamail_ml-0.0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file pydatamail_ml-0.0.2.tar.gz.

File metadata

  • Download URL: pydatamail_ml-0.0.2.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pydatamail_ml-0.0.2.tar.gz
Algorithm Hash digest
SHA256 55bc99ee7c2d3468b3d2a0e06affa5deb96896da10cdb0a317c1f94144f0dd82
MD5 ff51c8c88660e4a00b0a40fcf1b5b0df
BLAKE2b-256 a4856ca2db7cea6987040b16915cfbf016b6af21dd54020ceccafc6c2af3a22d

See more details on using hashes here.

File details

Details for the file pydatamail_ml-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pydatamail_ml-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 301a9f62c3c0979d3fd3a837e73f2aa6351cba65e777f0e5fe7b758cdacdb00e
MD5 4b9661b57a30e33116a5641342fd5208
BLAKE2b-256 da04b24985450994dba2795d378a33075c9d38d6acf5c9a17ba94db7076551c1

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