-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapper.py
31 lines (27 loc) · 1.08 KB
/
mapper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
credit_history = {"'existing paid'": 'paid',
"'no credits/all paid'": 'paid',
"'all paid'": 'paid',
"'critical/other existing credit'": 'other_exist',
"'delayed previously'": 'delayed'}
purpose = {'furniture/equipment': 'furniture',
'education': 'education',
'retraining': 'education',
'other': 'other',
'repairs': 'other',
"'domestic appliance'": 'other',
"'new car'": 'new_car',
"'used car'": 'used car',
'business': 'business',
'radio/tv': 'radio/tv'}
sex = {"'female div/dep/mar'": 'female',
"'male single'": 'male',
"'male div/sep'": 'male',
"'male mar/wid'": 'male'}
status = {"'male single'": 'single',
"'male div/sep'": 'div/sep',
"'male mar/wid'": 'mar/wid',
"'female div/dep/mar'": 'div/dep/mar'}
job = {"'unskilled resident'": 'unskilled',
"'unemp/unskilled non res'": 'unskilled',
"'high qualif/self emp/mgmt'": 'qualified',
'skilled': 'skilled'}