IUM_06
This commit is contained in:
parent
9fdca1cb31
commit
09d4b0772f
@ -10,7 +10,7 @@ y_test_binary = (y_test >= 3).astype(int)
|
||||
|
||||
# Calculate metrics
|
||||
accuracy = accuracy_score(y_test_binary, y_pred.round())
|
||||
precision, recall, f1, _ = precision_recall_fscore_support(y_test, y_pred.round(), average='micro')
|
||||
precision, recall, f1, _ = precision_recall_fscore_support(y_test_binary, y_pred.round(), average='micro')
|
||||
rmse = sqrt(mean_squared_error(y_test, y_pred))
|
||||
|
||||
print(f'Accuracy: {accuracy}')
|
||||
|
Loading…
Reference in New Issue
Block a user