Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improved lispminer #21

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed notebooks/lispminer/1.png
Binary file not shown.
Binary file removed notebooks/lispminer/2.png
Binary file not shown.
Binary file removed notebooks/lispminer/3.png
Binary file not shown.
Binary file removed notebooks/lispminer/4.png
Binary file not shown.
182 changes: 158 additions & 24 deletions notebooks/lispminer/lispminer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,41 @@
"source": [
"LISp-Miner\n",
"\n",
"![lispminerresults](./1.png)"
"![lispminerresults](./performance/70_50_1.png)\n",
"![lispminerresults](./performance/70_50_2.png)\n",
"![lispminerresults](./performance/70_50_3.png)\n",
"![lispminerresults](./performance/70_50_4.png)\n",
"![lispminerresults](./performance/70_50_5.png)\n",
"![lispminerresults](./performance/70_50_6.png)\n",
"![lispminerresults](./performance/70_50_7.png)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "cac0a321-7b56-4db1-b1d2-a46de240c223",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Average\n",
"28.571428571428573\n",
"Std. dev.\n",
"2.7180425129200643\n"
]
}
],
"source": [
"import numpy as np\n",
"time_70_50 = [35, 27, 27, 29, 27, 27, 28]\n",
"print('Average')\n",
"average = np.mean(time_70_50)\n",
"print(average)\n",
"print('Std. dev.')\n",
"std_dev = np.std(time_70_50)\n",
"print(std_dev)"
]
},
{
Expand Down Expand Up @@ -258,7 +292,40 @@
"source": [
"LISp-Miner\n",
"\n",
"![lispminerresults](./2.png)"
"![lispminerresults](./performance/70_60_1.png)\n",
"![lispminerresults](./performance/70_60_2.png)\n",
"![lispminerresults](./performance/70_60_3.png)\n",
"![lispminerresults](./performance/70_60_4.png)\n",
"![lispminerresults](./performance/70_60_5.png)\n",
"![lispminerresults](./performance/70_60_6.png)\n",
"![lispminerresults](./performance/70_60_7.png)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "d33f138e-2387-457d-90c0-39b917152046",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Average\n",
"26.142857142857142\n",
"Std. dev.\n",
"3.4817307448439827\n"
]
}
],
"source": [
"time_70_60 = [28, 24, 25, 24, 24, 34, 24]\n",
"print('Average')\n",
"average = np.mean(time_70_60)\n",
"print(average)\n",
"print('Std. dev.')\n",
"std_dev = np.std(time_70_60)\n",
"print(std_dev)"
]
},
{
Expand Down Expand Up @@ -323,7 +390,40 @@
"source": [
"LISp-Miner\n",
"\n",
"![lispminerresults](./3.png)"
"![lispminerresults](./performance/140_50_1.png)\n",
"![lispminerresults](./performance/140_50_2.png)\n",
"![lispminerresults](./performance/140_50_3.png)\n",
"![lispminerresults](./performance/140_50_4.png)\n",
"![lispminerresults](./performance/140_50_5.png)\n",
"![lispminerresults](./performance/140_50_6.png)\n",
"![lispminerresults](./performance/140_50_7.png)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "a985d599-3c29-47d4-a4ce-3ac60f33a01a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Average\n",
"11.571428571428571\n",
"Std. dev.\n",
"0.4948716593053935\n"
]
}
],
"source": [
"time_140_50 = [12, 12, 12, 11, 11, 11, 12]\n",
"print('Average')\n",
"average = np.mean(time_140_50)\n",
"print(average)\n",
"print('Std. dev.')\n",
"std_dev = np.std(time_140_50)\n",
"print(std_dev)"
]
},
{
Expand Down Expand Up @@ -388,7 +488,40 @@
"source": [
"LISp-Miner\n",
"\n",
"![lispminerresults](./4.png)"
"![lispminerresults](./performance/140_60_1.png)\n",
"![lispminerresults](./performance/140_60_2.png)\n",
"![lispminerresults](./performance/140_60_3.png)\n",
"![lispminerresults](./performance/140_60_4.png)\n",
"![lispminerresults](./performance/140_60_5.png)\n",
"![lispminerresults](./performance/140_60_6.png)\n",
"![lispminerresults](./performance/140_60_7.png)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "57b6acf6-6f0d-4548-afd2-eda981c1620c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Average\n",
"10.0\n",
"Std. dev.\n",
"1.0690449676496976\n"
]
}
],
"source": [
"time_140_60 = [9, 8, 10, 10, 11, 11, 11]\n",
"print('Average')\n",
"average = np.mean(time_140_60)\n",
"print(average)\n",
"print('Std. dev.')\n",
"std_dev = np.std(time_140_60)\n",
"print(std_dev)"
]
},
{
Expand Down Expand Up @@ -559,7 +692,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 10,
"id": "e9d4739b-da29-4a69-b8ef-f8d7e6daaa70",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -596,68 +729,69 @@
" <tr>\n",
" <th>0</th>\n",
" <td>70, 50%</td>\n",
" <td>70</td>\n",
" <td>28.571</td>\n",
" <td>178</td>\n",
" <td>0.996</td>\n",
" <td>178</td>\n",
" <td>70.281124</td>\n",
" <td>28.685743</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>70, 60%</td>\n",
" <td>24</td>\n",
" <td>26.143</td>\n",
" <td>32</td>\n",
" <td>1.070</td>\n",
" <td>32</td>\n",
" <td>22.429907</td>\n",
" <td>24.432710</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>140, 50%</td>\n",
" <td>11</td>\n",
" <td>11.571</td>\n",
" <td>70</td>\n",
" <td>0.480</td>\n",
" <td>70</td>\n",
" <td>22.916667</td>\n",
" <td>24.106250</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>140, 60%</td>\n",
" <td>7</td>\n",
" <td>10.000</td>\n",
" <td>8</td>\n",
" <td>0.491</td>\n",
" <td>8</td>\n",
" <td>14.256619</td>\n",
" <td>20.366599</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Support, Confidence LISp-Miner Time (s) LISp-Miner Rules \\\n",
"0 70, 50% 70 178 \n",
"1 70, 60% 24 32 \n",
"2 140, 50% 11 70 \n",
"3 140, 60% 7 8 \n",
"0 70, 50% 28.571 178 \n",
"1 70, 60% 26.143 32 \n",
"2 140, 50% 11.571 70 \n",
"3 140, 60% 10.000 8 \n",
"\n",
" Action-Rules Time (s) Action-Rules Rules Action-Rules Speed (x) \n",
"0 0.996 178 70.281124 \n",
"1 1.070 32 22.429907 \n",
"2 0.480 70 22.916667 \n",
"3 0.491 8 14.256619 "
"0 0.996 178 28.685743 \n",
"1 1.070 32 24.432710 \n",
"2 0.480 70 24.106250 \n",
"3 0.491 8 20.366599 "
]
},
"execution_count": 14,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"data = {\n",
" 'Support, Confidence': ['70, 50%', '70, 60%', '140, 50%', '140, 60%'],\n",
" 'LISp-Miner Time (s)': [70, 24, 11, 7],\n",
" 'LISp-Miner Time (s)': [28.571, 26.143, 11.571, 10.0],\n",
" 'LISp-Miner Rules': [178, 32, 70, 8],\n",
" 'Action-Rules Time (s)': [0.996, 1.07, 0.480, 0.491],\n",
" 'Action-Rules Time (s)': [0.996, 1.070, 0.480, 0.491],\n",
" 'Action-Rules Rules': [178, 32, 70, 8]\n",
"}\n",
"\n",
Expand Down
Binary file added notebooks/lispminer/performance/140_50_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_50_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_50_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_50_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_50_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_50_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_50_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_60_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_60_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_60_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_60_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_60_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_60_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/140_60_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_50_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_50_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_50_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_50_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_50_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_50_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_50_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/lispminer/performance/70_60_1.png
Binary file added notebooks/lispminer/performance/70_60_2.png
Binary file added notebooks/lispminer/performance/70_60_3.png
Binary file added notebooks/lispminer/performance/70_60_4.png
Binary file added notebooks/lispminer/performance/70_60_5.png
Binary file added notebooks/lispminer/performance/70_60_6.png
Binary file added notebooks/lispminer/performance/70_60_7.png