Skip to content

Commit

Permalink
peer review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kislayabhi committed Aug 18, 2014
1 parent c85bfce commit f2b9237
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions doc/ipython-notebooks/computer_vision/Scene_classification.ipynb
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:3ce84a63aa8dbb1fddd9980313f5b64f78e1977a19cf7a099b632d3994c8b0f0"
"signature": "sha256:0c181f9f96b3b7fd14b5766e253aae3c37185ea81cfae909427b03d9993961fd"
},
"nbformat": 3,
"nbformat_minor": 0,
Expand All @@ -21,7 +21,7 @@
"level": 4,
"metadata": {},
"source": [
"By Abhijeet Kislay (GitHub ID: <a href='https://github.com/kislayabhi'>kislayabhi</a>)"
"By Abhijeet Kislay (GitHub ID: <a href='https://github.com/kislayabhi'>kislayabhi</a>) as a GSoC'14 project under Kevin Hughes(GitHub ID: <a href='https://github.com/pickle27'>pickle27</a>)"
]
},
{
Expand Down Expand Up @@ -152,7 +152,8 @@
"sift=cv2.SIFT()\n",
"fig = plt.figure()\n",
"plt.title('SIFT detected Keypoints')\n",
"\n",
"plt.xticks(())\n",
"plt.yticks(())\n",
"for image_no in xrange(3):\n",
" img=cv2.imread(filenames[0][image_no])\n",
" img=cv2.resize(img, (500, 300), interpolation=cv2.INTER_AREA)\n",
Expand Down Expand Up @@ -261,6 +262,8 @@
"\n",
"plt.rcParams['figure.figsize']=21,16\n",
"fig=plt.figure()\n",
"plt.xticks(())\n",
"plt.yticks(())\n",
"plt.title('10 training images for each class')\n",
"for image_no in xrange(30):\n",
" fig.add_subplot(6,5, image_no+1)\n",
Expand Down Expand Up @@ -418,7 +421,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"***4. After that, train a one-vs-all SVM for each category of object using the training data***:\n",
"We have to solve a multiclass classification problem here. In Shogun these are implemented in: <a href=\"http://www.shogun-toolbox.org/doc/en/latest/classshogun_1_1CMulticlassMachine.html\">MulticlassMachine</a> \n",
"\n",
"***4. We train a one-vs-all SVM for each category of object using the training data***:\n",
"\n",
"The following function returns a trained <a href=\"http://www.shogun-toolbox.org/doc/en/latest/classshogun_1_1CGMNPSVM.html\">GMNPSVM</a>, which is a true Multiclass SVM in Shogun employing **one vs rest** approach.\n",
"Inputs are:\n",
Expand Down Expand Up @@ -479,6 +484,8 @@
"\n",
"plt.rcParams['figure.figsize']=20,8\n",
"fig=plt.figure()\n",
"plt.xticks(())\n",
"plt.yticks(())\n",
"plt.title('Test Images')\n",
"for image_no in xrange(len(filenames[0])):\n",
" fig.add_subplot(3,8, image_no+1)\n",
Expand Down

0 comments on commit f2b9237

Please sign in to comment.