Initialize the list of lists:
data = [[1.0, 0.635165,0.0], [1.0, 0.766586,1.0], [1.0, 0.724564,1.0],
[1.0, 0.766586,1.0],[1.0, 0.889199,1.0],[1.0, 0.966586,1.0],
[1.0, 0.535165,0.0],[1.0, 0.55165,0.0],[1.0, 0.525165,0.0],
[1.0, 0.5595165,0.0] ]
Create the Pandas DataFrame:
df = pd.DataFrame(data, columns = ['y', 'prob','y_predict'])
Print data frame.
print(df)
For this data-set, I want to find:
- Confusion matrix without using Sklearn
- Numpy array of TPR and FPR without using Sklearn, for plotting ROC.
How to do this in python?