Commit 0a148811 authored by giwi97's avatar giwi97

example dataset

parent e282e876
......@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
......@@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
......@@ -38,7 +38,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
......@@ -55,98 +55,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"E:\\Users\\Acer\\anaconda3\\lib\\site-packages\\numpy\\core\\_asarray.py:83: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray\n",
" return array(a, dtype, copy=False, order=order)\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Fruit</th>\n",
" <th>Number</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Apple</td>\n",
" <td>3098</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Banana</td>\n",
" <td>2826</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Lemon</td>\n",
" <td>3747</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Lime</td>\n",
" <td>2514</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Orange</td>\n",
" <td>2834</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>Pear</td>\n",
" <td>2082</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>Peach</td>\n",
" <td>2026</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Fruit Number\n",
"0 Apple 3098\n",
"1 Banana 2826\n",
"2 Lemon 3747\n",
"3 Lime 2514\n",
"4 Orange 2834\n",
"5 Pear 2082\n",
"6 Peach 2026"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"def loadimage(arr,n,name_of_fruit):\n",
" label=[]\n",
......@@ -182,6 +93,50 @@
"atribut"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print('Example Dataset')\n",
"fig = plt.figure()\n",
"ax1 = fig.add_subplot(3,3,1)\n",
"ax1.set_title('Apple')\n",
"ax1.set_axis_off()\n",
"ax1.imshow(apple[0])\n",
"\n",
"ax2 = fig.add_subplot(3,3,2)\n",
"ax2.set_title('Banana')\n",
"ax2.set_axis_off()\n",
"ax2.imshow(banana[0])\n",
"\n",
"ax3 = fig.add_subplot(3,3,3)\n",
"ax3.set_title('Lemon')\n",
"ax3.set_axis_off()\n",
"ax3.imshow(lemon[0])\n",
"\n",
"ax4 = fig.add_subplot(3,3,4)\n",
"ax4.set_title('Lime')\n",
"ax4.set_axis_off()\n",
"ax4.imshow(lime[0])\n",
"\n",
"ax5 = fig.add_subplot(3,3,5)\n",
"ax5.set_title('Orange')\n",
"ax5.set_axis_off()\n",
"ax5.imshow(orange[0])\n",
"\n",
"ax6 = fig.add_subplot(3,3,6)\n",
"ax6.set_title('Pear')\n",
"ax6.set_axis_off()\n",
"ax6.imshow(pear[0])\n",
"\n",
"ax7 = fig.add_subplot(3,3,7)\n",
"ax7.set_title('Peach')\n",
"ax7.set_axis_off()\n",
"ax7.imshow(peach[0])"
]
},
{
"cell_type": "code",
"execution_count": null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment