Practice
Optional short tasks. Write code here or download it to work on your computer. Loop and function tasks run Python in your browser; other tasks show their available checking method.
- Calculate a discounted totalStructure checkProgramming in PythonReplace one line with an expression using variables and check it without installing Python.The site checks the solution structure. Python is not executed.
- A discount calculation functionPython in your browserProgramming in PythonImplement a function and run Python in your browser. Check return values on ordinary and boundary examples.Run and check results on your device. No Python installation; results do not count towards course mastery.
- Sum numbers with a loopPython in your browserProgramming in PythonWrite a loop and execute real Python in your browser. Check output for several values of n.Run and check results on your device. No Python installation; results do not count towards course mastery.
- The KL term of the VAE lossStructure checkGenerative ModelsWrite the element-wise KL between N(μ, σ²) and N(0, 1) from the encoder outputs mu and logvar.The site checks the solution structure. Python is not executed.
- Implement reparameterizationStructure checkGenerative ModelsFinish a function that samples z from N(μ, σ²) so that gradients reach the encoder.The site checks the solution structure. Python is not executed.
- Intersection over UnionSelf-study exerciseDeep LearningCompute IoU of two boxes in xyxy form.Checking on the site is not available yet. Write and download a solution to work on your computer.
- Stable log-sum-expSelf-study exerciseMathematics for MLImplement a numerically stable log-sum-exp by subtracting the maximum.Checking on the site is not available yet. Write and download a solution to work on your computer.
- Stable softmaxSelf-study exerciseDeep LearningTurn logits into a probability distribution without overflowing.Checking on the site is not available yet. Write and download a solution to work on your computer.