Skip to content

Commit b6d2363

Browse files
committed
new update aaai2023
1 parent f3ee291 commit b6d2363

36 files changed

+6363
-7357
lines changed

All copy.ipynb

+255
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"ExecuteTime": {
7+
"end_time": "2020-11-04T21:12:20.851007Z",
8+
"start_time": "2020-11-04T21:12:20.848232Z"
9+
}
10+
},
11+
"source": [
12+
"# Run Pipeline\n",
13+
"To run the Pipeline (all steps from Sensor events to Activity events) : Please execute following code"
14+
]
15+
},
16+
{
17+
"cell_type": "code",
18+
"execution_count": 3,
19+
"metadata": {
20+
"ExecuteTime": {
21+
"end_time": "2021-11-23T10:55:41.517374Z",
22+
"start_time": "2021-11-23T10:55:39.391992Z"
23+
}
24+
},
25+
"outputs": [
26+
{
27+
"data": {
28+
"application/vnd.jupyter.widget-view+json": {
29+
"model_id": "b3acd518f0114383924f626d0e92968a",
30+
"version_major": 2,
31+
"version_minor": 0
32+
},
33+
"text/plain": [
34+
"interactive(children=(Dropdown(description='segmentation', options={\"SlidingEventActivityWindow [{'size': 25},…"
35+
]
36+
},
37+
"metadata": {},
38+
"output_type": "display_data"
39+
}
40+
],
41+
"source": [
42+
"import general.utils as utils\n",
43+
"utils.reload()\n",
44+
"import general.libinstall\n",
45+
"import general.uiutils\n",
46+
"general.uiutils.runPipelineUI()"
47+
]
48+
},
49+
{
50+
"cell_type": "markdown",
51+
"metadata": {},
52+
"source": [
53+
"# GEM-Details\n",
54+
"You can select a specific run and it will show the evaluation information and display charts for precision, recall and f1 measure."
55+
]
56+
},
57+
{
58+
"cell_type": "code",
59+
"execution_count": 2,
60+
"metadata": {
61+
"ExecuteTime": {
62+
"end_time": "2021-11-12T16:44:59.326471Z",
63+
"start_time": "2021-11-12T16:44:58.070360Z"
64+
}
65+
},
66+
"outputs": [
67+
{
68+
"data": {
69+
"application/vnd.jupyter.widget-view+json": {
70+
"model_id": "e7fa501774ba409a8c1075d326e1e1dc",
71+
"version_major": 2,
72+
"version_minor": 0
73+
},
74+
"text/plain": [
75+
"interactive(children=(Dropdown(description='file', options=(('220818_21-40-35-Aruba-s=1', '220818_21-40-35-Aru…"
76+
]
77+
},
78+
"metadata": {},
79+
"output_type": "display_data"
80+
}
81+
],
82+
"source": [
83+
"import general.libinstall\n",
84+
"import general.uiutils\n",
85+
"%matplotlib inline\n",
86+
"general.uiutils.loadGemMetricUI()"
87+
]
88+
},
89+
{
90+
"cell_type": "markdown",
91+
"metadata": {},
92+
"source": [
93+
"# Gem-Compare-Multi-Run\n",
94+
"You can select multiple run (by holding CTRL key) and it will show the f1 in evaluation information for those run for each activities and also it will shows the combination of activities."
95+
]
96+
},
97+
{
98+
"cell_type": "code",
99+
"execution_count": 4,
100+
"metadata": {
101+
"ExecuteTime": {
102+
"end_time": "2021-11-15T17:10:28.980433Z",
103+
"start_time": "2021-11-15T17:10:28.932900Z"
104+
}
105+
},
106+
"outputs": [
107+
{
108+
"name": "stderr",
109+
"output_type": "stream",
110+
"text": [
111+
"100%|██████████| 16/16 [00:00<00:00, 1531.08it/s]"
112+
]
113+
},
114+
{
115+
"name": "stdout",
116+
"output_type": "stream",
117+
"text": [
118+
"=================== The required libraries have been installed ===================\n"
119+
]
120+
},
121+
{
122+
"name": "stderr",
123+
"output_type": "stream",
124+
"text": [
125+
"\n"
126+
]
127+
},
128+
{
129+
"data": {
130+
"application/vnd.jupyter.widget-view+json": {
131+
"model_id": "91f03ce4bbdf412d845fc5ba2bed643d",
132+
"version_major": 2,
133+
"version_minor": 0
134+
},
135+
"text/plain": [
136+
"interactive(children=(Dropdown(description='dataset', options=('Aruba', 'Home1', 'Home2', 'A4H', 'ward', 'VanK…"
137+
]
138+
},
139+
"metadata": {},
140+
"output_type": "display_data"
141+
}
142+
],
143+
"source": [
144+
"import general.libinstall\n",
145+
"import general.uiutils\n",
146+
"import general.utils as utils\n",
147+
"utils.reload()\n",
148+
"%matplotlib inline\n",
149+
"general.uiutils.loadGemMultiUI()"
150+
]
151+
},
152+
{
153+
"cell_type": "code",
154+
"execution_count": null,
155+
"metadata": {
156+
"ExecuteTime": {
157+
"end_time": "2021-11-12T09:41:37.438665Z",
158+
"start_time": "2021-11-12T09:41:37.420944Z"
159+
}
160+
},
161+
"outputs": [],
162+
"source": [
163+
"import general.utils\n",
164+
"import result_analyse.resultloader\n",
165+
"import result_analyse.visualisation as vs\n",
166+
"\n",
167+
"from ipywidgets import interact, interactive, fixed, interact_manual,widgets\n",
168+
"import numpy as np\n",
169+
"import pandas as pd\n",
170+
"\n",
171+
"@interact_manual\n",
172+
"def result_selector(file=result_analyse.resultloader.get_runs()):\n",
173+
" if(file==None):return\n",
174+
" print('Analysing ',file)\n",
175+
" general.utils.convert2SED(file)\n",
176+
" print('finished')\n"
177+
]
178+
},
179+
{
180+
"cell_type": "code",
181+
"execution_count": null,
182+
"metadata": {},
183+
"outputs": [],
184+
"source": []
185+
}
186+
],
187+
"metadata": {
188+
"kernelspec": {
189+
"display_name": "Python 3 (ipykernel)",
190+
"language": "python",
191+
"name": "python3"
192+
},
193+
"language_info": {
194+
"codemirror_mode": {
195+
"name": "ipython",
196+
"version": 3
197+
},
198+
"file_extension": ".py",
199+
"mimetype": "text/x-python",
200+
"name": "python",
201+
"nbconvert_exporter": "python",
202+
"pygments_lexer": "ipython3",
203+
"version": "3.8.13"
204+
},
205+
"toc": {
206+
"base_numbering": 1,
207+
"nav_menu": {},
208+
"number_sections": true,
209+
"sideBar": true,
210+
"skip_h1_title": false,
211+
"title_cell": "Table of Contents",
212+
"title_sidebar": "Contents",
213+
"toc_cell": false,
214+
"toc_position": {},
215+
"toc_section_display": true,
216+
"toc_window_display": false
217+
},
218+
"varInspector": {
219+
"cols": {
220+
"lenName": 16,
221+
"lenType": 16,
222+
"lenVar": 40
223+
},
224+
"kernels_config": {
225+
"python": {
226+
"delete_cmd_postfix": "",
227+
"delete_cmd_prefix": "del ",
228+
"library": "var_list.py",
229+
"varRefreshCmd": "print(var_dic_list())"
230+
},
231+
"r": {
232+
"delete_cmd_postfix": ") ",
233+
"delete_cmd_prefix": "rm(",
234+
"library": "var_list.r",
235+
"varRefreshCmd": "cat(var_dic_list()) "
236+
}
237+
},
238+
"types_to_exclude": [
239+
"module",
240+
"function",
241+
"builtin_function_or_method",
242+
"instance",
243+
"_Feature"
244+
],
245+
"window_display": false
246+
},
247+
"vscode": {
248+
"interpreter": {
249+
"hash": "0f91b223a9be7f82bfd164eb4b10e5e1c532d3ceac636b749a2ce370dda12911"
250+
}
251+
}
252+
},
253+
"nbformat": 4,
254+
"nbformat_minor": 4
255+
}

0 commit comments

Comments
 (0)