Commit c3785199 authored by thecml's avatar thecml
Browse files

added in code for aalborg and viborg data

parent 007bc756
Pipeline #98511 passed with stage
in 5 minutes and 31 seconds
......@@ -13,6 +13,7 @@ batch_size: 32
num_epochs: 5
verbose: True
network_layers: [128]
metrics: ['accuracy']
optimizer: "Adam"
# Settings for data loader -------------------------------------------------
......
......@@ -13,6 +13,7 @@ batch_size: 32
num_epochs: 5
verbose: True
network_layers: [128]
metrics: ['accuracy']
optimizer: "Adam"
# Settings for data loader -------------------------------------------------
......
......@@ -12,6 +12,7 @@ batch_size: 32
num_epochs: 5
verbose: True
network_layers: [128]
metrics: ['accuracy']
optimizer: "Adam"
# Settings for data loader -------------------------------------------------
......
......@@ -10,10 +10,11 @@ risk_period_months: 6
train_ratio: 0.8
batch_size: 32
num_epochs_ats: 10
num_epochs_ats: 5
num_epochs_ex: 5
verbose: True
network_layers: [128]
metrics: ['accuracy']
optimizer: "Adam"
# Settings for data loader -------------------------------------------------
......
No preview for this file type
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -7,49 +7,29 @@
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"\n",
"\n",
"file = 'C:\\\\Users\\\\cml\\\\Downloads\\\\AIR export\\\\Aalborg\\\\Hjælpemidler minus 50_Rasmus_Details-CPR.xlsx'\n",
"df = pd.read_excel(file, engine='openpyxl', converters={'ID': str, 'Kategori ISO nummer': str})\n",
"df = df.sort_values(by=['ID', 'Kørselsdato'])"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"ID Kategori ISO nummer\n",
"62510422746 12310321 29\n",
"72093654450 12310321 28\n",
"45802099746 12310321 28\n",
"43477700202 12310321 27\n",
"14480436738 12310321 26\n",
" ..\n",
"40930362042 24210301 1\n",
" 18150302 1\n",
" 18121030 1\n",
" 18031502 1\n",
"9911573490 99999999 1\n",
"Length: 39101, dtype: int64"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"res = df.groupby(['ID', 'Kategori ISO nummer']).size().sort_values(ascending=False)\n",
"res"
"\n",
"df['Seq'] = df.groupby(['ID', 'Kategori ISO nummer']).cumcount()\n",
"df = df[['ID', 'Birth Year', 'Gender', 'Kategori ISO nummer', 'Kørselsdato', 'Seq']]\n",
"\n",
"df['LendDate'] = df.apply(lambda x: x['Kørselsdato'] if x['Seq'] % 2 == 0 else pd.NaT, axis=1)\n",
"df['ReturnDate'] = df.apply(lambda x: x['Kørselsdato'] if x['Seq'] % 2 == 1 else pd.NaT, axis=1)\n",
"\n",
"df['ReturnDate'] = df.groupby(['ID', 'Kategori ISO nummer'])['ReturnDate'].shift(-1)\n",
"df = df.dropna(subset=['LendDate', 'ReturnDate'], thresh=1)\n",
"\n",
"#df['ReturnDate'] = df['ReturnDate'].shift(-1)\n",
"#df = df.dropna(subset=['LendDate', 'ReturnDate'], thresh=1)\n",
"#df = df.drop(['Kørselsdato', 'Seq'], axis=1)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 10,
"metadata": {},
"outputs": [
{
......@@ -76,86 +56,68 @@
" <th>ID</th>\n",
" <th>Birth Year</th>\n",
" <th>Gender</th>\n",
" <th>HMI nr</th>\n",
" <th>Produktnavn</th>\n",
" <th>Kategori ISO nummer</th>\n",
" <th>Løbenummer</th>\n",
" <th>Indsats navn</th>\n",
" <th>Paragraf</th>\n",
" <th>Kørselsdato</th>\n",
" <th>Dødsdato</th>\n",
" <th>Seq</th>\n",
" <th>LendDate</th>\n",
" <th>ReturnDate</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>9610</th>\n",
" <td>9911573490</td>\n",
" <td>98</td>\n",
" <td>MALE</td>\n",
" <td>108993</td>\n",
" <td>Batec Mini</td>\n",
" <td>12240901</td>\n",
" <td>4.000</td>\n",
" <td>SEL §112 Hjælpemiddel (Genbrug)</td>\n",
" <td>§ 112 Serviceloven</td>\n",
" <td>31/08/21</td>\n",
" <td>31/12/99</td>\n",
" <th>0</th>\n",
" <td>2429541786</td>\n",
" <td>23</td>\n",
" <td>FEMALE</td>\n",
" <td>22271812</td>\n",
" <td>06/08/19</td>\n",
" <td>0</td>\n",
" <td>06/08/19</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9612</th>\n",
" <td>9911573490</td>\n",
" <td>98</td>\n",
" <td>MALE</td>\n",
" <td>42273</td>\n",
" <td>Albuestok med blødt standard håndtag, med clips</td>\n",
" <td>12030604</td>\n",
" <td>612.000</td>\n",
" <td>SEL §112 Hjælpemiddel (Genbrug)</td>\n",
" <td>§ 112 Serviceloven</td>\n",
" <td>14/11/19</td>\n",
" <td>31/12/99</td>\n",
" <th>1</th>\n",
" <td>2429541786</td>\n",
" <td>23</td>\n",
" <td>FEMALE</td>\n",
" <td>12060611</td>\n",
" <td>19/02/18</td>\n",
" <td>0</td>\n",
" <td>19/02/18</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9613</th>\n",
" <td>9911573490</td>\n",
" <td>98</td>\n",
" <td>MALE</td>\n",
" <td>42273</td>\n",
" <td>Albuestok med blødt standard håndtag, med clips</td>\n",
" <td>12030604</td>\n",
" <td>613.000</td>\n",
" <td>SEL §112 Hjælpemiddel (Genbrug)</td>\n",
" <td>§ 112 Serviceloven</td>\n",
" <td>14/11/19</td>\n",
" <td>31/12/99</td>\n",
" <th>2</th>\n",
" <td>2429541786</td>\n",
" <td>23</td>\n",
" <td>FEMALE</td>\n",
" <td>12072401</td>\n",
" <td>19/02/18</td>\n",
" <td>0</td>\n",
" <td>19/02/18</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9614</th>\n",
" <td>9911573490</td>\n",
" <td>98</td>\n",
" <td>MALE</td>\n",
" <td>62516</td>\n",
" <td>Nielsen Line teleskopbadebænk</td>\n",
" <td>09330702</td>\n",
" <td>760.000</td>\n",
" <td>SEL §112 Hjælpemiddel (Genbrug)</td>\n",
" <td>§ 112 Serviceloven</td>\n",
" <td>14/11/19</td>\n",
" <td>31/12/99</td>\n",
" <th>3</th>\n",
" <td>2430269034</td>\n",
" <td>26</td>\n",
" <td>FEMALE</td>\n",
" <td>22271812</td>\n",
" <td>09/03/20</td>\n",
" <td>0</td>\n",
" <td>09/03/20</td>\n",
" <td>09/11/20</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9615</th>\n",
" <td>9911573490</td>\n",
" <td>98</td>\n",
" <td>MALE</td>\n",
" <td>801199</td>\n",
" <td>Ryg til Nielsen Line Badebænk</td>\n",
" <td>99999999</td>\n",
" <td>222.000</td>\n",
" <td>SEL §112 Hjælpemiddel (Genbrug)</td>\n",
" <td>§ 112 Serviceloven</td>\n",
" <td>14/11/19</td>\n",
" <td>31/12/99</td>\n",
" <th>5</th>\n",
" <td>2430269034</td>\n",
" <td>26</td>\n",
" <td>FEMALE</td>\n",
" <td>12362124</td>\n",
" <td>14/10/19</td>\n",
" <td>0</td>\n",
" <td>14/10/19</td>\n",
" <td>29/07/21</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
......@@ -167,142 +129,98 @@
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9653</th>\n",
" <td>12031223466</td>\n",
" <td>30</td>\n",
" <th>72044</th>\n",
" <td>74711770410</td>\n",
" <td>99</td>\n",
" <td>FEMALE</td>\n",
" <td>800015</td>\n",
" <td>Overtræk til sengeheste, til metal (L170 x H41)</td>\n",
" <td>99999999</td>\n",
" <td>2.969</td>\n",
" <td>APV Hjælpemiddel</td>\n",
" <td>§ 15 Arbejdsmiljøloven</td>\n",
" <td>03/05/21</td>\n",
" <td>05/04/21</td>\n",
" <td>18301509</td>\n",
" <td>13/06/19</td>\n",
" <td>0</td>\n",
" <td>13/06/19</td>\n",
" <td>07/09/21</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9655</th>\n",
" <td>12031223466</td>\n",
" <td>30</td>\n",
" <th>72046</th>\n",
" <td>74711770410</td>\n",
" <td>99</td>\n",
" <td>FEMALE</td>\n",
" <td>800015</td>\n",
" <td>Overtræk til sengeheste, til metal (L170 x H41)</td>\n",
" <td>99999999</td>\n",
" <td>2.970</td>\n",
" <td>APV Hjælpemiddel</td>\n",
" <td>§ 15 Arbejdsmiljøloven</td>\n",
" <td>03/05/21</td>\n",
" <td>05/04/21</td>\n",
" <td>12220308</td>\n",
" <td>28/09/21</td>\n",
" <td>0</td>\n",
" <td>28/09/21</td>\n",
" <td>07/09/21</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9660</th>\n",
" <td>12031223466</td>\n",
" <td>30</td>\n",
" <th>72048</th>\n",
" <td>74711770410</td>\n",
" <td>99</td>\n",
" <td>FEMALE</td>\n",
" <td>82107</td>\n",
" <td>Emineo 08, OneTool, velcroryglæn, SB 39 cm</td>\n",
" <td>12221804</td>\n",
" <td>9.000</td>\n",
" <td>SEL §112 Hjælpemiddel (Genbrug)</td>\n",
" <td>§ 112 Serviceloven</td>\n",
" <td>03/05/21</td>\n",
" <td>05/04/21</td>\n",
" <td>12220308</td>\n",
" <td>25/08/16</td>\n",
" <td>2</td>\n",
" <td>25/08/16</td>\n",
" <td>29/09/21</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9662</th>\n",
" <td>12031223466</td>\n",
" <td>30</td>\n",
" <th>72050</th>\n",
" <td>74711770410</td>\n",
" <td>99</td>\n",
" <td>FEMALE</td>\n",
" <td>83587</td>\n",
" <td>Basic sejl, netmateriale str. S, med fastsyede...</td>\n",
" <td>12362124</td>\n",
" <td>114.000</td>\n",
" <td>APV Hjælpemiddel</td>\n",
" <td>§ 15 Arbejdsmiljøloven</td>\n",
" <td>03/05/21</td>\n",
" <td>05/04/21</td>\n",
" <td>04330301</td>\n",
" <td>07/09/21</td>\n",
" <td>0</td>\n",
" <td>07/09/21</td>\n",
" <td>28/09/21</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9659</th>\n",
" <td>12031223466</td>\n",
" <td>30</td>\n",
" <th>72051</th>\n",
" <td>74711770410</td>\n",
" <td>99</td>\n",
" <td>FEMALE</td>\n",
" <td>82107</td>\n",
" <td>Emineo 08, OneTool, velcroryglæn, SB 39 cm</td>\n",
" <td>12221804</td>\n",
" <td>9.000</td>\n",
" <td>SEL §112 Hjælpemiddel (Genbrug)</td>\n",
" <td>§ 112 Serviceloven</td>\n",
" <td>02/02/21</td>\n",
" <td>31/12/99</td>\n",
" <td>99999999</td>\n",
" <td>28/09/21</td>\n",
" <td>0</td>\n",
" <td>28/09/21</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>72053 rows × 11 columns</p>\n",
"<p>48292 rows × 8 columns</p>\n",
"</div>"
],
"text/plain": [
" ID Birth Year Gender HMI nr \\\n",
"9610 9911573490 98 MALE 108993 \n",
"9612 9911573490 98 MALE 42273 \n",
"9613 9911573490 98 MALE 42273 \n",
"9614 9911573490 98 MALE 62516 \n",
"9615 9911573490 98 MALE 801199 \n",
"... ... ... ... ... \n",
"9653 12031223466 30 FEMALE 800015 \n",
"9655 12031223466 30 FEMALE 800015 \n",
"9660 12031223466 30 FEMALE 82107 \n",
"9662 12031223466 30 FEMALE 83587 \n",
"9659 12031223466 30 FEMALE 82107 \n",
"\n",
" Produktnavn Kategori ISO nummer \\\n",
"9610 Batec Mini 12240901 \n",
"9612 Albuestok med blødt standard håndtag, med clips 12030604 \n",
"9613 Albuestok med blødt standard håndtag, med clips 12030604 \n",
"9614 Nielsen Line teleskopbadebænk 09330702 \n",
"9615 Ryg til Nielsen Line Badebænk 99999999 \n",
"... ... ... \n",
"9653 Overtræk til sengeheste, til metal (L170 x H41) 99999999 \n",
"9655 Overtræk til sengeheste, til metal (L170 x H41) 99999999 \n",
"9660 Emineo 08, OneTool, velcroryglæn, SB 39 cm 12221804 \n",
"9662 Basic sejl, netmateriale str. S, med fastsyede... 12362124 \n",
"9659 Emineo 08, OneTool, velcroryglæn, SB 39 cm 12221804 \n",
"\n",
" Løbenummer Indsats navn Paragraf \\\n",
"9610 4.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven \n",
"9612 612.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven \n",
"9613 613.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven \n",
"9614 760.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven \n",
"9615 222.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven \n",
"... ... ... ... \n",
"9653 2.969 APV Hjælpemiddel § 15 Arbejdsmiljøloven \n",
"9655 2.970 APV Hjælpemiddel § 15 Arbejdsmiljøloven \n",
"9660 9.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven \n",
"9662 114.000 APV Hjælpemiddel § 15 Arbejdsmiljøloven \n",
"9659 9.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven \n",
" ID Birth Year Gender Kategori ISO nummer Kørselsdato Seq \\\n",
"0 2429541786 23 FEMALE 22271812 06/08/19 0 \n",
"1 2429541786 23 FEMALE 12060611 19/02/18 0 \n",
"2 2429541786 23 FEMALE 12072401 19/02/18 0 \n",
"3 2430269034 26 FEMALE 22271812 09/03/20 0 \n",
"5 2430269034 26 FEMALE 12362124 14/10/19 0 \n",
"... ... ... ... ... ... ... \n",
"72044 74711770410 99 FEMALE 18301509 13/06/19 0 \n",
"72046 74711770410 99 FEMALE 12220308 28/09/21 0 \n",
"72048 74711770410 99 FEMALE 12220308 25/08/16 2 \n",
"72050 74711770410 99 FEMALE 04330301 07/09/21 0 \n",
"72051 74711770410 99 FEMALE 99999999 28/09/21 0 \n",
"\n",
" Kørselsdato Dødsdato \n",
"9610 31/08/21 31/12/99 \n",
"9612 14/11/19 31/12/99 \n",
"9613 14/11/19 31/12/99 \n",
"9614 14/11/19 31/12/99 \n",
"9615 14/11/19 31/12/99 \n",
"... ... ... \n",
"9653 03/05/21 05/04/21 \n",
"9655 03/05/21 05/04/21 \n",
"9660 03/05/21 05/04/21 \n",
"9662 03/05/21 05/04/21 \n",
"9659 02/02/21 31/12/99 \n",
" LendDate ReturnDate \n",
"0 06/08/19 NaN \n",
"1 19/02/18 NaN \n",
"2 19/02/18 NaN \n",
"3 09/03/20 09/11/20 \n",
"5 14/10/19 29/07/21 \n",
"... ... ... \n",
"72044 13/06/19 07/09/21 \n",
"72046 28/09/21 07/09/21 \n",
"72048 25/08/16 29/09/21 \n",
"72050 07/09/21 28/09/21 \n",
"72051 28/09/21 NaN \n",
"\n",
"[72053 rows x 11 columns]"
"[48292 rows x 8 columns]"
]
},
"execution_count": 7,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
......
%% Cell type:code id: tags:
``` python
import pandas as pd
import numpy as np
file = 'C:\\Users\\cml\\Downloads\\AIR export\\Aalborg\\Hjælpemidler minus 50_Rasmus_Details-CPR.xlsx'
df = pd.read_excel(file, engine='openpyxl', converters={'ID': str, 'Kategori ISO nummer': str})
df = df.sort_values(by=['ID', 'Kørselsdato'])
```
%% Cell type:code id: tags:
df['Seq'] = df.groupby(['ID', 'Kategori ISO nummer']).cumcount()
df = df[['ID', 'Birth Year', 'Gender', 'Kategori ISO nummer', 'Kørselsdato', 'Seq']]
``` python
res = df.groupby(['ID', 'Kategori ISO nummer']).size().sort_values(ascending=False)
res
```
df['LendDate'] = df.apply(lambda x: x['Kørselsdato'] if x['Seq'] % 2 == 0 else pd.NaT, axis=1)
df['ReturnDate'] = df.apply(lambda x: x['Kørselsdato'] if x['Seq'] % 2 == 1 else pd.NaT, axis=1)
%%%% Output: execute_result
df['ReturnDate'] = df.groupby(['ID', 'Kategori ISO nummer'])['ReturnDate'].shift(-1)
df = df.dropna(subset=['LendDate', 'ReturnDate'], thresh=1)
ID Kategori ISO nummer
62510422746 12310321 29
72093654450 12310321 28
45802099746 12310321 28
43477700202 12310321 27
14480436738 12310321 26
..
40930362042 24210301 1
18150302 1
18121030 1
18031502 1
9911573490 99999999 1
Length: 39101, dtype: int64
#df['ReturnDate'] = df['ReturnDate'].shift(-1)
#df = df.dropna(subset=['LendDate', 'ReturnDate'], thresh=1)
#df = df.drop(['Kørselsdato', 'Seq'], axis=1)
```
%% Cell type:code id: tags:
``` python
df
```
%%%% Output: execute_result
ID Birth Year Gender HMI nr \
9610 9911573490 98 MALE 108993
9612 9911573490 98 MALE 42273
9613 9911573490 98 MALE 42273
9614 9911573490 98 MALE 62516
9615 9911573490 98 MALE 801199
... ... ... ... ...
9653 12031223466 30 FEMALE 800015
9655 12031223466 30 FEMALE 800015
9660 12031223466 30 FEMALE 82107
9662 12031223466 30 FEMALE 83587
9659 12031223466 30 FEMALE 82107
Produktnavn Kategori ISO nummer \
9610 Batec Mini 12240901
9612 Albuestok med blødt standard håndtag, med clips 12030604
9613 Albuestok med blødt standard håndtag, med clips 12030604
9614 Nielsen Line teleskopbadebænk 09330702
9615 Ryg til Nielsen Line Badebænk 99999999
... ... ...
9653 Overtræk til sengeheste, til metal (L170 x H41) 99999999
9655 Overtræk til sengeheste, til metal (L170 x H41) 99999999
9660 Emineo 08, OneTool, velcroryglæn, SB 39 cm 12221804
9662 Basic sejl, netmateriale str. S, med fastsyede... 12362124
9659 Emineo 08, OneTool, velcroryglæn, SB 39 cm 12221804
Løbenummer Indsats navn Paragraf \
9610 4.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven
9612 612.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven
9613 613.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven
9614 760.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven
9615 222.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven
... ... ... ...
9653 2.969 APV Hjælpemiddel § 15 Arbejdsmiljøloven
9655 2.970 APV Hjælpemiddel § 15 Arbejdsmiljøloven
9660 9.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven
9662 114.000 APV Hjælpemiddel § 15 Arbejdsmiljøloven
9659 9.000 SEL §112 Hjælpemiddel (Genbrug) § 112 Serviceloven
ID Birth Year Gender Kategori ISO nummer Kørselsdato Seq \
0 2429541786 23 FEMALE 22271812 06/08/19 0
1 2429541786 23 FEMALE 12060611 19/02/18 0
2 2429541786 23 FEMALE 12072401 19/02/18 0
3 2430269034 26 FEMALE 22271812 09/03/20 0
5 2430269034 26 FEMALE 12362124 14/10/19 0
... ... ... ... ... ... ...
72044 74711770410 99 FEMALE 18301509 13/06/19 0
72046 74711770410 99 FEMALE 12220308 28/09/21 0
72048 74711770410 99 FEMALE 12220308 25/08/16 2
72050 74711770410 99 FEMALE 04330301 07/09/21 0
72051 74711770410 99 FEMALE 99999999 28/09/21 0
Kørselsdato Dødsdato
9610 31/08/21 31/12/99
9612 14/11/19 31/12/99
9613 14/11/19 31/12/99
9614 14/11/19 31/12/99
9615 14/11/19 31/12/99
... ... ...
9653 03/05/21 05/04/21
9655 03/05/21 05/04/21
9660 03/05/21 05/04/21
9662 03/05/21 05/04/21
9659 02/02/21 31/12/99
LendDate ReturnDate
0 06/08/19 NaN
1 19/02/18 NaN
2 19/02/18 NaN
3 09/03/20 09/11/20
5 14/10/19 29/07/21
... ... ...
72044 13/06/19 07/09/21
72046 28/09/21 07/09/21
72048 25/08/16 29/09/21
72050 07/09/21 28/09/21
72051 28/09/21 NaN
[72053 rows x 11 columns]
[48292 rows x 8 columns]
......
This diff is collapsed.
This diff is collapsed.
#!/usr/bin/env python
from tools import data_loader, preprocessor
import tensorflow as tf
import numpy as np
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
from tools import data_loader
from utility.settings import load_settings
import csv
from typing import List
import paths as pt
from pathlib import Path
from imblearn.over_sampling import ADASYN
from imblearn.pipeline import make_pipeline, Pipeline
from tensorflow.keras.wrappers.scikit_learn import KerasClassifier
from sklearn.model_selection import StratifiedKFold
from sklearn.model_selection import cross_validate
from utility.metrics import compute_mean, compute_std
from sklearn.ensemble import RandomForestClassifier
def make_model(input_dim, class_weight=None):
def make_keras_model():
model = tf.keras.models.Sequential()
model.add(tf.keras.layers.Dense(80,
input_dim=input_dim,
activation='relu'))
model.add(tf.keras.layers.Dropout(0.35))
model.add(tf.keras.layers.Dense(20, activation='relu'))
model.add(tf.keras.layers.Dropout(0.15))
model.add(tf.keras.layers.Dense(10, activation='relu'))