3.3. Model evaluation: quantifying the quality of predictions
https://scikit-learn.sourceforge.net/dev/modules/model_evaluation.html
WebMar 2, 2010 · >>> import numpy as np >>> from sklearn.metrics import label_ranking_loss >>> y_true = np. array ([[1, 0, 0], [0, 0, 1]]) >>> y_score = np. array ([[0.75, 0.5, 1], [1, 0.2, 0.1]]) >>> label_ranking_loss (y_true, y_score) 0.75... >>> # With the following prediction, we have perfect and minimal loss >>> y_score = np. array ([[1.0, 0.1, 0.2], [0.1 ...
DA: 12 PA: 44 MOZ Rank: 62