This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from http.cookiejar import Cookie | |
| from re import search, findall | |
| from urllib.parse import urlencode | |
| from urllib.request import ( | |
| HTTPCookieProcessor, | |
| HTTPRedirectHandler, | |
| Request, | |
| build_opener | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras import layers, models | |
| Nin = 784 | |
| Nh = 100 | |
| number_of_class = 10 | |
| Nout = number_of_class | |
| class ANN(models.Model): | |
| def __init__(self, Nin, Nh, Nout): | |
| # Prepare network layers and activate functions |
Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4