{"id":15603464,"url":"https://github.com/codemeasandwich/aiemail","last_synced_at":"2026-02-27T04:04:41.373Z","repository":{"id":234886852,"uuid":"775054494","full_name":"codemeasandwich/aiEmail","owner":"codemeasandwich","description":"multi-label email classification","archived":false,"fork":false,"pushed_at":"2024-04-23T16:51:41.000Z","size":266,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T04:44:40.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemeasandwich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-20T17:15:37.000Z","updated_at":"2024-04-23T16:51:45.000Z","dependencies_parsed_at":"2024-04-23T17:55:36.638Z","dependency_job_id":null,"html_url":"https://github.com/codemeasandwich/aiEmail","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":0.4545454545454546,"last_synced_commit":"a9fed2f6befbb63fe12efb3a1331d11f427afc98"},"previous_names":["codemeasandwich/aiemail"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemeasandwich%2FaiEmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemeasandwich%2FaiEmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemeasandwich%2FaiEmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemeasandwich%2FaiEmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemeasandwich","download_url":"https://codeload.github.com/codemeasandwich/aiEmail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247562659,"owners_count":20958952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T03:03:28.081Z","updated_at":"2025-10-26T19:32:36.490Z","avatar_url":"https://github.com/codemeasandwich.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi-Label Email Classification System\n\nThis repository contains the code for a multi-label email classification system. The system is designed to classify emails based on multiple dependent variables (labels) such as Type 2, Type 3, and Type 4. It provides a modular and extensible architecture that allows for easy modification and addition of preprocessing steps, machine learning models, and evaluation metrics.\n\n## Features\n\n- Separation of concerns (SoC) architecture with components for preprocessing, embeddings, modeling, etc.\n- Supports two design decisions for multi-label classification:\n  1. Chained Multi-outputs Approach: Trains a single model instance on chained labels (e.g., Type 2, Type 2+3, Type 2+3+4)\n  2. Hierarchical Modeling Approach: Trains multiple model instances on filtered data based on the classes of preceding labels\n- Encapsulates input data using a `Data` class for consistent access across models\n- Implements multiple machine learning models with a consistent interface for training, prediction, and evaluation\n- Provides a main controller (`main.py`) for orchestrating the preprocessing, embedding, modeling, and evaluation steps\n\n## Repository Structure\n\n- `main.py`: Main controller script for running the email classification system\n- `preprocess.py`: Contains functions for data preprocessing, including de-duplication, noise removal, and translation\n- `embeddings.py`: Implements functions for generating embeddings from text data (e.g., TF-IDF)\n- `modelling/`: Directory containing modules related to modeling\n  - `modelling.py`: Defines functions for model training, prediction, and evaluation\n  - `data_model.py`: Implements the `Data` class for encapsulating input data\n- `model/`: Directory containing implementations of various machine learning models\n  - `base.py`: Defines the abstract base class for all models\n  - `randomforest.py`: Implements the Random Forest model\n  - `sgd.py`: Implements the Stochastic Gradient Descent (SGD) model\n  - `adaboost.py`: Implements the AdaBoost model\n  - `voting.py`: Implements the Voting Classifier model\n  - `hist_gb.py`: Implements the Histogram-based Gradient Boosting model\n  - `random_trees_ensembling.py`: Implements the Random Trees Embedding model\n- `data/`: Directory containing the input data files\n  - `AppGallery.csv`: Input data file for the AppGallery domain\n  - `Purchasing.csv`: Input data file for the Purchasing domain\n- `Config.py`: Configuration file for storing constants and settings\n\n## Usage\n\n1. Install the required dependencies (TODO: Create `requirements.txt` file).\n2. Place the input data files (`AppGallery.csv` and `Purchasing.csv`) in the `data/` directory.\n3. Modify the `Config.py` file to adjust any configuration settings if needed.\n4. Run the `main.py` script to execute the email classification system.\n\n## Contributing\n\nContributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeasandwich%2Faiemail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemeasandwich%2Faiemail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeasandwich%2Faiemail/lists"}