Ad blocking is the operation of removing or altering online advertising in a web browser or an application. In this recipe, you will utilize machine learning to detect ads so that they can be blocked and you can browse hassle-free!
Ad blocking using machine learning
Getting ready
Preparation for this recipe involves installing scikit-learn and pandas in pip. The command is as follows:
pip install sklearn pandas
In preparation for this recipe, download the internet advertisements dataset from UCI's machine learning repository: https://archive.ics.uci.edu/ml/datasets/internet+advertisements.