Two easy recipes for renaming column(s) in a Pandas DataFrame.
You can calculate the L1 and L2 norms of a vector or the Frobenius norm of a matrix in NumPy with np.linalg.norm(). This post explains the API and gives a few concrete usage examples.
Using and suppressing scientific notation in Python and NumPy.
The unofficial guide to np.tile() with examples.
You can get the element-wise square of an input with np.square(). This is not exactly the same as x**2.
The unofficial guide to np.random.uniform()
The best way to sort a list of tuples in Python.
The Keras dense layer can be a little confusing. This post will give you everything you need to start using it.
Everything you ever wanted to know about the numpy square root operation…