Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -10,7 +10,7 @@ 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(data = healthcare_stroke_data, target = 'stroke',
|
| 14 |
|
| 15 |
best = compare_models()
|
| 16 |
compare_model_results = pull()
|
|
|
|
| 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', fix_imbalance = True, session_id=123)
|
| 14 |
|
| 15 |
best = compare_models()
|
| 16 |
compare_model_results = pull()
|