diff --git a/Q2.ipynb b/Q2.ipynb index 8697e43..c5e6b95 100644 --- a/Q2.ipynb +++ b/Q2.ipynb @@ -15,8 +15,8 @@ { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.510748800Z", - "start_time": "2026-04-25T20:51:48.489901400Z" + "end_time": "2026-04-25T21:15:54.826174300Z", + "start_time": "2026-04-25T21:15:54.817214200Z" } }, "cell_type": "code", @@ -32,20 +32,20 @@ ], "id": "76e70b2ed9af0b56", "outputs": [], - "execution_count": 5 + "execution_count": 19 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.526865400Z", - "start_time": "2026-04-25T20:51:48.511753700Z" + "end_time": "2026-04-25T21:15:54.842931600Z", + "start_time": "2026-04-25T21:15:54.827174Z" } }, "cell_type": "code", "source": "df = pd.read_csv('data/googleplaystore_new_new.csv')", "id": "f44380615d3aba25", "outputs": [], - "execution_count": 6 + "execution_count": 20 }, { "metadata": {}, @@ -63,8 +63,8 @@ { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.534574700Z", - "start_time": "2026-04-25T20:51:48.527865900Z" + "end_time": "2026-04-25T21:15:54.857539500Z", + "start_time": "2026-04-25T21:15:54.844931800Z" } }, "cell_type": "code", @@ -74,13 +74,13 @@ ], "id": "f6fd7137bf91f31e", "outputs": [], - "execution_count": 7 + "execution_count": 21 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.542093600Z", - "start_time": "2026-04-25T20:51:48.535570300Z" + "end_time": "2026-04-25T21:15:54.877630200Z", + "start_time": "2026-04-25T21:15:54.857539500Z" } }, "cell_type": "code", @@ -90,52 +90,52 @@ ], "id": "b5daf475a5d5ca15", "outputs": [], - "execution_count": 8 + "execution_count": 22 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.568373500Z", - "start_time": "2026-04-25T20:51:48.542093600Z" + "end_time": "2026-04-25T21:15:54.890619Z", + "start_time": "2026-04-25T21:15:54.878630300Z" } }, "cell_type": "code", "source": "X = pd.get_dummies(X_raw, columns=['Content Rating'])", "id": "99a441c665dcc19b", "outputs": [], - "execution_count": 9 + "execution_count": 23 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.586290600Z", - "start_time": "2026-04-25T20:51:48.569378200Z" + "end_time": "2026-04-25T21:15:54.896884800Z", + "start_time": "2026-04-25T21:15:54.891625500Z" } }, "cell_type": "code", "source": "X_temp, X_test, y_temp, y_test = train_test_split(X, y, test_size=0.2, random_state=101)", "id": "c6eb622c0f7ec63c", "outputs": [], - "execution_count": 10 + "execution_count": 24 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.593412500Z", - "start_time": "2026-04-25T20:51:48.588327300Z" + "end_time": "2026-04-25T21:15:54.904746500Z", + "start_time": "2026-04-25T21:15:54.897883400Z" } }, "cell_type": "code", "source": "X_train, X_val, y_train, y_val = train_test_split(X_temp, y_temp, test_size=0.25, random_state=101)", "id": "89e8f117f057e0e2", "outputs": [], - "execution_count": 11 + "execution_count": 25 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.605804800Z", - "start_time": "2026-04-25T20:51:48.593412500Z" + "end_time": "2026-04-25T21:15:54.914005600Z", + "start_time": "2026-04-25T21:15:54.905746300Z" } }, "cell_type": "code", @@ -147,7 +147,7 @@ ], "id": "d529991171fafb3e", "outputs": [], - "execution_count": 12 + "execution_count": 26 }, { "metadata": {}, @@ -158,8 +158,8 @@ { "metadata": { "ExecuteTime": { - "end_time": "2026-04-25T20:51:48.668048800Z", - "start_time": "2026-04-25T20:51:48.607804Z" + "end_time": "2026-04-25T21:15:54.935689400Z", + "start_time": "2026-04-25T21:15:54.915006600Z" } }, "cell_type": "code", @@ -175,7 +175,7 @@ "LogisticRegression(max_iter=1000)" ], "text/html": [ - "
LogisticRegression(max_iter=1000)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LogisticRegression(max_iter=1000)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
KNeighborsClassifier(n_neighbors=3)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
KNeighborsClassifier(n_neighbors=3)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.