
<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
how to plot confusion matrix using python

<ASSISTANT_TASK:>
Python Code::
from sklearn.metrics import confusion_matrix
from sklearn.preprocessing import normalize
import seaborn as sns
cm = confusion_matrix(target, pred)
normed_confusion_matrix = normalize(cm, axis = 1, norm = 'l1')
cm_df = pd.DataFrame(normed_confusion_matrix,index, columns)
sns.heatmap(cm_df, annot=True)

<END_TASK>
