Difference between revisions of "APA Feature Engineering"
Line 46: | Line 46: | ||
'''Email Exchange Ratio:'''<br> | '''Email Exchange Ratio:'''<br> | ||
This metric will show the number of emails exchanged between the two employees as a ratio of the total number of emails exchanged by these employees. | This metric will show the number of emails exchanged between the two employees as a ratio of the total number of emails exchanged by these employees. | ||
+ | We assume more information is being exchanged with larger email size. | ||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
[[Image:EmailExchangeRatioFormula.PNG|200px]] | [[Image:EmailExchangeRatioFormula.PNG|200px]] | ||
Line 55: | Line 56: | ||
This metric takes the average of email sizes of all the emails exchanged between two employees A and B. | This metric takes the average of email sizes of all the emails exchanged between two employees A and B. | ||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
− | [[Image:EmailexSizeFormula.PNG|600px]] | + | [[Image:EmailexSizeFormula.PNG|600px]]<br> |
[[Image:EmailexSizeSQL.png|600px]] | [[Image:EmailexSizeSQL.png|600px]] | ||
[[Image:EmailexSizeResults.png|400px]]</div> | [[Image:EmailexSizeResults.png|400px]]</div> | ||
+ | <br> | ||
+ | '''Email Chain Ratio:'''<br> | ||
+ | This metric reveals the uniqueness of the communications between two employees by considering number of unique subject lines along with frequency of emails exchanged. | ||
+ | This shows the number of unique conversations taking place between the employees. | ||
+ | <div style="text-align: center;"> | ||
+ | [[Image:EmailChainRatioFormula.PNG|400px]] | ||
+ | [[Image:EmailChainRatioSQL.PNG|800px]] | ||
+ | [[Image:EmailChainRatioResults.PNG|400px]]</div> | ||
+ | <br> | ||
+ | '''Rate of exchange of emails:'''<br> | ||
+ | This metric shows how often emails are exchanged between two employees, in other words, it helps us understand the regularity of email exchange. | ||
+ | <div style="text-align: center;"> | ||
+ | [[Image:RateOfExchangeFormula.PNG|400px]] | ||
+ | [[Image:RateOfExchangeSQL.PNG|800px]] | ||
+ | [[Image:RateOfExchangeResults.PNG|400px]]</div> | ||
+ | <br> |
Revision as of 21:12, 22 February 2017
Subject Line weightage: We will be using subject line weightage as one of the components in determining how important and relevant a single email exchange is to the business. Our approach will be as follows:
- First run an analysis on all the terms occurring in the entire dataset
- This analysis will filter out common words, prepositions and other unimportant words that could potentially skew the results.
- The analysis will return a listen of words along with the frequency of the term’s occurrence in the dataset.
- Based on the results obtained, we would like to calculate the tf-idf of each term.
- tf: how often does the term occur in the document
- idf: how often does the term occur in other documents
- tf-idf will allow us to find the most important terms in the set of documents
- Using the value of this tf-idf, we will assign each term a weightage based on how important it is in determining the importance to the business
- Each subject line of an email will then have an aggregated weightage of the terms appearing in itself.
Email Exchange Ratio:
This metric will show the number of emails exchanged between the two employees as a ratio of the total number of emails exchanged by these employees.
We assume more information is being exchanged with larger email size.
Average Email Exchange Size:
This metric takes the average of email sizes of all the emails exchanged between two employees A and B.
Email Chain Ratio:
This metric reveals the uniqueness of the communications between two employees by considering number of unique subject lines along with frequency of emails exchanged.
This shows the number of unique conversations taking place between the employees.
Rate of exchange of emails:
This metric shows how often emails are exchanged between two employees, in other words, it helps us understand the regularity of email exchange.