Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -10,7 +10,8 @@ healthcare_stroke_data['gender'] = encoder.fit_transform(healthcare_stroke_data[
|
|
| 10 |
encoder= ce.OrdinalEncoder(cols=['work_type'],return_df=True, mapping=[{'col':'work_type', 'mapping':{0: 1, 1: 2, 'children': 3, '2': 4, 'Never_worked': 5}}])
|
| 11 |
healthcare_stroke_data['work_type'] = encoder.fit_transform(healthcare_stroke_data['work_type'])
|
| 12 |
|
| 13 |
-
s = setup(healthcare_stroke_data, target = 'stroke')
|
|
|
|
| 14 |
best = compare_models()
|
| 15 |
compare_model_results = pull()
|
| 16 |
|
|
|
|
| 10 |
encoder= ce.OrdinalEncoder(cols=['work_type'],return_df=True, mapping=[{'col':'work_type', 'mapping':{0: 1, 1: 2, 'children': 3, '2': 4, 'Never_worked': 5}}])
|
| 11 |
healthcare_stroke_data['work_type'] = encoder.fit_transform(healthcare_stroke_data['work_type'])
|
| 12 |
|
| 13 |
+
s = setup(data = healthcare_stroke_data, target = 'stroke', normalize = True, normalize_method = 'zscore', transformation=True, fix_imbalance = True, session_id=123, fold = 60, remove_outliers= True, outliers_threshold = 0.05, remove_multicollinearity=True, multicollinearity_threshold = 0.9)
|
| 14 |
+
|
| 15 |
best = compare_models()
|
| 16 |
compare_model_results = pull()
|
| 17 |
|