Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Problem 3: (numpy)
Generate a random vector of integers between 0 and 10 (inclusive) of length 100. (hint: np.bincount)
Which number appears most often?
Problem 4 (numpy)
For different types of random matrices with size 1000x1000 (e.g. rand, randn)
Multiply the matrix with its own transpose:
Then compute the eigenvalues of that resulting matrix and plot a histogram via matplotlib!
Guess, what each the distributions of eigenvalues looks like! (Compare with the distribution of the random sampling routines)
random matrices: http://docs.scipy.org/doc/numpy/reference/routines.random.html
linear algebra: http://docs.scipy.org/doc/numpy/reference/routines.linalg.html
e.g.
np.random.beta(.1, 5, size=(1000, 1000))
Problem 5: (scipy)
create two random vectors with normal distribution
use a T-test to check, if they significantly differ
Problem 6: (scipy)
The family of BFGS optimization algorithms is very well known.
Optimize a two dimensional function over a constraint box using it!
choose one from this list of classical optimization functions: https://en.wikipedia.org/wiki/Test_functions_for_optimization
express the mathematical equation in terms of numpy vectors
minimize in the box using the l-bfgs-b algorithm from scipy.
question: what happens, when you do not specify the gradients?