Python ile Machine Learning kullanarak TOB tahmini
Kevin Huo
Instructor
TP / (TP + FP)TP / (TP + FN)print(precision_score(
y_test, y_pred, average = 'weighted'))
0.73
print(recall_score(
y_test, y_pred, average = 'weighted'))
0.75
y_pred = np.asarray([0 for x in range(len(X_test))])
[[0]
[0] ...]
tp ve fp sıfır olurconfusion_matrix() ve ravel() kullanıntotal_return = tp * r
total_spent = (tp + fp) * cost
roi = total_return / total_spent
Python ile Machine Learning kullanarak TOB tahmini