Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ def metrics(batch: Optional[BatchInputData] = None, limit: int = 100):
|
|
| 181 |
return {"error": "No target column 'y' found in dataset."}
|
| 182 |
|
| 183 |
# Convert boolean target to integer
|
| 184 |
-
y_true = X["y"].
|
| 185 |
print(f"[DEBUG] Found {sum(y_true)} positive cases out of {len(y_true)}")
|
| 186 |
X = X.drop(columns=["y"])
|
| 187 |
|
|
|
|
| 181 |
return {"error": "No target column 'y' found in dataset."}
|
| 182 |
|
| 183 |
# Convert boolean target to integer
|
| 184 |
+
y_true = X["y"].tolist()
|
| 185 |
print(f"[DEBUG] Found {sum(y_true)} positive cases out of {len(y_true)}")
|
| 186 |
X = X.drop(columns=["y"])
|
| 187 |
|