Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: scikit-learn/scikit-learn
...
head fork: arnaudsj/scikit-learn
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 0 deletions.
  1. +8 −0 sklearn/metrics/metrics.py
View
8 sklearn/metrics/metrics.py
@@ -119,6 +119,14 @@ def _check_clf_targets(y_true, y_pred):
# We can't have more than one value on y_type => The set is no more needed
y_type = y_type.pop()
+ # Patch to handle multiclass-multioutput evaluation as absolute acc
+
+ #TODO: come up with way to combine and label each reasponse
+ if y_type == "multiclass-multioutput":
+ y_true = map(lambda x: ("%i-" * x.shape[0]) % tuple(x), y_true)
+ y_pred = map(lambda x: ("%i-" * x.shape[0]) % tuple(x), y_pred)
+ y_type = "multiclass"
+
# No metrics support "multiclass-multioutput" format
if (y_type not in ["binary", "multiclass", "multilabel-indicator",
"multilabel-sequences"]):

No commit comments for this range

Something went wrong with that request. Please try again.