From ce4147c10a0158680d80655d073fa82683989a71 Mon Sep 17 00:00:00 2001
From: Diwakar Gupta <39624018+Diwakar-Gupta@users.noreply.github.com>
Date: Sat, 28 May 2022 23:36:56 +0530
Subject: [PATCH] SVM primal form
---
22-05-28-SVM/April_SVM.ipynb | 670 +++++++++++++++++++++++++++++++++++
1 file changed, 670 insertions(+)
create mode 100644 22-05-28-SVM/April_SVM.ipynb
diff --git a/22-05-28-SVM/April_SVM.ipynb b/22-05-28-SVM/April_SVM.ipynb
new file mode 100644
index 0000000..d6a6296
--- /dev/null
+++ b/22-05-28-SVM/April_SVM.ipynb
@@ -0,0 +1,670 @@
+{
+ "nbformat": 4,
+ "nbformat_minor": 0,
+ "metadata": {
+ "colab": {
+ "name": "April SVM.ipynb",
+ "provenance": [],
+ "authorship_tag": "ABX9TyPBPfhh93RhCpfXA1fZhDqW",
+ "include_colab_link": true
+ },
+ "kernelspec": {
+ "name": "python3",
+ "display_name": "Python 3"
+ },
+ "language_info": {
+ "name": "python"
+ }
+ },
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "view-in-github",
+ "colab_type": "text"
+ },
+ "source": [
+ ""
+ ]
+ },
+ {
+ "cell_type": "code",
+ "source": [
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt\n",
+ "from mlxtend.plotting import plot_decision_regions"
+ ],
+ "metadata": {
+ "id": "wFsWv0tPW4JN"
+ },
+ "execution_count": 2,
+ "outputs": []
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "id": "mwTQfxwJT_i1"
+ },
+ "outputs": [],
+ "source": [
+ "from sklearn.datasets import make_circles\n",
+ "\n",
+ "X, y = make_circles()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "source": [
+ "plt.scatter(X[:, 0], X[:, 1], c=y)"
+ ],
+ "metadata": {
+ "colab": {
+ "base_uri": "https://localhost:8080/",
+ "height": 282
+ },
+ "id": "EaoQ-9UkWvfB",
+ "outputId": "4109a5c3-9791-4e2f-b521-34dec3f2025a"
+ },
+ "execution_count": 3,
+ "outputs": [
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "execution_count": 3
+ },
+ {
+ "output_type": "display_data",
+ "data": {
+ "text/plain": [
+ "