How Spam Detection works?
A spam, according to Google is an "irrelevant or unsolicited messages sent over the Internet, typically to a large number of users, for the purposes of advertising, phishing, spreading malware, etc.". We receive these messages on our mail boxes almost daily. But they do not stop there. They keep on coming to our inbox until we either respond to them or put them in our spam box which Google Mail or Yahoo Mail or whatever you use, learns about it and puts them in the spam box as soon as another spam mail comes to us.
So how does the mail service provider know if it is a spam mail or not? The answer is machine learning. In machine learning we program a computer such that it can get into a self learning mode, so that when the computer gets a new data it can learn, adapt and grow from it.
A newbie's guide to Machine Learning in Python
Though machine learning is a highly advanced topic, I will still try my level best to keep this as newbie friendly as possible. So how do you setup your computer? Follow these simple steps-
- Install Python in your PC. Look here for complete steps https://evilporthacker.blogspot.in/2017/09/installing-python-in-your-windows.html
- Install a good text editor like Sublime Text 3 https://www.sublimetext.com/3
- Open up command prompt.
- Type the following commands to install the important modules in Python-
- pip install nltk
- pip install numpy
- pip install scipy
- pip install sklearn
- Though a proper, real life machine learning + natural language processing project requires more modules, for this project you can install these 4 only.
Brief explanation of the work of the libraries
- NLTK (Natural Language Toolkit) is a library that has awesome tools for human language processing. It provides easy-to-use interfaces to over 50 corpora and lexical resources. In simple words, it a Swiss army knife for Natural Language Processing.
- Sklearn (Scikit Learn) is a library that has simple yet efficient tools for data analysis and mining. I consider it to be the greatest library for machine learning in Python.
- Numpy provides great tools for numerical operations like matrix manipulation, fourier transform, linear algebra etc.
- Scipy is a Python-based ecosystem of open-source software for mathematics, science, and engineering. (Could not get words to describe it. So just copied it from the website😅).
Conclusion
With your computer now fully setup, you can start this project by going to the second part where I will be showing you how to get the training data for the models and all other stuff we will be training. I included all the links to the libraries just in case you want to know something more about the modules. Goodbye for now.......😙
Nice informative blog.. Keep updating these types of informative updates regularly...Also Visit this site for Machine Learning with Python Training
ReplyDeleteIt is really a great work and the way in which u r sharing the knowledge is excellent.Thanks for helping me to understand basic concepts. As a beginner in machine Learning programming your post help me a lot.Thanks for your informative article.
ReplyDeleteThis is one awesome blog article. .
ReplyDeletePython Training in Gurgaon
Python Course in Gurgaon
Python Training institute in Gurgaon
It is really a great work and the way in which u r sharing the knowledge is excellent.Thanks for helping me to understand basic concepts. As a beginner in machine Learning programming your post help me a lot.Thanks for your informative article.
ReplyDeleteIELTS Coaching in chennai
German Classes in Chennai
GRE Coaching Classes in Chennai
TOEFL Coaching in Chennai
spoken english classes in chennai | Communication training