Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,8 +22,10 @@ ct = ColumnTransformer(
|
|
| 22 |
)
|
| 23 |
|
| 24 |
# Fit it using your training data
|
| 25 |
-
ct.fit(df[['Gender', 'Race (Reported)', '
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# Assuming 'ct' is your ColumnTransformer (replace this with the actual loading code for your preprocessor)
|
| 29 |
# Make sure that 'ct' is properly loaded, or use the same transformation logic here.
|
|
|
|
| 22 |
)
|
| 23 |
|
| 24 |
# Fit it using your training data
|
| 25 |
+
ct.fit(df[['Gender', 'Race (Reported)', 'Age', 'Height (cm)', 'Weight (kg)',
|
| 26 |
+
'Diabetes', 'Simvastatin (Zocor)', 'Amiodarone (Cordarone)',
|
| 27 |
+
'INR on Reported Therapeutic Dose of Warfarin', 'Cyp2C9 genotypes',
|
| 28 |
+
'VKORC1 genotype: -1639 G>A (3673); chr16:31015190; rs9923231; C/T']])
|
| 29 |
|
| 30 |
# Assuming 'ct' is your ColumnTransformer (replace this with the actual loading code for your preprocessor)
|
| 31 |
# Make sure that 'ct' is properly loaded, or use the same transformation logic here.
|