Posts

Showing posts from September, 2021

An important concept regarding machine learning.

Image
  Distribution: Distribution shows us how the probabilities of measurements are distributed. 1. Normal Distribution:- Normal distribution is always centered on the average value.     Standard Deviation:  The width of the curve defines the ' standard deviation' . It is called a central limit theorem. Width of the mean value.    Mean ( x̅   ):  Center value or average value of the distribution. Both represent the population called as Population Parameter . The parameters that determine how a distribution fits the population data are called  Population Parameters .  2. Exponential Distribution:- It is also used for probabilities and statistics. 3. Gamma Distribution:- It is also used for probabilities and statistics. In this type of distribution, shape and rate are parameters. Variance:   OR Standard Deviation:   Model: A model  is a way to explore a relationship. We use statistics to determine how useful and how reliable our model is. Hypothesis: Hypothesis means the assumption o

How to perform operations on emails and folders using imap_tools?

Image
  IMAP_TOOLS: imap_tools is a library used to perform operations on emails and folders. Installation: pip install imap-tools How to log in to the mail?  We need to pass the username and password to the login function. And also we can pass the initial_folder name. How to get subjects from a specific folder?   First searches email nums by criteria in the current folder, then fetch and yields. E-mail attributes:  You can fetch the required data of e-mail using email attributes. Like you can fetch sender of mail using from_ attribute. You can easily fetch the date of mail using date attributes.  There are lots of e-mail attributes, we see some of them. Search criteria: You can use three approaches to build search criteria.  Search using subject. Search using text. Search using charset. AND, OR, NOT, Header and UidRange these classes are used for search logic. How to perform actions on email? You can perform the following operations on email:  copy move delete flag append How to perform act