Skip to content
Marcel Stampfer edited this page Oct 30, 2015 · 16 revisions

#Welcome to the Coursera Stanford ML Python wiki!

##Python and package installation ##Basic idle usage ##Basic Python operations ###Basic algebra in python ####Elementary arithmetic operation Python 2.7.10 (default, Aug 22 2015, 20:33:39) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 5+6 11 >>> 3-2 1 >>> 5*8 40 >>> 1/2 0 >>> 1./2 0.5 >>> 2**6 64 aaa

hello world

####Logical operations ####Python variables ####Displaying variables ##Vectors and matrices ###Comprehensions ###Special matrix functions ##Moving data around ###size of a matrix ###Loading files in python ##Manipulating matrices ###Slicing ###Flattening ###Vector assignments ###Concatenating ####Horizontal concatenation ####Vertical concatenation ##Computing on data ###Matrix multiplication ###Element-wise operations ####Element-wise multiplication ####Element-wise squaring ####Element-wise reciprical ####Element-wise logarithms/exponents ####Element-wise addition ###Transpose of a matrix ###Maximum and minimum of matrix values ###'magic' matrix ###Logical filtering ###sum and product of all elements ###Identity matrix for selection ###Inverse and pseudo-inverse of a matrix ##Plotting data ###Plotting generated data ###Line color, labels, title and legend ###Saving a graph ###Subplots ###Axis scaling ###Creating/clearing figures ##Control statements ###For loops ###While loops ###break statement ###if-elif-else statement ##Functions ###PYTHONPATH environment variable ##Vectorization ###Vectorized implementation ###Unvectorized implementation

Clone this wiki locally