diff --git a/AI4Forensics/IP_Identifier_Fine_Tuning/Calculate_Confusion_Matrix/code/confusion_matrix_tutorial.ipynb b/AI4Forensics/IP_Identifier_Fine_Tuning/Calculate_Confusion_Matrix/code/confusion_matrix_tutorial.ipynb new file mode 100644 index 0000000..1ada066 --- /dev/null +++ b/AI4Forensics/IP_Identifier_Fine_Tuning/Calculate_Confusion_Matrix/code/confusion_matrix_tutorial.ipynb @@ -0,0 +1,58 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([[4, 2],\n", + " [2, 2]], dtype=int64)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from sklearn.metrics import confusion_matrix\n", + "\n", + "actual = [0,0,1,1,0,0,0,0,0,1]\n", + "predicted = [0,1,1,0,0,1,10,0,1]\n", + "\n", + "confusion_matrix(actual, predicted)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "forensic", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.4" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/AI4Forensics/IP_Identifier_Fine_Tuning/IP_Identifer_Fine_Tuning.pptx b/AI4Forensics/IP_Identifier_Fine_Tuning/IP_Identifer_Fine_Tuning.pptx index af2bdb4..87de6a6 100644 Binary files a/AI4Forensics/IP_Identifier_Fine_Tuning/IP_Identifer_Fine_Tuning.pptx and b/AI4Forensics/IP_Identifier_Fine_Tuning/IP_Identifer_Fine_Tuning.pptx differ