#jupyter #machine learning #scikit-learn

On Learning Machine Learning

Published Apr 24, 2018 by Alex C-G

Machine learning has a lot of buzz these days, and with good reason. But getting into it isn’t a simple task. Here’s what I’ve discovered so far:

Pure or Applied?

Applied machine learning is about using it to actually do stuff in the real world. Pure is more about learning the theory behind it. While it’s good to have at least some grounding in algebra and matrices before jumping on the latest modules, there’s nothing quite like getting your hands dirty.

I’m already proficient in Python (the de facto language for a lot of machine learning projects) but even then, getting my hands dirty took some work before I got a handle on what was going on. Watching some tutorials on Numpy (a module for dealing with numerical matrices) and Pandas (a module for tabular data representation helped a fair bit.

Tensorflow? Keras? Scikit-Learn?

I’ve dabbled in all three, but sticking to Scikit-learn for now. It seems the most straightforward by far, since you’re working with pre-existing models, and it comes with several datasets by default, all of which are already processed for easy use by the module.

Tensorflow is a lot more low-level, and while Keras is high-level it’s more about building your own models rather than playing with existing ones.

Once I get a better grip on models I plan to look at the other options.

Python 2 or 3?

Different tutorials use different versions of Python, and these different versions really are different. Even dividing numbers will return different results depending on your version! Not to mention needing parentheses with the print() function in Python 3 (which I’m constantly forgetting about – old habits die hard!)

Jupyter Notebook

Aaah, our old friend Jupyter. I’ve been using the notebook more and more, using markdown cells to paraphrase tutorials in my own words as I go through them. Plus, embedded graphing via matplotlib helps a great deal. Just make sure you install the kernel for the right Python version!


© 2018-2021, Alex Cureton-Griffiths | Pudhina Fresh theme for Jekyll.