MIT Introduction to Deep Learning 6.S191: Lecture 1
*New 2020 Edition*
https://www.youtube.com/watch?v=njKP3FqW3Sk&list=PLtBw6njQRU-rwp5__7C0oIVt26ZgjG9NI&index=2
MIT Introduction to Deep Learning 6.S191: Lecture 1
*New 2020 Edition*
Foundations of Deep Learning
Lecturer: Alexander Amini
January 2020
For all lectures, slides, and lab materials: http://introtodeeplearning.com
Lecture Outline
0:00 - Introduction
4:14 - Course information
8:10 - Why deep learning?
11:01 - The perceptron
13:07 - Activation functions
15:32 - Perceptron example
18:54 - From perceptrons to neural networks
25:23 - Applying neural networks
28:16 - Loss functions
31:14 - Training and gradient descent
35:13 - Backpropagation
39:25 - Setting the learning rate
43:43 - Batched gradient descent
46:46 - Regularization: dropout and early stopping
51:58 - Summary
Subscribe to @stay up to date with new deep learning lectures at MIT, or follow us on @MITDeepLearning on Twitter and Instagram to stay fully-connected!!
Data can be messy: it often comes from various sources, doesn’t have structure or contains errors and missing fields. Working with data requires to clean, refine and filter the dataset before making use of it.
Pandas is one of the most popular tools to perform such data transformations. It is an open source library for Python offering a simple way to aggregate, filter and analyze data. The library is often used together with Jupyter notebooks to empower data exploration in various research and data visualization projects.
Pandas introduces the concept of a DataFrame – a table-like data structure similar to a spreadsheet. You can import data in a data frame, join frames together, filter rows and columns and export the results in various file formats. Here is a pandas cheat sheet of the most common data operations:
Getting Started
Import Pandas & Numpy
Get the first 5 rows in a dataframe:
Get the last 5 rows in a dataframe:
Import Data
Create DataFrame from dictionary:
Import data from a CSV file:
Import data from an Excel Spreadsheet:
Import data from an Excel Spreadsheet without the header:
Export Data
Export as an Excel Spreadsheet:
Export to a CSV file:
Convert Data Types
Convert column data to string:
Convert column data to integer (nan values are set to -1):
Convert column data to numeric type:
Get / Set Values
Get the value of a column on a row with index idx:
Set column value on a given row:
Count
Number of rows in a DataFrame:
Count rows where column is equal to a value:
Count unique values in a column:
Count rows based on a value:
Filter Data
Filter rows based on a value:
Filter rows based on multiple values:
Filter rows that contain a string:
Filter rows containing some of the strings:
Filter rows where value is in a list:
Filter rows where value is _not_ in a list:
Filter all rows that have valid values (not null):
Sort Data
Sort rows by value:
Sort Columns By Name:
Rename columns
Rename particular columns:
Rename all columns:
Make all columns lowercase:
Drop data
Drop column named col
Drop all rows with null index:
Drop rows that have missing values in some columns:
Drop duplicate rows:
Create columns
Create a new column based on row data:
Create a new column based on another column:
Create multiple new columns based on row data:
Match id to label:
Data Joins
Join data frames by columns:
Concatenate two data frames (one after the other):
Utilities
Increase the number of table rows & columns shown: