Posts

Showing posts from April, 2019

Predict EPL results (Part 2: Neural Network example)

Image
Neural Network explained Artificial Neural Network is a model that receives input in vector/matrix form and uses them to compute the output  It is made up of 3 different layers namely input layer, hidden layer and output layer.  Each layer is made up of 1 or more artificial neurons (aka nodes)  The nodes are interconnected with one another Each node is assigned to a weight value denoted by  w  that determines how much emphasis is given to the learned information extracted from the raw training data  Note: A   Neural Network with 1 hidden layer is known as  Shallow Neural Network Types of Neural Networks Feedforward Neural Network Convolutional Neural Network (CNN) Recurrent Neural Network - Long Short Term Memory (LSTM) Networks Recursive Neural Network Neural Network Architecture The figure below shows a  Neural Network Architecture  that is made up of n  features,  h  hidden layers and ...

Install Python, Numpy, Matplotlib and Scipy on Windows

Image
Step-by-Step Guide 1) Download Python Go to Python website  From the 'Download' tab, select the Operating System (OS)  Then, click on the Python version that you want to download Select the Operating System and Python version For Windows users, download ' Windows x86-64 executable installer ' Select the file 2) Install Python After the file has downloaded, click on it On the Setup page, select the 'Add Python 3.7 to PATH' Python Setup Page Once the installation is done, click on 'Modify' to add or remove features Modify Setup Select the features that you want to download and choose the install location. Then click 'Install' Download additional features 3)  Install Numpy From the command prompt, change to the install location of the Python Key in the command 'pip install numpy' Install Numpy 4) Install Matplotlib Key in the command 'pip instal...

How to connect Python to MySQL Workbench

Image
Step-by-Step Guide 1) Download MySQL: For Windows user , you can download  MySQL Installer that allows you to install all the products in one package. Link as follows https://dev.mysql.com/downloads/windows/installer/8.0.html Download MySQL Installer (For Windows only!) Begin download Otherwise, you can download the product 1 by 1  (Remember to select your Operating System for all!) MySQL Workbench  MySQL Connector / Python   (Note: You have to download Python first. And remember to select the OS and Python version!) MySQL Community Server For Windows users... 2) How to setup MySQL Installer We are going to show how to download and install MySQL Community Server only... Double click the file and install it Once it has finished installing, you will see this window below and click on the 'Add' option Click 'Add' option Agree on their License terms and click 'next' Agree on License Terms Selec...

Easiest way to crawl data out from a web page in Python

Image
Tried & Tested This post tells you how to crawl / extract / scrape data from a web page in an easy and proven way.... Data Claw Machine Let's say we want to stay updated to all the latest news of EPL. But we don't have time to read through all the articles. So, we think of getting the titles of the featured news in the EPL web page. Step-by-Step Guide 1) Launch Anaconda Navigator  2) Launch Jupyter  Launch "Jupyter" in Anaconda Navigator 3) Create a new Python notebook Create new Python notebook 4) Import all the libraries Import libraries 5) Get the URL of EPL web page Get URL 6) Use BeautifulSoup to parse the web page Make soup to parse the web page 7) Check the HTML structure of the web page Check the HTML  structure 8)   Use BeautifulSoup to crawl all the "Featured Articles"  find_all will look into every section in the HTML script that has the class "featuredAr...