Solutions

Fundamentals

Questions

Question 1

What does deep mean in deep learning?

Question 2

Activation functions help neural networks learn complex functions because they are:

  • Linear

  • Non-linear

Question 3

What is a tensor?

Question 4

I have labelled pictures of cats and dogs that I’d like a model to classify.

Is this a supervised or unsupervised problem?

Question 5

I’d like a model to predict house prices from their features.

Is this a classification or regression problem?

Question 6

How many times can I use the test data?

Question 7

I’ve decided on the number of hidden layers to use in my neural network.

Is this a parameter or hyperparameter?

Question 8

Do I want to minimise or maximise the loss?

Question 9

A model underfits the data when it has:

  • High bias

  • High variance

Question 10

If my model underfits, what might help:

  • Adding more features

  • Adding more data

Question 11

If my model overfits, what might help:

  • Adding more complex features

  • Increasing regularlisation

Tools

Questions

Question 1

If you were looking to do classic machine learning, what tool is a good choice?

Question 2

If you were looking to do deep learning using a high-level API, what tools are a good choice?

Question 3

What are good reasons for choosing a high or low-level API?

Question 4

When creating a model, which API is simpler to use?

  • Sequential

  • Subclassing

Question 5

Put these general steps in order:

  • Compile the model

  • Preprocess the data

  • Test the model

  • Fit the model to the training data

  • Create the model

  • Download the data

Question 6

Which machine learning library is the best?

Data

Questions

Question 1

Should I split my data in train and test subsets before or after pre-processing?

Question 2

Before I use random functionality, what is a good practice for reproducibility?

Question 3

What should I create if there are multiple steps to my data pre-processing?

Question 4

Name three ways to improve performance in a data pipeline.

Models

Questions

Question 1

What are possible hyperparameters that could be tuned?

  • Learning rate and the number of units.

  • Weights and biases.

Question 2

What is transfer learning?

Question 3

Why is transfer learning useful?

Question 4

What is a key step in transfer learning?

Question 5

What are callbacks?

Question 6

Name three examples of callbacks.

Distributed

Questions

Question 1

What are the two ways to parallelise machine learning, and which way is simpler?

Question 2

How can you check the efficiency of a CPU job?

Question 3

How can you check the efficiency of a GPU job?

Question 4

What tools can help distribute TensorFlow and PyTorch code?

Question 5

In general, what should the batch size be for distributed work?

Question 6

What are some good steps for moving Jupyter Notebook code to HPC?