mertkarabacak
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ y1 = x1.pop('OUTCOME')
|
|
39 |
from tabpfn import TabPFNClassifier
|
40 |
tabpfn = TabPFNClassifier(device='cuda', N_ensemble_configurations=8)
|
41 |
|
42 |
-
y1_calib_model = CalibratedClassifierCV(tabpfn, method='
|
43 |
y1_calib_model = y1_calib_model.fit(x1, y1)
|
44 |
|
45 |
y1_explainer = shap.Explainer(y1_model.predict, x1)
|
|
|
39 |
from tabpfn import TabPFNClassifier
|
40 |
tabpfn = TabPFNClassifier(device='cuda', N_ensemble_configurations=8)
|
41 |
|
42 |
+
y1_calib_model = CalibratedClassifierCV(tabpfn, method='isotonic', cv=5)
|
43 |
y1_calib_model = y1_calib_model.fit(x1, y1)
|
44 |
|
45 |
y1_explainer = shap.Explainer(y1_model.predict, x1)
|