2025-02-16 22:17:42 +04:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<p style=\"margin: 15px;\">\n",
"\n",
"\n",
"<ul>\n",
"<li>Выбрать входные и выходные переменные.</li>\n",
"<li>Выполнить настройку параметров лингвистических переменных: определить\n",
"количество термов, типов и параметров функций принадлежности</li>\n",
"<li>Сформировать базу нечетких правил.</li>\n",
"<li>Выполнить оценку качества полученной нечеткой системы</li>\n",
"</ul>\n",
"</p>\n"
]
},
{
"cell_type": "code",
2025-03-01 01:32:13 +04:00
"execution_count": 140,
2025-02-16 22:17:42 +04:00
"metadata": {},
2025-03-01 01:32:13 +04:00
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 5110 entries, 0 to 5109\n",
"Data columns (total 12 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 id 5110 non-null int64 \n",
" 1 gender 5110 non-null object \n",
" 2 age 5110 non-null float64\n",
" 3 hypertension 5110 non-null int64 \n",
" 4 heart_disease 5110 non-null int64 \n",
" 5 ever_married 5110 non-null object \n",
" 6 work_type 5110 non-null object \n",
" 7 Residence_type 5110 non-null object \n",
" 8 avg_glucose_level 5110 non-null float64\n",
" 9 bmi 4909 non-null float64\n",
" 10 smoking_status 5110 non-null object \n",
" 11 stroke 5110 non-null int64 \n",
"dtypes: float64(3), int64(4), object(5)\n",
"memory usage: 479.2+ KB\n",
"id 0\n",
"gender 0\n",
"age 0\n",
"hypertension 0\n",
"heart_disease 0\n",
"ever_married 0\n",
"work_type 0\n",
"Residence_type 0\n",
"avg_glucose_level 0\n",
"bmi 0\n",
"smoking_status 0\n",
"stroke 0\n",
"dtype: int64\n"
]
}
],
2025-02-16 22:17:42 +04:00
"source": [
"import pandas as pd\n",
"import skfuzzy.control as control\n",
"import skfuzzy as fuzzy\n",
"import numpy as np\n",
"\n",
"\n",
"# считаем данные и поределим входные и выходные переменные\n",
2025-03-01 01:32:13 +04:00
"data = pd.read_csv(\"./csv/option4.csv\")\n",
"data.info()\n",
"\n",
"data['bmi'] = data['bmi'].fillna(data['bmi'].mean())\n",
"print(data.isnull().sum())\n"
2025-02-16 22:17:42 +04:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<p style=\"margin: 15px;\">\n",
"Так как мы предсказываем инсульт, то входными переменными будут самые, пожалуй, важные критерии - возраст, уровень с а х а р а в крови, ИМТ, гипертония (е е наличие/отсутствие) и сердечный приступ (тоже е г о наличие/отсутствие)<br><br>а вот ВЫходной переменной будет, естесственно, сам инсульт (наличие/отсутствие)\n",
"</p>\n"
]
},
{
"cell_type": "code",
2025-03-01 01:32:13 +04:00
"execution_count": 141,
2025-02-16 22:17:42 +04:00
"metadata": {},
"outputs": [],
"source": [
"age = control.Antecedent(np.arange(0, 101, 1), 'age') # возраст от 0 до 100 с шагом 1 год и т.д.\n",
"glucose = control.Antecedent(np.arange(50, 301, 1), 'glucose')\n",
"bmi = control.Antecedent(np.arange(10, 50, 0.1), 'bmi')\n",
2025-03-01 01:32:13 +04:00
"hypertension = control.Antecedent(np.arange(0, 2, 0.1), 'hypertension')\n",
"heart_disease = control.Antecedent(np.arange(0, 2, 0.1), 'heart_disease')\n",
2025-02-16 22:17:42 +04:00
"\n",
"# а теперь выходная переменная (Consequent)\n",
"stroke_risk = control.Consequent(np.arange(0, 1.1, 0.1), 'stroke_risk')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<p style=\"margin: 15px; text-align: center;\">\n",
"НАКОНЕЦ Я УСТАНОВИЛА В С Е ПАКЕТЫ етить е г о \n",
"</p>\n",
"\n",
"<p style=\"margin: 15px;\">\n",
"теперь самое время определить нечеткие переменные, которые сложатся... в лингвистические\n",
2025-03-01 01:32:13 +04:00
"</p>"
2025-02-16 22:17:42 +04:00
]
},
{
"cell_type": "code",
2025-03-01 01:32:13 +04:00
"execution_count": 142,
2025-02-16 22:17:42 +04:00
"metadata": {},
"outputs": [
2025-02-26 17:38:35 +04:00
{
"name": "stderr",
"output_type": "stream",
"text": [
"d:\\code\\mai\\labs\\AIM-PIbd-31-Bakalskaya-E-D\\lab_7\\.venv\\Lib\\site-packages\\skfuzzy\\control\\fuzzyvariable.py:125: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown\n",
" fig.show()\n"
]
},
2025-02-16 22:17:42 +04:00
{
2025-02-26 16:44:48 +04:00
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkQAAAGyCAYAAAAFw9vDAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAfVlJREFUeJztnQd40/X2xt+spknTvVtK2UtkCzIUVATcct0D3P5V3AsVxetCvc7rVtSLAxdOEASVpWxkKVP2aCndI02bpEn+z/mW1BZaSNskv3U+zxPbpGlyyK/m9+ac856j8/l8PjAMwzAMw2gYvdQBMAzDMAzDSA0LIoZhGIZhNA8LIoZhGIZhNA8LIoZhGIZhNA8LIoZhGIZhNA8LIoZhGIZhNA8LIoZhGIZhNA8LIoZhGIZhNA8LIoZhGIZhNI/mBBEN5i4vLxdfGYZhGIZhJBdEv/32G8477zxkZGRAp9Ph+++/P+7vLFq0CP369YPZbEanTp0wbdq0Zj1nRUUFYmNjxVeGYRiGYRjJBVFlZSV69+6NN998M6D77969G+eccw5OO+00rF+/HnfffTduvPFGzJs3L+SxMgzDMAyjXnRyWe5KGaLvvvsOF154YZP3mThxImbPno2NGzfW3Xb55ZejtLQUc+fODeh5qFxGGaKysjLExMQEJXaGYRiGYZSNEQpi+fLlGDlyZIPbRo8eLTJFTeF0OsWlviAibvr4D5yQnYbOqTZ0TrGha1o0oiNNIYyeOYryXODD0YDLAcVzwljgnBeljkLzLMtdhklLJsHr80LpTOgzAZd2vVTqMBgm7HhdLlStXYuqDX+ipqAANYWF8BQWiq8d5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"metadata": {},
"output_type": "display_data"
},
{
"data": {
2025-03-01 01:32:13 +04:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkQAAAGyCAYAAAAFw9vDAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAZXpJREFUeJzt3Qd4lFXaBuAnvRdSSAgthI5U6aDAClIULLsqIisICj8uIEWpUgQRUBFQYUXBAoqIDRtF6dJBkCK9ByEhCZAOqfNf74HJJhAgZWa+75t57usaQyaTmZOMmTw55z3vcTKZTCYQEREROTBnrQdAREREpDUGIiIiInJ4DERERETk8BiIiIiIyOExEBEREZHDYyAiIiIih8dARERERA6PgYiIiIgcHgMREREROTyHC0TSmDs5OVm9JSIiItI8EP3+++/o1q0bIiIi4OTkhB9++OGun7Nhwwbce++98PDwQLVq1fDZZ58V6zFTUlIQEBCg3hIRERFpHojS0tLQoEEDzJ07t0i3P336NB5++GH84x//wN69ezF06FC88MIL+PXXX60+ViIiIrJfTno53FVmiJYtW4bHHnvstrcZNWoUli9fjr/++ivvuqeffhqJiYlYtWpVkR5HlstkhigpKQn+/v4WGTsREREZmysMZNu2bejQoUOB6zp16qRmim4nIyNDXfIHIjF/00n0blsHIb4esGtf9QSit1vu/lzcgR5LgIiGlrtPIiJyKNm52YhLj8OF1AuISYvBxfSLSM5MRkpmCpIzbrzNTEZaVpq6bbYpGzm5OVj31DqrjclQgSg2NhZhYWEFrpP3JeRcvXoVXl5et3zOtGnTMGnSpFuu/2DDKSz6Ix7L/tMKUaG+sFunNwEVmwGVWljgzkzAuilA3CEGIiIiuqukjCQcu3IMx68cx/HE4ziVeAoX0i6oMJRrys27nb+7PwI8AuDn7qf+LW8jfCPg4+YDN2c3uDq7qos1GSoQlcSYMWMwfPjwvPclPFWsWBFrhrVB3yUH0W/RH/hhYGv4ebrB7shqaEYyUOthoEkfy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UB0B40qBuKj308hNukawgM8YSjWniG6ZvAeTUREOpgV+unkT5i+czq83bwxr8M8tC7fWuthOSw2MLjLDJH4M/oKDIdLZkREupWSmYJRv4/CuC3j8EClB7Ds0WUMQxrjDNEdhPl7onygl6oj6lKvHAxFlrSkX5D0DbI0WYZjICIiKpH98fsx8veRSMpIwltt3lINFkl7DER30ahSoNppZjgSWKRfkDW2aXr4MhAREZVgO/2nf32KOX/OQZ3gOljQcQGP3NARBqIiHOOx5vBR4x30ao0u1WZcMiMiKnaTxbGbx2JHzA7VbXpgo4Fwc3bTeliUDwPRXdQp549rWbk4nZCKamWtFDCsQfoEWTMQZaYCubmAM8vQiIju5I/YP/DKxldUY8UPH/yQ2+l1ir/NitCgURy8YLBt5taeIYIJyEqzzv0TEdnJLrJFBxfhhd9eQFRgFL7p9g3DkI4xEN1FGR93RAR44lCM0QJRshUD0Y3eRlw2IyIqVHpWuiqcfvuPt/FsnWdVo8UQrxCth0V3wCWzIqgT4a/ONDMUCSueVmr3bg5aDERERLc4k3QGwzYMw4XUC3in7TvoGNlR6yFREXCGqIh1RBKIZPrTMKy+ZMZARER0s/XR6/H08qeRnZuNJQ8vYRgyEAaiIs4QXUrLRHxKBowViKxwbEeBQGSwWTMiIiuRP5g/PvAxhqwfghblWqgwJHVDZBxcMiuCOuWuLz0djElGWX9PAwUiK52FYz5jhzNERETIzMnEpG2T1DEc/ev3x8CGA+EsjXHJUBiIiqBCGS/4ebiqZbN/1CwLQ+CSGRGR1V2+dhnD1g/DXwl/Ydr909A1qqvWQ6ISYiAqAmd
2025-02-26 16:44:48 +04:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
2025-03-01 01:32:13 +04:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjcAAAGyCAYAAAAYveVYAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdG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kqMUjIjJDRlr5aaCP+Dmw+SGiHQl05SJCX9NwKyDs/BSs5fwceeP4S7m6RkUmw5I5z03BVZuzDumYpncEJE+iO3dYjfUjks78P4976N3nd4wOiY3ZKyylCCSm/PcLUVE2ncj7QZe/uNlnLp+CrO7zkbHah1Vh2QTWJYifRLzo+TKTYGylCCmg187DWRlqIiMiMgiopOiMXj9YEQlRmFRj0VMbPJhckP6lJ4o2utuL0sJ/qGAKSs3wSEi0iAxQuHpX5+WW72/eegbNPZtrDokm8LkhvSp4NDM/PJmTLHvhoi0R5Sghm4YCi8XL3z70LcI9gpWHZLNYXJDSgQHB2PmzJnWG5qZn7sPUCGAO6aISHPC48Px7IZn4e/uj4XdF8LP3U91SDaJyQ3pk3loZmFlKXPfDZMbItIQMUbhuQ3PoVqFaljQfQG8XQtZmSaJyQ0VKiND48225pWbwspS5r4bJjdEpBFHYo9g+IbhCPYMxhfdv5AlKSoakxudEJO8X331Vbz11lvw8fFBYGAg/vOf/+R9PTIyEn379kWFChXkwNAnnngCV69ezfu6uG9YWBgWLFiAWrVqwdXVVd4uhqzNmzdPThh3d3dHw4YNsXPnTpw+fVo+p4eHBzp06IAzZ87kPZb4XDxXQECAfL7WrVvj999/t37PjZ094Fyx8K/7h+S
2025-02-26 16:44:48 +04:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
2025-02-26 17:29:35 +04:00
},
{
"data": {
2025-03-01 01:32:13 +04:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjcAAAGyCAYAAAAYveVYAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAULlJREFUeJzt3Qd4lFXWB/B/egHSISEhIYQeSqiBBBBcUbAg6KcUpaqw61pQdAVWgRVXEVcRC4qwKGABLAgWBBHpCTWAiHTSCJAQSC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MYmqQyGyzvbvuD/bv53dVUdDZJMGDBiAZ5555ro/F5tlrlmzpsaPt2XLFnmfzMxMWBqTGwu3hX8TdxbZBWwLJ6rit1VA0RWg56OqIyGi6zh//jzuvPNOaAGTGwt6uKIt/KzqUIissP37bsArRHU0RHQdAQEBcHFxgRYwubGgJh6ucnpqeWwCDGwLJypzZguQfhyIZPs3kWoGgwEvvPACfHx8ZDLzr3/967rTUjExMejSpQtcXV3Ro0cP+TNxzMGDB6s85v79++XP3d3dER0djePHj5v9dTC5sbDx0aFIvJSHLSfYFk4k7VkENOkAhPZVHQmRzVu2bBkaNGiA3bt344033sDs2bOxcePGa47Lzs7GkCFD0KlTJ8TFxeGVV17B1KlTq33MF198EW+99Rb27dsHR0dHPPLII2Z/HY5mfwaqomuINyKaeeKTnQn4Szt/1eEQqW//Pv4TMOQdtn+TvhXllS1QaUl+bWpdoN+5c2fMmjVLft+6dWu8//772LRpE26//fY
2025-02-26 17:29:35 +04:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
2025-03-01 01:32:13 +04:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjcAAAGyCAYAAAAYveVYAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAUNxJREFUeJzt3QlclNX6B/Af+yY7sggI4q6pqLiAa6nZZlpparlm2e12u5p1U2+lZYu2dytvplfT0lxatEVzydRUcMV9ywUEFcQNENmZ+X/OIfiDorLMcOZ95/f9fCaYmXeGZ97G4eGc5znHxmg0GkFERESkE7aqAyAiIiIyJSY3REREpCtMboiIiEhXmNwQERGRrjC5ISIiIl1hckNERES6wuSGiIiIdIXJDREREekKkxsiIiLSFatLbsSCzJmZmfIrERER6Y/S5OaPP/5Av379UK9ePdjY2GDFihW3fczGjRvRrl07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mOrQQyzwCdxqqOhMjqGQwGvPTSS/Dx8ZHJzGuvvXbTaanY2FhERkbC2dkZUVFR8j5xzN69e8s95+7du+X9rq6uiImJwbFjx8z+Opjc1LKRMWFsCye6of07GghqozoSIqu3YMECuLm5Yfv27Xj33Xcxbdo0rFu37objMjMz0a9fP7Rq1Qrx8fF44403MHHixAqf8+WXX8YHH3yAXbt2wd7eHk888YTZXwcr92pZI3/3v9rCEzGgbbDqcIjUSj0AnN4KDPprywUivcrPBi7+Wbs/068J4OhapYe0bt0aU6dOld83btwYn332GdavX48+ffqUO+6bb76RozRz5syRIzctWrTA2bNn8dRTT93
2025-02-26 17:29:35 +04:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkIAAAGyCAYAAAAI3auEAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAc/hJREFUeJzt3Qd4VGXWB/A/6T0hpBdIobfQe+9d+XR10RUbKOq6Kmsv2JV11XXXhqIourbVFZAiVTqhSO8I6T0hvbf5nnPHsAQCpMzMnbn3/3ueETKZcnAgc+Y973tOK4PBYAARERGRDtmpHQARERGRWpgIERERkW4xESIiIiLdYiJEREREusVEiIiIiHSLiRARERHpFhMhIiIi0i0mQkRERKRbTISIiIhIt3SXCEkj7cLCQuVXIiIi0jdVE6Ft27Zh+vTpCAkJQatWrbB8+fJr3mfLli3o06cPnJ2d0b59e3z++edNes6ioiJ4e3srvxIREZG+qZoIlZSUICYmBu+//36jbh8fH4+pU6di9OjROHToEB5++GHMmTMH69atM3usREREpD2trGXoqqwILVu2DNdff/0Vb/PEE09g9erVOHbs2IXr/vjHPyI/Px9r165t1PNIWUxWhAoKCuDl5WWS2ImIiMi8JF2RXEHXe4RiY2Mx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qeNNWDh8IRztHaFVTIRUFu3vocwnc3awwx8W7cKx1AK1QyKyPrJ6IxulW7oaJNoOBhxcWB4jusrcsHcOvIP7Yu7D0wOfhl0rbacK2v7T2YgQmU82b4gyp2zWx7uxJ+682iERWZfs00BROhDdjP5Bl3J0MSZDklgRUb2
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
2025-02-16 22:17:42 +04:00
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"\n",
"# возраст\n",
2025-02-26 16:44:48 +04:00
"age['young'] = fuzzy.zmf(age.universe, 0, 30)\n",
"age['middle'] = fuzzy.trapmf(age.universe, [18, 20, 30, 40])\n",
"age['old'] = fuzzy.trapmf(age.universe, [40, 50, 60, 70])\n",
"age['aged'] = fuzzy.smf(age.universe, 60, 100) \n",
2025-02-16 22:17:42 +04:00
"\n",
"# с а х а р \n",
2025-02-26 16:44:48 +04:00
"glucose['low'] = fuzzy.zmf(glucose.universe, 50, 80)\n",
"glucose['normal'] = fuzzy.trapmf(glucose.universe, [70, 80, 90, 100])\n",
2025-03-01 01:32:13 +04:00
"glucose['high'] = fuzzy.smf(glucose.universe, 100, 300)\n",
2025-02-26 16:44:48 +04:00
"\n",
2025-02-16 22:17:42 +04:00
"# ИМТ\n",
2025-02-26 16:44:48 +04:00
"bmi['low'] = fuzzy.zmf(bmi.universe, 0, 19)\n",
"bmi['normal'] = fuzzy.trimf(bmi.universe, [18, 20, 25])\n",
2025-03-01 01:32:13 +04:00
"bmi['high'] = fuzzy.smf(bmi.universe, 25, 50)\n",
2025-02-26 16:44:48 +04:00
"\n",
2025-02-16 22:17:42 +04:00
"# гипертония\n",
2025-02-26 17:29:35 +04:00
"hypertension['low'] = fuzzy.zmf(hypertension.universe, 0, 0.6)\n",
"hypertension['high'] = fuzzy.smf(hypertension.universe, 0.4, 1.0)\n",
"\n",
2025-02-16 22:17:42 +04:00
"# пердечный сриступ\n",
2025-02-26 17:29:35 +04:00
"heart_disease['low'] = fuzzy.zmf(heart_disease.universe, 0, 0.6)\n",
"heart_disease['high'] = fuzzy.smf(heart_disease.universe, 0.4, 1.0)\n",
"\n",
"#риск инсульта\n",
"stroke_risk['low'] = fuzzy.zmf(stroke_risk.universe, 0, 0.4)\n",
"stroke_risk['medium'] = fuzzy.trimf(stroke_risk.universe, [0.3, 0.5, 0.7])\n",
"stroke_risk['high'] = fuzzy.smf(stroke_risk.universe, 0.6, 1.0)\n",
2025-02-16 22:17:42 +04:00
"\n",
2025-02-26 17:29:35 +04:00
"\n",
"age.view()\n",
"glucose.view()\n",
"bmi.view()\n",
"hypertension.view()\n",
"heart_disease.view()\n",
"stroke_risk.view()\n",
2025-02-16 22:17:42 +04:00
"\n"
]
2025-02-26 16:44:48 +04:00
},
{
2025-02-26 17:29:35 +04:00
"cell_type": "markdown",
2025-02-26 16:44:48 +04:00
"metadata": {},
2025-02-26 17:29:35 +04:00
"source": [
"<p style=\"margin: 15px;\">\n",
"а теперь формируем базу нечетких правил :D\n",
"</p>\n",
"\n",
"\n",
"<style>\n",
" .blur-text {\n",
" filter: blur(3px);\n",
" transition: filter 0.3s ease-in-out;\n",
" cursor: pointer;\n",
" }\n",
"\n",
" .blur-text.clear {\n",
" filter: blur(0);\n",
" }\n",
"</style>\n",
"\n",
"<p class=\"blur-text\" onclick=\"this.classList.toggle('clear')\" style=\"margin: 15px;\">\n",
2025-03-01 01:32:13 +04:00
" ну.... с написанием правил мне чат гпт помог, ну а что, у меня 5 входных переменных... я не знала, на что наткнусь, когда дойду до этого момента, поэтому... спасибо чату\n",
2025-02-26 17:29:35 +04:00
"</p>"
]
2025-02-26 16:44:48 +04:00
},
{
"cell_type": "code",
2025-03-01 01:32:13 +04:00
"execution_count": 143,
2025-02-26 16:44:48 +04:00
"metadata": {},
2025-02-26 22:41:13 +04:00
"outputs": [],
2025-02-26 17:29:35 +04:00
"source": [
2025-03-01 01:32:13 +04:00
"rules = []\n",
"\n",
"ages = ['young', 'middle', 'old', 'aged']\n",
"hypertension_levels = ['low', 'high']\n",
"glucose_levels = ['low', 'normal', 'high']\n",
"bmi_levels = ['low', 'normal', 'high']\n",
"heart_disease_levels = ['low', 'high']\n",
"\n",
"for ag in ages:\n",
" for hl in hypertension_levels:\n",
" for gl in glucose_levels:\n",
" for bm in bmi_levels:\n",
" for hd in heart_disease_levels:\n",
" # Определяем уровень риска\n",
" if ag in ['aged', 'old'] and hl == 'high' and gl == 'high' and bm == 'high' and hd == 'high':\n",
" risk = 'high'\n",
" elif ag in ['middle', 'old'] and hl == 'high' and gl == 'high' and bm in ['normal', 'high']:\n",
" risk = 'high'\n",
" elif ag == 'young' and hl == 'low' and gl == 'low' and bm == 'low' and hd == 'low':\n",
" risk = 'low'\n",
" elif gl == 'normal' and bm == 'normal' and hd == 'low':\n",
" risk = 'low'\n",
" elif ag == 'middle' and hl == 'low' and gl == 'low' and bm == 'low':\n",
" risk = 'low'\n",
" else:\n",
" risk = 'medium'\n",
" \n",
" # Создаем правило\n",
" rule = control.Rule(\n",
" age[ag] & hypertension[hl] & glucose[gl] & bmi[bm] & heart_disease[hd],\n",
" stroke_risk[risk]\n",
" )\n",
" rules.append(rule)\n"
2025-02-26 17:29:35 +04:00
]
2025-02-26 16:44:48 +04:00
},
{
"cell_type": "code",
2025-03-01 01:32:13 +04:00
"execution_count": 144,
2025-02-26 16:44:48 +04:00
"metadata": {},
2025-02-26 17:38:35 +04:00
"outputs": [
{
2025-02-26 22:41:13 +04:00
"name": "stderr",
"output_type": "stream",
"text": [
"d:\\code\\mai\\labs\\AIM-PIbd-31-Bakalskaya-E-D\\lab_7\\.venv\\Lib\\site-packages\\skfuzzy\\control\\controlsystem.py:135: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown\n",
" fig.show()\n"
2025-02-26 17:38:35 +04:00
]
},
{
"data": {
2025-03-01 01:32:13 +04:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAgMAAAGFCAYAAABg2vAPAAAAOnRFWHRTb2Z0d2FyZQ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St8VMYlYcRJ0KyrqHNiLCCgziOvswJszVTvgdigZUMQcYslJ0E2olsvgnoFJNQ43HEOcATI+ZcnGmj4MRQVQMqCIKaiToHuFijVtV5yc6JGOiZuleMv6ve6LOFGJM1KSlb3LdPEo3AvtJlDEFBALohFQKPzx32P3lZ51dkiPHj2kdv2GUpiWLt169JQlq9ZK85P/I8XehAgRFq/jLaBuA9/Ildk7pUeLBjV9KIog0MyAImagToKKYCv+5D++lD4N8qR79+7SsmVL2bUtVwo3rpBF0yZIgwOOlRLxRDBzEV9EwALDjRTuhWYGFDHnJKhkQAGMG6K3RLInPWfsk7t9/pz85z//kQ0bNpQ9JiG9haS17xOpI4pbIgCYcqhwL/TdUcQMMBRSImAfXCH4qwpKis2vpJwVsvODm8vmKJSUlMhdd90lRUX/1K7r9jmSOxw/JJwZo/Z82oTZq3Jq+hAUIaCZAUVMYEd+kXEWVNiE6nQO1BAItogDd/81R7bN/UIStm+UgoKCkM/BOEkSnF8TeTcuFWnSWeIZd47/XbbnFclVQ+P7PLgVSgYUMYFV2TtjymK4pmCZCUVbQrto60ZZ+9IV4i3M2+s+Y5IUYFXuSallHBSdxudXHizbtu0rZ45bKPEOWn6b1E2VUw9oU9OHovCDlgkUMQEVJ1UPBP7iretl+9wJsvGj/0ZVVgACs2vpTElJCEwHg6Xnk9KbReR1Lt24Q9bn6Xhn33kFtAAr3AXNDChiAjUpTjL14KhaR/v
2025-02-26 17:38:35 +04:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
2025-02-26 17:29:35 +04:00
"source": [
2025-03-01 01:32:13 +04:00
"stroke_ctrl = control.ControlSystem(\n",
" rules\n",
")\n",
"\n",
"stroke_simulation = control.ControlSystemSimulation(stroke_ctrl)\n",
2025-02-26 22:41:13 +04:00
"stroke_ctrl.view()"
2025-02-26 17:29:35 +04:00
]
2025-02-26 16:44:48 +04:00
},
2025-02-26 17:38:35 +04:00
{
"cell_type": "code",
2025-03-01 01:32:13 +04:00
"execution_count": 145,
2025-02-26 17:38:35 +04:00
"metadata": {},
2025-03-01 01:32:13 +04:00
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"=============\n",
" Antecedents \n",
"=============\n",
"Antecedent: age = 72\n",
" - young : 0.0\n",
" - middle : 0.0\n",
" - old : 0.0\n",
" - aged : 0.18\n",
"Antecedent: hypertension = 1\n",
" - low : 0.0\n",
" - high : 1.0\n",
"Antecedent: glucose = 220\n",
" - low : 0.0\n",
" - normal : 0.0\n",
" - high : 0.6799999999999999\n",
"Antecedent: bmi = 30\n",
" - low : 0.0\n",
" - normal : 0.0\n",
" - high : 0.08000000000000002\n",
"Antecedent: heart_disease = 0\n",
" - low : 1.0\n",
" - high : 0.0\n",
"\n",
"=======\n",
" Rules \n",
"=======\n",
"RULE #0:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #1:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #2:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #3:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #4:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #5:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #6:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #7:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #8:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #9:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #10:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #11:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #12:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #13:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #14:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #15:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #16:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #17:\n",
" IF (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #18:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #19:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #20:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #21:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #22:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #23:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #24:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #25:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #26:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #27:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #28:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #29:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #30:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #31:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #32:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #33:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #34:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #35:\n",
" IF (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[young] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[young] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #36:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #37:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #38:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #39:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #40:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #41:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #42:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #43:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #44:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #45:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #46:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #47:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #48:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #49:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #50:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #51:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #52:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #53:\n",
" IF (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #54:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #55:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #56:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #57:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #58:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #59:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #60:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #61:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #62:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #63:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #64:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #65:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #66:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #67:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #68:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #69:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #70:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #71:\n",
" IF (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[middle] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[middle] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #72:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #73:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #74:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #75:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #76:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #77:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #78:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #79:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #80:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #81:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #82:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #83:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #84:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #85:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #86:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #87:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #88:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #89:\n",
" IF (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #90:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #91:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #92:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #93:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #94:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #95:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #96:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #97:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #98:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #99:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #100:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #101:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #102:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #103:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #104:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #105:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #106:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #107:\n",
" IF (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[old] : 0.0\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[old] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"RULE #108:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #109:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #110:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #111:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #112:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #113:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #114:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #115:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #116:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #117:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #118:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #119:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #120:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #121:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #122:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #123:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #124:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #125:\n",
" IF (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[low] : 0.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[low]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #126:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #127:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #128:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #129:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #130:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #131:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[low] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[low]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #132:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #133:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #134:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[low]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[low] : 0.0\n",
"\n",
"RULE #135:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #136:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #137:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[normal] : 0.0\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[normal]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #138:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #139:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[low] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[low]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #140:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[low] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #141:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[normal] : 0.0\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[normal]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.0\n",
"\n",
"RULE #142:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] THEN stroke_risk[medium]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[low] : 1.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[low] = 0.08000000000000002\n",
" Activation (THEN-clause):\n",
" stroke_risk[medium] : 0.08000000000000002\n",
"\n",
"RULE #143:\n",
" IF (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] THEN stroke_risk[high]\n",
"\tAND aggregation function : fmin\n",
"\tOR aggregation function : fmax\n",
"\n",
" Aggregation (IF-clause):\n",
" - age[aged] : 0.18\n",
" - hypertension[high] : 1.0\n",
" - glucose[high] : 0.6799999999999999\n",
" - bmi[high] : 0.08000000000000002\n",
" - heart_disease[high] : 0.0\n",
" (((age[aged] AND hypertension[high]) AND glucose[high]) AND bmi[high]) AND heart_disease[high] = 0.0\n",
" Activation (THEN-clause):\n",
" stroke_risk[high] : 0.0\n",
"\n",
"\n",
"==============================\n",
" Intermediaries and Conquests \n",
"==============================\n",
"Consequent: stroke_risk = 0.49999999999999994\n",
" low:\n",
" Accumulate using accumulation_max : 0.0\n",
" medium:\n",
" Accumulate using accumulation_max : 0.08000000000000002\n",
" high:\n",
" Accumulate using accumulation_max : 0.0\n",
"\n",
"0.49999999999999994\n"
]
}
],
"source": [
"\n",
"from pprint import pprint\n",
"\n",
"def fuzzy_pred(row):\n",
" stroke_simulation.input[\"age\"] = row[\"age\"]\n",
" stroke_simulation.input[\"glucose\"] = row[\"avg_glucose_level\"]\n",
" stroke_simulation.input[\"bmi\"] = row[\"bmi\"]\n",
" stroke_simulation.input[\"hypertension\"] = row[\"hypertension\"]\n",
" stroke_simulation.input[\"heart_disease\"] = row[\"heart_disease\"]\n",
"\n",
"\n",
" stroke_simulation.compute()\n",
" return stroke_simulation.output[\"stroke_risk\"]\n",
"\n",
"stroke_simulation.input[\"age\"] = 72\n",
"stroke_simulation.input[\"glucose\"] = 220\n",
"stroke_simulation.input[\"bmi\"] = 30\n",
"stroke_simulation.input[\"hypertension\"] = 1\n",
"stroke_simulation.input[\"heart_disease\"] = 0\n",
"\n",
"stroke_simulation.compute()\n",
"stroke_simulation.print_state()\n",
"stroke_predict = stroke_simulation.output[\"stroke_risk\"]\n",
"print(stroke_predict)\n",
"\n",
"# result = data.copy()\n",
"# result = result.sample(frac=0.01)\n",
"# result[\"stroke_predicted\"] = result.apply(fuzzy_pred, axis=1)\n",
"# # result[\"stroke_predicted\"] = result['stroke'].apply(lambda x: 1 if x> 0.5 else 0, axis=1)\n",
"\n",
"# print(result.head())"
]
2025-02-26 17:38:35 +04:00
},
2025-02-26 16:44:48 +04:00
{
2025-03-01 01:32:13 +04:00
"cell_type": "code",
"execution_count": 147,
2025-02-26 16:44:48 +04:00
"metadata": {},
2025-03-01 01:32:13 +04:00
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MAE: 0.4596\n",
"MSE: 0.2265\n",
"RMSE: 0.4760\n",
"R² Score: -3.0918\n"
]
}
],
"source": [
"from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score\n",
"import numpy as np\n",
"\n",
"# Создаем копию данных и прогнозируем значения\n",
"result = data.copy()\n",
"result = result.sample(frac=0.01) # Берем 1% данных для теста\n",
"result[\"stroke_predicted\"] = result.apply(fuzzy_pred, axis=1)\n",
"\n",
"# Истинные и предсказанные значения\n",
"y_true = result[\"stroke\"]\n",
"y_pred = result[\"stroke_predicted\"]\n",
"\n",
"# Вычисляем метрики\n",
"mae = mean_absolute_error(y_true, y_pred)\n",
"mse = mean_squared_error(y_true, y_pred)\n",
"rmse = np.sqrt(mse)\n",
"r2 = r2_score(y_true, y_pred)\n",
"\n",
"# Выводим результаты\n",
"print(f\"MAE: {mae:.4f}\") # ближе к 0 - лучше\n",
"print(f\"MSE: {mse:.4f}\") # ближе к 0 - лучше\n",
"print(f\"RMSE: {rmse:.4f}\") # тоже\n",
"print(f\"R² Score: {r2:.4f}\") # а тут ближе к 1 - лучше"
]
2025-02-26 16:44:48 +04:00
},
{
2025-03-01 01:32:13 +04:00
"cell_type": "markdown",
2025-02-26 16:44:48 +04:00
"metadata": {},
2025-03-01 01:32:13 +04:00
"source": [
"#### ну короче... противоречивые результаты, но в основном они говорят о том, что модель данная - такое с е б е . в чем я, собственно, не знаю, согласна или нет... по показателям людей здесь и правда мог бы быть инсульт, ведь риск е г о развития есть, а если вероятность е г о развития больше 0,2 вроде, то это высокая вероятность уже... короче сложно такие задачи решать с помощью нечетких переменных"
]
2025-02-16 22:17:42 +04:00
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}