Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,8 +113,8 @@ if uploaded_file is not None:
|
|
| 113 |
model.fit(X_train, y_train)
|
| 114 |
y_pred = model.predict(X_test)
|
| 115 |
accuracy = accuracy_score(y_test, y_pred)
|
| 116 |
-
|
| 117 |
-
results.append([name, accuracy,
|
| 118 |
|
| 119 |
else:
|
| 120 |
model_choices = [
|
|
|
|
| 113 |
model.fit(X_train, y_train)
|
| 114 |
y_pred = model.predict(X_test)
|
| 115 |
accuracy = accuracy_score(y_test, y_pred)
|
| 116 |
+
class_report = classification_report(y_test, y_pred)
|
| 117 |
+
results.append([name, accuracy, class_report])
|
| 118 |
|
| 119 |
else:
|
| 120 |
model_choices = [
|