Skip to content

Commit

Permalink
update notebook outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jiashenC committed Sep 6, 2023
1 parent e4c2e76 commit 722d774
Show file tree
Hide file tree
Showing 9 changed files with 2,058 additions and 1,852 deletions.
142 changes: 53 additions & 89 deletions tutorials/01-mnist.ipynb

Large diffs are not rendered by default.

336 changes: 245 additions & 91 deletions tutorials/02-object-detection.ipynb

Large diffs are not rendered by default.

400 changes: 276 additions & 124 deletions tutorials/03-emotion-analysis.ipynb

Large diffs are not rendered by default.

223 changes: 130 additions & 93 deletions tutorials/05-asl-action-recognition.ipynb

Large diffs are not rendered by default.

213 changes: 60 additions & 153 deletions tutorials/06-loading-structured-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@
"cell_type": "code",
"execution_count": 1,
"id": "c758b60b-e75e-4128-805d-46a210638daf",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-05T18:44:53.702980Z",
"iopub.status.busy": "2023-09-05T18:44:53.702691Z",
"iopub.status.idle": "2023-09-05T18:44:57.549680Z",
"shell.execute_reply": "2023-09-05T18:44:57.549399Z"
}
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -61,7 +54,9 @@
"source": [
"%pip install --quiet \"evadb[vision,notebook]\"\n",
"import evadb\n",
"cursor = evadb.connect().cursor()"
"cursor = evadb.connect().cursor()\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\")"
]
},
{
Expand All @@ -80,20 +75,14 @@
"execution_count": 2,
"id": "8897b9bb-0993-4eb0-959d-6484a651a90f",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-05T18:44:57.551244Z",
"iopub.status.busy": "2023-09-05T18:44:57.551138Z",
"iopub.status.idle": "2023-09-05T18:44:57.561518Z",
"shell.execute_reply": "2023-09-05T18:44:57.561279Z"
},
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"09-05-2023 14:44:57 WARNING[executor_utils:executor_utils.py:handle_if_not_exists:0084] Table: bddtestmeta already exists\n"
"09-06-2023 16:06:48 WARNING[executor_utils:executor_utils.py:handle_if_not_exists:0086] Table: bddtestmeta already exists\n"
]
},
{
Expand Down Expand Up @@ -163,28 +152,15 @@
"cell_type": "code",
"execution_count": 3,
"id": "62def7ce-3f83-4fa0-b9fd-2e553b3919ba",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-05T18:44:57.562831Z",
"iopub.status.busy": "2023-09-05T18:44:57.562739Z",
"iopub.status.idle": "2023-09-05T18:44:57.805093Z",
"shell.execute_reply": "2023-09-05T18:44:57.804284Z"
}
},
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"File ‘bddtest.zip’ already there; not retrieving.\r\n",
"\r\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Archive: bddtest.zip\r\n"
"File ‘bddtest.zip’ already there; not retrieving.\n",
"\n",
"Archive: bddtest.zip\n"
]
}
],
Expand All @@ -209,14 +185,7 @@
"cell_type": "code",
"execution_count": 4,
"id": "cf8415ac-f9e0-4bee-b2aa-b4e104b10a4b",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-05T18:44:57.808339Z",
"iopub.status.busy": "2023-09-05T18:44:57.808070Z",
"iopub.status.idle": "2023-09-05T18:44:58.155377Z",
"shell.execute_reply": "2023-09-05T18:44:58.155123Z"
}
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -282,12 +251,6 @@
"execution_count": 5,
"id": "95b1e0a4-d9f5-40f2-830f-69c8c9f21172",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-05T18:44:58.156676Z",
"iopub.status.busy": "2023-09-05T18:44:58.156598Z",
"iopub.status.idle": "2023-09-05T18:44:58.367346Z",
"shell.execute_reply": "2023-09-05T18:44:58.367053Z"
},
"tags": []
},
"outputs": [
Expand Down Expand Up @@ -355,41 +318,8 @@
"cell_type": "code",
"execution_count": 6,
"id": "69e378d4-4d30-47cf-84c8-8fe56afe517e",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-05T18:44:58.368692Z",
"iopub.status.busy": "2023-09-05T18:44:58.368604Z",
"iopub.status.idle": "2023-09-05T18:44:59.663271Z",
"shell.execute_reply": "2023-09-05T18:44:59.662562Z"
}
},
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/jiashenc/Workspace/eva/evadb_venv/lib/python3.11/site-packages/evadb/catalog/services/column_catalog_service.py:59: SAWarning: Object of type <UdfCacheCatalog> not in session, add operation along 'UdfCatalog._dep_caches' won't proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)\n",
" entry = self.session.execute(\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/jiashenc/Workspace/eva/evadb_venv/lib/python3.11/site-packages/evadb/models/storage/batch.py:271: FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n",
" new_frames = pd.concat(frames, axis=1, copy=False, ignore_index=False).fillna(\n",
"/Users/jiashenc/Workspace/eva/evadb_venv/lib/python3.11/site-packages/evadb/models/storage/batch.py:271: FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n",
" new_frames = pd.concat(frames, axis=1, copy=False, ignore_index=False).fillna(\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/jiashenc/Workspace/eva/evadb_venv/lib/python3.11/site-packages/evadb/models/storage/batch.py:271: FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n",
" new_frames = pd.concat(frames, axis=1, copy=False, ignore_index=False).fillna(\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -487,31 +417,8 @@
"cell_type": "code",
"execution_count": 7,
"id": "2990038a-00ec-4d36-aae2-82a789f2389a",
"metadata": {
"execution": {
"iopub.execute_input": "2023-09-05T18:44:59.665566Z",
"iopub.status.busy": "2023-09-05T18:44:59.665323Z",
"iopub.status.idle": "2023-09-05T18:45:00.242218Z",
"shell.execute_reply": "2023-09-05T18:45:00.241947Z"
}
},
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/jiashenc/Workspace/eva/evadb_venv/lib/python3.11/site-packages/evadb/models/storage/batch.py:271: FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n",
" new_frames = pd.concat(frames, axis=1, copy=False, ignore_index=False).fillna(\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/jiashenc/Workspace/eva/evadb_venv/lib/python3.11/site-packages/evadb/models/storage/batch.py:271: FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.\n",
" new_frames = pd.concat(frames, axis=1, copy=False, ignore_index=False).fillna(\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -611,8 +518,8 @@
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13599</th>\n",
" <td>26665</td>\n",
" <th>6797</th>\n",
" <td>11153</td>\n",
" <td>11581</td>\n",
" <td>1197</td>\n",
" <td>4</td>\n",
Expand All @@ -622,8 +529,8 @@
" <td>643</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13600</th>\n",
" <td>26666</td>\n",
" <th>6798</th>\n",
" <td>11154</td>\n",
" <td>11582</td>\n",
" <td>1197</td>\n",
" <td>4</td>\n",
Expand All @@ -633,8 +540,8 @@
" <td>644</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13601</th>\n",
" <td>26667</td>\n",
" <th>6799</th>\n",
" <td>11155</td>\n",
" <td>11583</td>\n",
" <td>1197</td>\n",
" <td>4</td>\n",
Expand All @@ -644,8 +551,8 @@
" <td>642</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13602</th>\n",
" <td>26668</td>\n",
" <th>6800</th>\n",
" <td>11156</td>\n",
" <td>11584</td>\n",
" <td>1197</td>\n",
" <td>4</td>\n",
Expand All @@ -655,8 +562,8 @@
" <td>641</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13603</th>\n",
" <td>26669</td>\n",
" <th>6801</th>\n",
" <td>11157</td>\n",
" <td>11585</td>\n",
" <td>1197</td>\n",
" <td>4</td>\n",
Expand All @@ -667,50 +574,50 @@
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>13604 rows × 8 columns</p>\n",
"<p>6802 rows × 8 columns</p>\n",
"</div>"
],
"text/plain": [
" bddtestmeta._row_id bddtestmeta.id bddtestmeta.frame_id \\\n",
"0 1 8185 0 \n",
"1 2 8186 0 \n",
"2 3 8187 0 \n",
"3 4 8188 0 \n",
"4 5 8189 0 \n",
"... ... ... ... \n",
"13599 26665 11581 1197 \n",
"13600 26666 11582 1197 \n",
"13601 26667 11583 1197 \n",
"13602 26668 11584 1197 \n",
"13603 26669 11585 1197 \n",
" bddtestmeta._row_id bddtestmeta.id bddtestmeta.frame_id \\\n",
"0 1 8185 0 \n",
"1 2 8186 0 \n",
"2 3 8187 0 \n",
"3 4 8188 0 \n",
"4 5 8189 0 \n",
"... ... ... ... \n",
"6797 11153 11581 1197 \n",
"6798 11154 11582 1197 \n",
"6799 11155 11583 1197 \n",
"6800 11156 11584 1197 \n",
"6801 11157 11585 1197 \n",
"\n",
" bddtestmeta.video_id bddtestmeta.dataset_name bddtestmeta.label \\\n",
"0 4 bddtest car \n",
"1 4 bddtest car \n",
"2 4 bddtest car \n",
"3 4 bddtest car \n",
"4 4 bddtest car \n",
"... ... ... ... \n",
"13599 4 bddtest car \n",
"13600 4 bddtest car \n",
"13601 4 bddtest car \n",
"13602 4 bddtest car \n",
"13603 4 bddtest car \n",
" bddtestmeta.video_id bddtestmeta.dataset_name bddtestmeta.label \\\n",
"0 4 bddtest car \n",
"1 4 bddtest car \n",
"2 4 bddtest car \n",
"3 4 bddtest car \n",
"4 4 bddtest car \n",
"... ... ... ... \n",
"6797 4 bddtest car \n",
"6798 4 bddtest car \n",
"6799 4 bddtest car \n",
"6800 4 bddtest car \n",
"6801 4 bddtest car \n",
"\n",
" bddtestmeta.bbox bddtestmeta.object_id \n",
"0 [491.7783, 320.9238, 717.0901, 512.1478] 512 \n",
"1 [928.2679, 298.47574, 1279.5381, 571.17786] 513 \n",
"2 [816.0277, 347.52887, 1029.6998, 474.7344] 514 \n",
"3 [811.87067, 325.91223, 948.2217, 408.2217] 515 \n",
"4 [673.0254, 325.08084, 751.17786, 367.48267] 516 \n",
"... ... ... \n",
"13599 [554.96533, 335.88916, 588.2217, 378.291] 643 \n",
"13600 [693.8106, 350.0231, 734.5497, 395.75058] 644 \n",
"13601 [683.83374, 345.03464, 733.71826, 389.93073] 642 \n",
"13602 [676.351, 346.69745, 699.6305, 384.11084] 641 \n",
"13603 [662.2171, 351.6859, 681.3395, 377.4596] 638 \n",
" bddtestmeta.bbox bddtestmeta.object_id \n",
"0 [491.7783, 320.9238, 717.0901, 512.1478] 512 \n",
"1 [928.2679, 298.47574, 1279.5381, 571.17786] 513 \n",
"2 [816.0277, 347.52887, 1029.6998, 474.7344] 514 \n",
"3 [811.87067, 325.91223, 948.2217, 408.2217] 515 \n",
"4 [673.0254, 325.08084, 751.17786, 367.48267] 516 \n",
"... ... ... \n",
"6797 [554.96533, 335.88916, 588.2217, 378.291] 643 \n",
"6798 [693.8106, 350.0231, 734.5497, 395.75058] 644 \n",
"6799 [683.83374, 345.03464, 733.71826, 389.93073] 642 \n",
"6800 [676.351, 346.69745, 699.6305, 384.11084] 641 \n",
"6801 [662.2171, 351.6859, 681.3395, 377.4596] 638 \n",
"\n",
"[13604 rows x 8 columns]"
"[6802 rows x 8 columns]"
]
},
"execution_count": 7,
Expand Down
Loading

0 comments on commit 722d774

Please sign in to comment.