Select Page

## What are the types of Matrices and Vectors?

* Square matrix: If the matrix has same number of columns as rows * Symmetric matrix: A square matrix that is equal to its transpose. $latex \mathbf{A} = \mathbf{A}^T * Diagonal matrix: A matrix where all non-diagonal entries are zero$latex \$\mathbf{A}_{i,j} = 0,...

## How to plot multicolored lines in matplotlib?

Often times, we need to overlay colors on segments of a time-series or other line-plot. The colors could be indicative of some events or to highly particularly important time-spans of interest. Here’s a short function that can be used to generate such line...

## Threshold tuning using ROC

Several statistical and machine learning applications call for setting thresholds. For example, if you are presenting search results and wish to display short-listed results. Most document retrieval methods will generate a score per document and one way of showing the...