Python Forum
The best Programming books?
Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The best Programming books?
#11
This is a great book, and now free, Machine Learning by Ian Goodfellow, Yoshua Bengio and Aaron Courville: Now Online free by MIT: http://www.deeplearningbook.org/

Exercises here: https://github.com/goodfeli/dlbook_exercises
Lectures here: http://www.deeplearningbook.org/lecture_slides.html
Discussions: https://www.commonlounge.com/community/e...658ef85cb1
Videos (downloadable) for every chapter: https://www.youtube.com/channel/UCF9O8Vj...-Pg/videos

I wrote a quick down-loader for the videos, I did not include the book club videos, so if you want them, add to the dictionary.
Before using, change basepath if you would like the videos to download to another directory.
As written, they will be downloaded to 'videos', which if it doesn't exist will be created.

I have included two functions to save and load the dictionaries to and from a JSON file. You can create a separate script to create the dictionary, and replace with a call to 'load_url_list' once the JSON file exits.

This program requires pytube which can be downloaded (from command line) with:
pip install pytube
Here's the (quickly tested code)
# Author: Larz60+ January 9, 2019
from pytube import YouTube
import json
import os


class GetDeepLearningVideos:
    def __init__(self):
        os.chdir(os.path.abspath(os.path.dirname(__file__)))

    def downloadYouTube(self, videourl, path):
        yt = YouTube(videourl)
        yt = yt.streams.filter(progressive=True, file_extension='mp4') \
            .order_by('resolution').desc().first()
        if not os.path.exists(path):
            os.makedirs(path)
        yt.download(path)


def save_url_list(basepath, url_list):
    savefile = os.path.abspath(f'{basepath}/url_list.json')
    with open(savefile, 'w') as fp:
        json.dump(url_list, fp)


def load_url_list(basepath):
    loadpath = os.path.abspath(f'{basepath}/url_list.json')
    with open(loadpath) as fp:
        return json.load(fp)


def main():
    gyt = GetDeepLearningVideos()
    basepath = './videos'
    baseabs = os.path.abspath(basepath)

    # Videos published by: Alena Kruchkova
    if not os.path.exists(baseabs):
        os.makedirs(baseabs)
    url_list = {
        'Chapter1': {
            'title': 'Introduction',
            'presenter': 'Ian Goodfellow',
            'url': 'https://www.youtube.com/watch?v=vi7lACKOUao'
        },
        'Chapter2': {
            'title': 'Linear Algebra',
            'presenter': 'Gavin Crooks',
            'url': 'https://www.youtube.com/watch?v=mJ5PSaHeA0k'
        },
        'Chapter3': {
            'title': 'Probability',
            'presenter': 'Pierre Dueck',
            'url': 'https://www.youtube.com/watch?v=lAkUEnR3fKw'
        },
        'Chapter3a': {
            'title': 'Information Theory',
            'presenter': 'Yaroslav Bulatov',
            'url': 'https://www.youtube.com/watch?v=zCZJKMI4Q-U'
        },
        'Chapter6': {
            'title': 'Deep Feedforward Networks',
            'presenter': 'Timothee Cour',
            'url': 'https://www.youtube.com/watch?v=oFa0Xe6fcBk'
        },
        'Chapter10': {
            'title': 'Sequence Modeling',
            'presenter': 'Ian Goodfellow',
            'url': 'https://www.youtube.com/watch?v=ZVN14xYm7JA'
        },
        'Q&A': {
            'title': 'Q & A',
            'presenter': 'Yaroslav Bulatov',
            'url': 'https://www.youtube.com/watch?v=NMhK2A_N0Nc'
        },
    }

    for chapter, detail in url_list.items():
        savefile = os.path.abspath(f'{basepath}/{chapter}')
        if not os.path.exists(savefile):
            url = detail['url']
            print(f"Downloading {detail['title']} by {detail['presenter']}")
            gyt.downloadYouTube(url, savefile)
        else:
            print(f'Not downloading {chapter} as {savefile} already exists')


if __name__ == '__main__':
    main()
Reply


Messages In This Thread
The best Programming books? - by bennylava - Jan-08-2019, 05:34 AM
RE: The best Programming books? - by perfringo - Jan-08-2019, 06:20 AM
RE: The best Programming books? - by bennylava - Jan-08-2019, 07:39 AM
RE: The best Programming books? - by perfringo - Jan-08-2019, 08:40 AM
RE: The best Programming books? - by perfringo - Jan-08-2019, 07:48 AM
RE: The best Programming books? - by bennylava - Jan-09-2019, 03:05 AM
RE: The best Programming books? - by Gribouillis - Jan-08-2019, 08:37 AM
RE: The best Programming books? - by Larz60+ - Jan-08-2019, 11:54 AM
RE: The best Programming books? - by Larz60+ - Jan-09-2019, 05:34 AM
RE: The best Programming books? - by bennylava - Jan-09-2019, 12:52 PM
RE: The best Programming books? - by perfringo - Jan-09-2019, 08:54 AM
RE: The best Programming books? - by Larz60+ - Jan-09-2019, 11:13 AM
RE: The best Programming books? - by Gribouillis - Jan-09-2019, 01:44 PM
RE: The best Programming books? - by bennylava - Jan-09-2019, 04:42 PM
RE: The best Programming books? - by metulburr - Jan-09-2019, 01:56 PM
RE: The best Programming books? - by ichabod801 - Jan-09-2019, 04:51 PM
RE: The best Programming books? - by Larz60+ - Jan-09-2019, 06:06 PM
RE: The best Programming books? - by micseydel - Jan-09-2019, 06:12 PM
RE: The best Programming books? - by metulburr - Jan-09-2019, 06:15 PM
RE: The best Programming books? - by metulburr - Jan-09-2019, 06:22 PM
RE: The best Programming books? - by Larz60+ - Jan-09-2019, 06:22 PM
RE: The best Programming books? - by ichabod801 - Jan-09-2019, 07:21 PM
RE: The best Programming books? - by nilamo - Jan-09-2019, 08:27 PM
RE: The best Programming books? - by ichabod801 - Jan-09-2019, 08:50 PM
RE: The best Programming books? - by Larz60+ - Jan-09-2019, 10:41 PM
RE: The best Programming books? - by ichabod801 - Jan-10-2019, 02:54 AM
RE: The best Programming books? - by Larz60+ - Jan-10-2019, 03:15 AM
RE: The best Programming books? - by Trinx - Jan-12-2019, 04:19 PM
RE: The best Programming books? - by Shwager - Feb-01-2019, 03:50 PM
RE: The best Programming books? - by Truman - Mar-09-2019, 11:30 PM
RE: The best Programming books? - by ichabod801 - Mar-10-2019, 12:14 AM
RE: The best Programming books? - by Truman - Mar-10-2019, 12:20 AM
RE: The best Programming books? - by wavic - Aug-06-2019, 02:43 PM
RE: The best Programming books? - by Truman - Aug-06-2019, 09:53 PM
RE: The best Programming books? - by wavic - Aug-07-2019, 11:08 AM
RE: The best Programming books? - by ndc85430 - Aug-09-2019, 07:17 PM
RE: The best Programming books? - by RMJFlack - Aug-17-2019, 09:37 AM
RE: The best Programming books? - by Bartolomeo - Aug-19-2019, 11:47 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020