Archives

All Posts

Everything I’ve written on pythonandr.com, newest first — ten years of the maths, worked in code.

  • Supplementary Material to Andrew Ng’s Machine Learning MOOC

    Although the lecture videos and lecture notes from Andrew Ng‘s Coursera MOOC are sufficient for the online version of the course, if you’re interested in more mathematical stuff or want to be challenged further, you can go through the following…

  • Solutions to Machine Learning Programming Assignments

    This post contains links to a bunch of code that I have written to complete Andrew Ng’s famous machine learning course which includes several interesting machine learning problems that needed to be solved using the Octave / Matlab programming language.…

  • Troubleshooting ‘Rattle’ (R library) Installation on Ubuntu

    This post pertains to Ubuntu / Debian users only. rattle is a free graphical interface for data mining with R. I wanted to visualize decision trees and had to install this library. > install.packages(‘rattle’) got me the following error message:…

  • Spot the Difference — It’s NumPy!

    My first brush with NumPy happened over writing a block of code to make a plot using pylab. ⇣ pylab is part of matplotlib (in matplotlib.pylab) and tries to give you a MatLab like environment. matplotlib has a number of…

  • MITx 6.00.2x Introduction to Computational Thinking and Data Science (Fall 2015)

    MIT’s Fall 2015 iteration of 6.00.2x starts today. After an enriching learning experience with 6.00.1x, I have great expectations from this course. As the course website mildly puts it, 6.00.2x is an introduction to using computation to understand real-world phenomena.…

  • Funny Python

    Python IS funny. After all, if a programming language is named after a sketch comedy troupe, one can’t expect anything short of sing-song hysterical!

  • Python to the Rescue

    Another journal-like entry Programming as a profession is only moderately interesting. It can be a good job, but you could make about the same money and be happier running a fast food joint. You’re much better off using code as…

  • Karatsuba Multiplication Algorithm – Python Code

    Motivation for this blog post I’ve enrolled in Stanford Professor Tim Roughgarden’s Coursera MOOC on the design and analysis of algorithms, and while he covers the theory and intuition behind the algorithms in a surprising amount of detail, we’re left…

  • Getting Started with R on MIT’s 14.74x (Foundations of Development Policy)

    I noticed that a major grievance of many students enrolled in MIT‘s latest edX course on development policy (Foundations of Development Policy: Advanced Development Economics) was that there wasn’t enough done to get them going with the R assignments. I…

  • Teach Yourself Machine Learning the Hard Way!

    Originally posted on Darshan Hegde: It has been 3 years since I have steered my interests towards Machine Learning. I had just graduated from college with a Bachelor of Engineering in Electronics and Communication Engineering. Which is, other way of…

  • Why Parselmouth Harry Potter is also Parsermouth Harry Potter

    How Harry Potter spoke Python one morning.

  • Properly Uninstalling Canopy Python Installation from Linux

    Motivation for this blog post: I had downloaded Canopy at the insistence of the instructors of MIT’s introductory course on computer science using Python. That said, I rarely ever used it. I’ve all along been working on Python using a…

  • Opening Files in a Text Editor from the CMD / Terminal (Using Python)

    Motivation for this blog post: I recently had to edit the .bashrc file in Ubuntu and comment / delete a subset of its contents. The file .bashrc had to be located (home directory) and opened in a text editor. The…

  • Scatter Plot Bug Fix in Dato’s GraphLab Create ML Package in Python

    I have been using Dato’s GraphLab Create for Coursera’s new Machine Learning Specialization that uses Python. Like me, if you’ve been facing trouble obtaining scatter plots on your canvas in GraphLab Create despite the following code: graphlab.canvas.set_target(‘ipynb’) …then no worries,…

  • Machine Learning — New Coursera Specialization from the University of Washington

    My first Machine Learning MOOC. It uses Python and IPython Notebook in assignments and videos