Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:22:04+00:00 2026-06-18T08:22:04+00:00

I am trying to produce a simple email ranking program (something like a priority

  • 0

I am trying to produce a simple email ranking program (something like a priority inbox) in Python. Based on the frequency of emails received from senders, so for example have a training set of say 50%, where the frequency of senders is counted and then a test set of 50% which is ranked in order based on the training (so an email from a sender who sends lots of messages is ranked highly).

I have written some Python code to take emails and extract the ‘From’ address from each. I have placed this information in a list which shows the most common email senders (example snippet from this list below).

 //(Email address, frequency of emails received from this sender)//Not Code
 ('tester1@csmining.org', 244)
 ('tester2@csmining.org', 162)
 ('tester3@csmining.org', 154)
 ('tester4@csmining.org', 75)
 ('tester5@csmining.org', 50)

I am aware that a number of machine learning algorithms can be used effectively to train and test my data to do what i require. However, i am unsure which of these i can use to give me the best results?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:22:05+00:00Added an answer on June 18, 2026 at 8:22 am

    Ranking only based on sender is never a good idea. For myself, I subscribe email notifications from github commit. Everyday, I receive hundreds of emails due to my co-worker’s code commits.

    This is never an easy problem, even Gmail priority inbox does not do well from my experience. A good email priority ranking or scoring system needs good features. I will suggest following features to start with. See The Learning Behind Gmail Priority Inbox:

    • Social features. Sender or sender domain;
    • Thread feature. Is this email in an active thread? What is the sequence number of this email in the thread? Who are the cc’ed users if any?
    • Time feature. When was this email received? If you have access to the owner’s reply, you might want to keep track of how long it takes the owner to reply.
    • Content feature. This is the bag-of-words model used in spam filtering.
    • Behavior. This is how the email account owner responses to the email. Is it replied? or never read? or immediately deleted? or archived to different folders? tagged? If it is replied, you might want to do some content analysis as well. The length of the reply might also be a good feature.

    For the regression model, Gmail uses linear logistic regression to keep learning and prediction scalable.

    Last as what Gmail does, you can ask the users to help you to improve the system by giving them an option to mark important emails.

    Further readings:

    • Understanding Email Use: Predicting Action on a Message
    • The Learning Behind Gmail Priority Inbox
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

actually I thought I was trying something really simple. ControllerClassNameHandlerMapping sounded great to produce
I'm trying to use the EasyDialogs python module to produce some simple dialog boxes
I am trying to create a program to perform a simple task and produce
I am trying to produce a simple python script for a Linux VPS that
I'm trying to produce a simple drop down menu, with minimal JS and CSS.
I trying to produce a DockLayoutPanel which looks like the example in the Developer's
I am trying to write a simple Gui to produce a random password. The
I am trying to interact with a simple .exe I created from some Python
I am trying to do something that I think is quite simple. Suppose I
I am trying to produce a simple scripting system that will be used to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.