Problems to Checkout Knowledge of Python/Numpy
Just use simple output and generate your own input
in these problems. More complicated input/output and more
complicated NumPy manipulations like broadcasting will be
covered in class as we go over neural net programs. Of course
you should test all of your programs
- Sum the squares of the first 20 odd numbers.
- Make a dictionary with keys being names of people and
values being their height.
- Make a function that returns the name of the tallest
person (your function does not know the length)
- Make a function that returns a list of the names in the
dictionary sorted by height. (use a different sort than in
tutorial)
- You are given two vectors in an arbitrary N dimensional
space (
- Use arrays and dot product to find the distance without
using loops.
- Can you test which method is faster.
- Implement the Perceptron Algorithm on OR and XOR using dot
products and as much linear algebra manipulations as
possible.
- There will be many of these online. It is better to try
to do it yourself. At least totally understand one that
you find online.