Tips

Tips and tricks based on first hand experience

python code snippets - cheat sheet

My Python Cheat Sheet

These are some python code snippets that I use very often. Topics include: list manipulation, json manipulation, data frame and etc. Python List Manipulation Concatenate two python lists

Convert a python string to a list of characters

  JSON Manipulation Convert a dictionary to a json string

Convert a json string back …

My Python Cheat Sheet Read More »

How to compute precision and recall for a multi-class classification problem

In evaluating multi-class classification problems, we often think that the only way to evaluate performance is by computing the accuracy which is the proportion or percentage of correctly predicted labels over all predictions.  However, we can always compute precision and recall for each class label and analyze the individual performance on class labels or average the …

How to compute precision and recall for a multi-class classification problem Read More »