Office Hours

A place for Brandon to chat with students and for students to chat with each other

Future Neural Network Courses

A few of you have wondered what's on the roadmap for the next few neural networks courses. Right now we're in the middle of three Building Blocks courses that, together, will form a full Case Study. Case Study: Image compression with autoencoders Neural Network Visualization Build a Neural...

READ MORE

Code Break, level 1: Pixel count

For a two dimensional numpy array, find the total number of elements. Given: vals = np.array([ [1, 2, 3], [4, 5, 6]]) Return: n_pixels = 6

READ MORE

Code Break, level 3: Spurious correlations

Find ten points with x and y values randomly distributed between -1 and 1. Calculate the correlation between them. Repeat 10000 times. What is the fifth percentile? The 95th? My results I found a fifth percentile correlation of -.56 and a ninety-fifth percentile of .55....

READ MORE

Code Break, level 2: JSON modification

You are given a JSON string in python like this json_data = """{"name": "Abercrombie", "profession": "test pilot", "address": {"street": "Bagshot Row", "number": "3" }}""" Change the house number to 2.

READ MORE

Code Break, level 3: For loop speed

Compare the time it takes to add up 10,000 random integers 10,000 times using a for loop in python vs. using numpy.sum(). Does is take 10x longer on your computer? 100x?

READ MORE

Code break, level 1: Difference between list elements

Find the difference between successive list elements without using numpy. Given [7, 5, 3, 8] Find [-2, -2, 5] There are lots of good ways to do this. Post your solution below!

READ MORE

Code Break, level 3: Place in a race

Given a numpy array of runners' marathon completion times, generate another array with the corresponding place that each runner took in the final results. For example, given times = numpy.array([5.14, 4.22, 6.89, 3.08, 4.71]) generate places of ([4, 2, 5, 1, 3]) This one is straightforward...

READ MORE

Neural Network Course Update

I know a lot of you are anxious for the Build a Neural Network Framework course to come out. I promise I'm making steady progress. The project code is complete and reviewed, the course is broken out into 9 sections, and I'm in the process of carving each section up into a handful of well-defined...

READ MORE

Code Break, level 2: Read a list of integers from a csv

Given a comma-separated value file formatted like this 234, "Antelope", "[34, 6, 62, 4657, 234]" 23, "Buffalo", "[234, 96, 746]" 806, "Catapult", "[6, 32, 98, 43, 6, 9, 2, 5]" ... Read in the third column as a list of lists: [[34, 6, 62, 4657, 234], [234, 96, 746], [6,...

READ MORE

Video outage resolved

Great news! The "video not found" errors that were appearing in the How Deep Neural Networks Work course are no more. I'm particularly grateful to the Teachable tech support team for helping to find a workaround. The solution is elegant. The lectures link directly to the YouTube versions of the...

READ MORE