From 5d4ef0371e303806899b201b9fadb68bb29993f2 Mon Sep 17 00:00:00 2001 From: Skcodingacademy <139916977+Skcodingacademy@users.noreply.github.com> Date: Wed, 6 Dec 2023 01:32:39 +0000 Subject: [PATCH] Answer finished --- SethK/explore.ipynb | 799 ++++++++++++++++++ ...fier_C-1000_deg-1_gam-auto_ker-poly_42.sav | Bin 0 -> 1873539 bytes 2 files changed, 799 insertions(+) create mode 100644 SethK/explore.ipynb create mode 100644 models/svm_classifier_C-1000_deg-1_gam-auto_ker-poly_42.sav diff --git a/SethK/explore.ipynb b/SethK/explore.ipynb new file mode 100644 index 0000000000..589ad21372 --- /dev/null +++ b/SethK/explore.ipynb @@ -0,0 +1,799 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Explore here" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
| \n", + " | url | \n", + "is_spam | \n", + "
|---|---|---|
| 0 | \n", + "https://briefingday.us8.list-manage.com/unsubs... | \n", + "True | \n", + "
| 1 | \n", + "https://www.hvper.com/ | \n", + "True | \n", + "
| 2 | \n", + "https://briefingday.com/m/v4n3i4f3 | \n", + "True | \n", + "
| 3 | \n", + "https://briefingday.com/n/20200618/m#commentform | \n", + "False | \n", + "
| 4 | \n", + "https://briefingday.com/fan | \n", + "True | \n", + "
| \n", + " | url | \n", + "is_spam | \n", + "
|---|---|---|
| 0 | \n", + "https://briefingday.us8.list-manage.com/unsubs... | \n", + "1 | \n", + "
| 1 | \n", + "https://www.hvper.com/ | \n", + "1 | \n", + "
| 2 | \n", + "https://briefingday.com/m/v4n3i4f3 | \n", + "1 | \n", + "
| 3 | \n", + "https://briefingday.com/n/20200618/m#commentform | \n", + "0 | \n", + "
| 4 | \n", + "https://briefingday.com/fan | \n", + "1 | \n", + "
| \n", + " | url | \n", + "is_spam | \n", + "
|---|---|---|
| 0 | \n", + "[https, briefingday, us, list, manage, com, un... | \n", + "1 | \n", + "
| 1 | \n", + "[https, www, hvper, com] | \n", + "1 | \n", + "
| 2 | \n", + "[https, briefingday, com, v, i] | \n", + "1 | \n", + "
| 3 | \n", + "[https, briefingday, com, m, commentform] | \n", + "0 | \n", + "
| 4 | \n", + "[https, briefingday, com, fan] | \n", + "1 | \n", + "
| \n", + " | url | \n", + "is_spam | \n", + "
|---|---|---|
| 0 | \n", + "[http, briefingday, list, manage, unsubscribe] | \n", + "1 | \n", + "
| 1 | \n", + "[http, hvper] | \n", + "1 | \n", + "
| 2 | \n", + "[http, briefingday] | \n", + "1 | \n", + "
| 3 | \n", + "[http, briefingday, commentform] | \n", + "0 | \n", + "
| 4 | \n", + "[http, briefingday] | \n", + "1 | \n", + "
SVC(kernel='linear', random_state=42)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
SVC(kernel='linear', random_state=42)
GridSearchCV(cv=5, estimator=SVC(kernel='linear', random_state=42),\n",
+ " param_grid={'C': [0.001, 0.01, 0.1, 1, 10, 100, 1000],\n",
+ " 'degree': [1, 2, 3, 4, 5], 'gamma': ['scale', 'auto'],\n",
+ " 'kernel': ['linear', 'poly', 'rbf', 'sigmoid',\n",
+ " 'precomputed’']},\n",
+ " scoring='accuracy')In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. GridSearchCV(cv=5, estimator=SVC(kernel='linear', random_state=42),\n",
+ " param_grid={'C': [0.001, 0.01, 0.1, 1, 10, 100, 1000],\n",
+ " 'degree': [1, 2, 3, 4, 5], 'gamma': ['scale', 'auto'],\n",
+ " 'kernel': ['linear', 'poly', 'rbf', 'sigmoid',\n",
+ " 'precomputed’']},\n",
+ " scoring='accuracy')SVC(kernel='linear', random_state=42)
SVC(kernel='linear', random_state=42)
@wL`bNudeSrW00t5JQr|12B50PxVN)sSJfB*pk1PBlyK!5;&-vwO9r6Z)a
zz<_&~HJo$Pr;b;qcAAr>bxn4fSFXXalQ-GlvgS_Qul~+6Hu-zfG(<%R5GXK#%YUfQ
z?vv*|CnsJB7_jcx6I-0Wz;ZZ;zz_V|>#1=wokz