commit c085c8c5afca413a8427d526b3b0825ead451738 Author: noah Date: Wed Mar 29 13:55:27 2023 -0500 Adding notebook with imports diff --git a/Schrick-Noah_Learning-Practice-8.ipynb b/Schrick-Noah_Learning-Practice-8.ipynb new file mode 100644 index 0000000..5278ac3 --- /dev/null +++ b/Schrick-Noah_Learning-Practice-8.ipynb @@ -0,0 +1,47 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Learning Practice 8 for the University of Tulsa's QM-7063 Data Mining Course\n", + "# K-Nearest Neighbor and Naive Bayes\n", + "# Professor: Dr. Abdulrashid, Spring 2023\n", + "# Noah L. Schrick - 1492657" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Imports\n", + "\n", + "%matplotlib inline\n", + "\n", + "from pathlib import Path\n", + "\n", + "import pandas as pd\n", + "from sklearn.model_selection import train_test_split\n", + "from sklearn.naive_bayes import MultinomialNB\n", + "import matplotlib.pylab as plt\n", + "from dmba import classificationSummary, gainsChart\n", + "\n", + "from sklearn import preprocessing\n", + "from sklearn.metrics import accuracy_score\n", + "from sklearn.neighbors import NearestNeighbors, KNeighborsClassifier" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + }, + "orig_nbformat": 4 + }, + "nbformat": 4, + "nbformat_minor": 2 +}