Tag Archives: machine learning

Best Pattern Recognition and Machine Learning Book (Bishop)

Pattern Recognition and Machine Learning (Information Science and Statistics) The above book by Christopher M. Bishop is widely regarded as one of the most comprehensive books on Machine Learning. At over 700 pages, it has coverage of most machine learning … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Python save csv to folder

In Python (pandas), saving a .csv file to a particular folder is not that hard, but then it may be confusing to beginners. The packages we need to import are: import pandas as pd import os.path Say, your folder name … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

Recall & Precision vs Sensitivity & Specificity

Other than accuracy rate, there are various metrics for machine learning to measure how “accurate” the model is. Some popular ones for binary classification are sensitivity (true positive rate) and specificity (true negative rate). In computer science, recall and precision … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

pip install keeps installing old/outdated packages

This article is suitable for solving the following few problems: module ‘sklearn.tree’ has no attribute ‘plot_tree’ pip install (on Spyder, Anaconda Prompt, etc.) does not install the latest package. The leading reason for “module ‘sklearn.tree’ has no attribute ‘plot_tree” is … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

caret package in R: known issue when converting factor variables

In the R language, often you have to convert variables to “factor” or “categorical”. There is a known issue in the ‘caret’ library that may cause errors when you do that in a certain way. The correct way to convert … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

How to save sklearn tree plot as file (Vector Graphics)

The Scikit-Learn (sklearn) Python package has a nice function sklearn.tree.plot_tree to plot (decision) trees. The documentation is found here. However, the default plot just by using the command tree.plot_tree(clf) could be low resolution if you try to save it from a … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

Unsupervised Learning

There are 3 main categories of Machine Learning: Supervised Learning, Unsupervised Learning, and Reinforcement Learning. This is a nice and interesting to watch video on Unsupervised Learning:

Posted in Uncategorized | Tagged , | Leave a comment

Introduction to Machine Learning

Very good introduction to Machine Learning by Google. Google is the developer of Tensorflow (on which the Keras package is built). The other platform for Machine Learning is Pytorch by Facebook. So far, the best introductory book to Machine Learning … Continue reading

Posted in Uncategorized | Tagged | Leave a comment